Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Web Service with soap issue

  1. #11

    Default

    Could you please share the jaxb problem solution i could not find the solution in jaxb-tutorial documentation.
    i am having the same problem
    (WebServiceTemplate:661) - Received error for request [SaajSoapMessage {http://www.XXXXXXXXXXXX.com/UdmService/schemas}QueryByMsisdnInput]
    [16:31:50,919] ERROR (UdmServerWSClientImpl:63) - Exception occured: Not Found [404]
    [16:31:50,919] ERROR (UdmServerWSClientImpl:63) - Exception occured: Not Found [404]
    org.springframework.ws.client.WebServiceTransportE xception: Not Found [404]
    at org.springframework.ws.client.core.WebServiceTempl ate.handleError(WebServiceTemplate.java:663)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:587)

    THANKS IN ADVANCE..

  2. #12
    Join Date
    Jul 2011
    Location
    Italy
    Posts
    14

    Default

    I apologize elcinsumerkan to answer you now.

    ok I found out the solution in this way:

    Recipe:

    1) Setting up a MessageDispatcherServlet and remember to set the param name 'transformWsdlLocations' to true;
    2) Using Spring Web Service Namespace, add <sws:annotation-driven/> <sws:dynamic-wsdl ... /> this configuration depend on
    your web service.
    3) After configuring the server side you can fire the following request http://localhost:8080/{app}/orders.wsdl (it's my server address). The dynamic-wsdl configuration will build a WSDL file.
    4)At this point you can copy the wsdl from the web page or whatever and put it in a static wsdl <sws:static id=".." location="..."/>
    5)Build up the xsd schema (pay particular attention to the namespace that could be whatever).
    6)Build up the classes which represent the above schema with the following annotations:
    @Component
    @XmlRootElement(name="customerRequest", namespace="http://www.mycompany.com")
    @XmlAccessorType(value=xmlAccessType.field)
    @XmlType

    VERY IMPORTANT: Remember to use the notation @XmlElement(namespace="http://....") on each element
    5) define an objectFactory which allows you to programmatically construct new instances of the Java rappresentation of Xml content using the @XmlRegistry alternatively you can use the property classToBeBound when you...
    6) ...set up the Marshaller JAX2B.

    I hope this will help you
    Last edited by tarebor; Feb 10th, 2012 at 03:07 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •