3 Replies Latest reply on May 29, 2006 9:35 AM by Thomas Diesler

    Lame question about the WS problem with receiving of SOAP me

    Igor Spasic Newbie

      Server: JBoss 4.0.4GA
      WS: jbossws 1.0.0.GA

      I have a simple rpc webservice done with annotation that uses my custom types: one as an argument, and one as a result. I have a problem using WS from C++ application that uses gSOAP library. After sniffing, I have found out that gSOAP is sending the following SOAP message:

      <SOAP-ENV:Envelope
       xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
       xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/1999/XMLSchema"
       xmlns:ns1="http://foo/jaws">
      
       <SOAP-ENV:Body>
       <ns1:execute>
       <ns1:WsRequest_1>
       <ns1:command>NEXT</ns1:command>
       </ns1:WsRequest_1>
       </ns1:execute>
       </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>
      


      This looks good for me, but not for JBoss:)
      javax.xml.rpc.JAXRPCException: Cannot find child element: WsRequest_1
       at org.jboss.ws.binding.soap.SOAPBindingProvider.getParameterFromMessage(SOAPBindingProvider.java:809)
       at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindRequestMessage(SOAPBindingProvider.java:266)
       at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115)
       at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:234)
       at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
      ...
      



      However, when I manually post a SOAP message that has <WsRequest_1> tags instead the <ns1:WsRequest_1>, it works!

      Any ideas how to fix this?
      Thanx in advance.