Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-297

document literal style and ws method with no parameter

XMLWordPrintable

      $ ant -Dtest=org.jboss.test.webservice.jbws70.JBWS70TestCase one-test

      In the following schema the complex type has no elements. This is the case for a document style operation with no input parameters.

      <schema ...>
      <complexType name="getVersion">
      <sequence/>
      </complexType>
      <complexType name="getVersionResponse">
      <sequence>
      <element name="result" type="string" nillable="true"/>
      </sequence>
      </complexType>
      <element name="getVersion" type="tns:getVersion"/>
      <element name="getVersionResponse" type="tns:getVersionResponse"/>
      </schema>

      Here is the message

      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
      <env:Header/>
      <env:Body>
      <ns1:getVersion xmlns:ns1='http://org.jboss.test.webservice/jbws70/types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'/>
      </env:Body>
      </env:Envelope>

      2005-06-23 11:00:09,096 DEBUG [org.jboss.ws.jaxrpc.encoding.JAXBDeserializer] deserialize: [xmlName=

      {http://org.jboss.test.webservice/jbws70/types}

      getVersion,xmlType=

      {http://org.jboss.test.webservice/jbws70/types}

      getVersion]
      2005-06-23 11:00:09,136 DEBUG [org.jboss.xml.binding.sunday.unmarshalling.XsdBinder] loading xsd: file:/c:/DOCUME~1/Thomas/LOCALS~1/Temp/JBossWS_org.jboss.test.webservice.jbws70.types17810.xsd
      2005-06-23 11:00:09,196 DEBUG [org.jboss.ws.jaxrpc.encoding.JAXBDeserializer] deserialized: null

      java.lang.IllegalArgumentException: Request struct cannot be null
      at org.jboss.ws.jaxrpc.ParameterWrapping.unwrapRequestParameters(ParameterWrapping.java:60)
      at org.jboss.ws.server.ServiceEndpoint.syncEndpointInputParams(ServiceEndpoint.java:342)

            tdiesler@redhat.com Thomas Diesler
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: