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

Thread: WebServiceTransportException

  1. #11
    Join Date
    Jan 2008
    Location
    Pisa, Italy
    Posts
    23

    Default Solved

    Yes, you were right!

    The problem was in the castor mapping.xml file. The resource object marshalling did not contain the qualified namespace.

    Thank you very much for your reply!
    Ivan

  2. #12
    Join Date
    Jul 2008
    Posts
    5

    Default Webservices transport exception

    Even I get the same error what did u fix in the mapping.xml to fix the name space issue?

    Thanks

  3. #13
    Join Date
    Jul 2008
    Posts
    3

    Default

    Quote Originally Posted by eradan View Post
    Yes, you were right!

    The problem was in the castor mapping.xml file. The resource object marshalling did not contain the qualified namespace.

    Thank you very much for your reply!
    Ivan

    Hi
    i got the same error. how did you fixed it?
    thanks in advacne,
    Vipin

  4. #14
    Join Date
    Jul 2009
    Posts
    2

    Default I have same problem

    Can anyone tell me how this problem is solved , I really tried hard but in vain.

  5. #15
    Join Date
    Aug 2009
    Posts
    10

    Default I have same issue! What am I doing wrong I've been at this for 3 days now.

    I'm getting the following error in my Tomcat logfile:

    WARNING: No endpoint mapping found for [SaajSoapMessage AGSRequest]

    The message I am sending is as follows:

    POST /JC3IEDM_App/agsToJc3iedm.ws HTTP/1.1
    Accept-Encoding: gzip
    Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    SOAPAction: ""
    Content-Type: text/xml; charset=utf-8
    Content-Length: 209
    Cache-Control: no-cache
    Pragma: no-cache
    User-Agent: Java/1.6.0_14
    Host: localhost:8082
    Connection: keep-alive

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><AGSRequest>
    <Base64AGS>PEFHUy8+</Base64AGS>
    </AGSRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>

    This is being automatically generated by the WebServiceTemplate. I notice that the target namespace is not specified in this message even though it is in the xml for the request as follows:

    DOMSource request = new DOMSource(xml);
    DOMResult result = new DOMResult();
    webServiceTemplate.sendSourceAndReceiveToResult(re quest, result);

    xml.toString() on the above gives us:
    <AGSRequest xmlns="com.detica.jc3iedm">
    <Base64AGS>PEFHUy8+</Base64AGS>
    </AGSRequest>

    My Endpoint is mapped with the following code:

    @PayloadRoot(localPart="AGSRequest", namespace="com.detica.jc3iedm")

    And the spring-ws-servlet.xml is as follows:

    <bean id="agsToJc3iedm" class="org.springframework.ws.wsdl.wsdl11.DefaultW sdl11Definition"
    portTypeName="agsToJc3iedm"
    p:locationUri="http://localhost:8082/JC3IEDM_App/agsToJc3iedm.ws"
    p:targetNamespace="com.detica.jc3iedm">
    <property name="schema">
    <bean class="org.springframework.xml.xsd.SimpleXsdSchema ">
    <property name="xsd" value="classpath:/AGSRequest.xsd"/>
    </bean>
    </property>
    </bean>

    <bean id="agsToJc3iedmEndpoint"
    class="com.detica.jc3iedm.webservice.AgsToJc3iedmE ndpoint" />

    <bean id="payloadMapping"
    class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootAnnotationMethodEndpointMapping" />

    Any help would be really appreciated as I am completekly out of ideas now.

  6. #16
    Join Date
    Apr 2010
    Posts
    2

    Default

    I did the following:
    set in the XSD xmlns:myws="http://localhost:8080/myws/schemas"
    set in WSDL targetNamespace, XSD targetNamespace and in the message xmlns:
    "http://localhost:8084/myws/schemas"
    finally I confirmed that the message I send to the webservice match the XSD message definition (if not, the EndPoint will complaint).

    Hope this help

    V

    Quote Originally Posted by eradan View Post
    That's error is driving me crazy!
    It's the whole day I'm trying to get rid of this error:

    org.springframework.ws.client.WebServiceTransportE xception: Not Found [404]
    at org.springframework.ws.client.core.WebServiceTempl ate.handleError(WebServiceTemplate.java:475)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:399)
    at org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 256)
    at org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 244)
    at org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 236)
    at org.homelinux.elabor.nemo.webservice.NemoWebServic eClient.loadNetworkMap(NemoWebServiceClient.java:1 3)
    at org.homelinux.elabor.nemo.webservice.NemoWebServic eClientTestCase.testLoadNetworkMapClient(NemoWebSe rviceClientTestCase.java:26)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:164 )
    ............

    but I don't understand which is the problem!

    On the server side the wsdl is dynamically created and published correctly.
    But when I try to use my WebService I obtain that error above.
    It happens when I invoke the marshalSendAndReceive method of my client (that extends WebServiceGatewaySupport).

    I also checked the paylodMapping and it's ok...

    Where's the problem?!
    Please, help!

    Thank you anyway!
    Ivan

  7. #17
    Join Date
    Mar 2011
    Posts
    4

    Default Most probably OXM support issue

    If you're using JAXB, make sure Spring's OXM jars in your lib. (spring-oxm-1.5.6.jar and tiger version)

    This is the most probably you guys issues if you're able to get WSDL but not endPoint. Hope it helps.-Cage

  8. #18
    Join Date
    Apr 2011
    Posts
    2

    Default org.springframework.ws.client.WebServiceTransportE xception: Not Found [404]

    Hi, any one knows about this error.

    SEVERE: Received 'org.springframework.ws.client.WebServiceTransport Exception' when invoking action listener '#{userBean.doAdd}' for component 'j_id_jsp_497945869_56'
    Apr 25, 2011 12:19:14 AM javax.faces.event.MethodExpressionActionListener processAction
    SEVERE: org.springframework.ws.client.WebServiceTransportE xception: Not Found [404]
    at org.springframework.ws.client.core.WebServiceTempl ate.handleError(WebServiceTemplate.java:622)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:546)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:496)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:451)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:395)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:380)
    at savari.csm.ws.client.WebServiceClient.customSendAn dReceive(WebServiceClient.java:43)




    -----

    I am just trying to call a webservice using webServicetemplate from my application. If I access the service throw browser, the service seems to be working fine, But when calling from application it shows the above error.


    I have also posted the configuration snippet also.

    <bean id="loginService" class="savari.csm.service.LoginServiceImpl">
    <property name="userDetailsDAO">
    <ref bean="userDetailsDAO" />
    </property>

    <property name="passwordWebService">
    <ref bean="passwordWebService" />
    </property>


    <property name="webServiceClient">
    <ref bean="webServiceClient" />
    </property>


    </bean>




    <bean id="passwordWebService" class="org.springframework.remoting.jaxrpc.JaxRpcP ortProxyFactoryBean">
    <property name="serviceInterface">
    <value>savari.csm.service.RemotePasswordService</value>
    </property>

    <property name="wsdlDocumentUrl">
    <value>http://localhost:9090/myServices/passwordRequest.wsdl</value>
    </property>
    <property name="namespaceUri">
    <value>http://myservice.com/user/schemas</value>
    </property>
    <property name="serviceName">
    <value>PasswordRequestService</value>
    </property>
    <property name="portName">
    <value>PasswordRequestSoap11</value>
    </property>
    </bean>


    <bean id="webServiceClient" class="savari.csm.ws.client.WebServiceClient">
    <property name="defaultUri" value="http://myservice.com/user/schemas/PasswordRequestService"/>

    </bean>


    Please some one help.
    Attached Files Attached Files

  9. #19
    Join Date
    Mar 2011
    Posts
    4

    Default try SOAPUI

    You can try to invoke using SoapUI. It is really nice and free tool helping me a lot currently. It may help you to profile the problem.


    Quote Originally Posted by Deni View Post
    Hi, any one knows about this error.

    SEVERE: Received 'org.springframework.ws.client.WebServiceTransport Exception' when invoking action listener '#{userBean.doAdd}' for component 'j_id_jsp_497945869_56'
    Apr 25, 2011 12:19:14 AM javax.faces.event.MethodExpressionActionListener processAction
    SEVERE: org.springframework.ws.client.WebServiceTransportE xception: Not Found [404]
    at org.springframework.ws.client.core.WebServiceTempl ate.handleError(WebServiceTemplate.java:622)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:546)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:496)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:451)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:395)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendSourceAndReceiveToResult(WebServiceTemplat e.java:380)
    at savari.csm.ws.client.WebServiceClient.customSendAn dReceive(WebServiceClient.java:43)




    -----

    I am just trying to call a webservice using webServicetemplate from my application. If I access the service throw browser, the service seems to be working fine, But when calling from application it shows the above error.


    I have also posted the configuration snippet also.

    <bean id="loginService" class="savari.csm.service.LoginServiceImpl">
    <property name="userDetailsDAO">
    <ref bean="userDetailsDAO" />
    </property>

    <property name="passwordWebService">
    <ref bean="passwordWebService" />
    </property>


    <property name="webServiceClient">
    <ref bean="webServiceClient" />
    </property>


    </bean>




    <bean id="passwordWebService" class="org.springframework.remoting.jaxrpc.JaxRpcP ortProxyFactoryBean">
    <property name="serviceInterface">
    <value>savari.csm.service.RemotePasswordService</value>
    </property>

    <property name="wsdlDocumentUrl">
    <value>http://localhost:9090/myServices/passwordRequest.wsdl</value>
    </property>
    <property name="namespaceUri">
    <value>http://myservice.com/user/schemas</value>
    </property>
    <property name="serviceName">
    <value>PasswordRequestService</value>
    </property>
    <property name="portName">
    <value>PasswordRequestSoap11</value>
    </property>
    </bean>


    <bean id="webServiceClient" class="savari.csm.ws.client.WebServiceClient">
    <property name="defaultUri" value="http://myservice.com/user/schemas/PasswordRequestService"/>

    </bean>


    Please some one help.

Posting Permissions

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