0 Replies Latest reply on Jul 6, 2010 5:31 PM by aodhan hoffman

    Cannot create SOAP envelope from: {http://schemas.xmlsoap.org/wsdl/}definitions

    aodhan hoffman Newbie

      Good afternoon. I am hitting an error which I haven't been able to make sense of. In calling a remote operation I get the following error:

      "IllegalArgumentException: Cannot create SOAP envelope from: {http://schemas.xmlsoap.org/wsdl/}definitions". In trying to figure out what this means I found a reference to it in trunk/jbossws-core/src/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java, but I can't tell what Envelope in this context is supposed to be, it all looks properly formatted.


             if ("Envelope".equals(localName) == false)
                throw new IllegalArgumentException("Cannot create SOAP envelope from: " + element.getElementQName());

       

       

      Here's the stack trace:

      2010-07-06 14:20:39,592 TRACE [org.jboss.ws.core.MessageTrace] (http-127.0.0.1-8080-1) Outgoing Request Message
      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
      <env:Header/>
      <env:Body>
        <findPopulatedAssetByNaturalKey

                xmlns='http://service.api.mobileview.aeroscout.com'

                xmlns:ns2='http://asset.dto.api.mobileview.aeroscout.com'

                xmlns:ns3='http://security.dto.api.mobileview.aeroscout.com'

                xmlns:ns4='http://location.dto.api.mobileview.aeroscout.com'

                xmlns:ns5='http://dto.api.mobileview.aeroscout.com'>
         <in0>AodhansSecondTestAssetId</in0>
         <in1>ShimTestApp</in1>
        </findPopulatedAssetByNaturalKey>
      </env:Body>
      </env:Envelope>
      2010-07-06 14:20:40,014 ERROR [org.jboss.ws.core.CommonClient] (http-127.0.0.1-8080-1) Exception caught while (preparing for) performing the invocation:
      java.io.IOException: Could not transmit message
          at org.jboss.ws.core.client.transport.NettyClient.invokeInternal(NettyClient.java:229)
          at org.jboss.ws.core.client.transport.NettyClient.invoke(NettyClient.java:121)
          at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:150)
          at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:69)
          at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:345)
          at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:299)
          at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
          at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
          at $Proxy320.findPopulatedAssetByNaturalKey(Unknown Source)

      at com.boeing.ntpm.nls.api.ws.AssociationGet.getAssetAssociations(AssociationGet.java:107)
          at com.boeing.ntpm.nls.api.ws.ServiceManager.getAssetAssociations(ServiceManager.java:59)
          at com.boeing.ntpm.nls.api.ws.NlsSoapServiceImpl.assetAssociationGet(NlsSoapServiceImpl.java:65)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.wsf.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:129)
          at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222)
          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:502)
          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:299)
          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:206)
          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
          at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:87)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: Cannot create SOAP envelope from: {http://schemas.xmlsoap.org/wsdl/}definitions
          at org.jboss.ws.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:64)
          at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:137)
          at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:97)
          at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:305)
          at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:83)
          at org.jboss.ws.core.client.transport.NettyClient.invokeInternal(NettyClient.java:193)
          ... 43 more