Web Service Complex

Card Puncher Data Processing

The <WLHttpTransport>child element of the <jws>element of the jwsc Ant task specifies the context path and service URI sections of the URL used to invoke the Web service over the HTTP/S transport, as well as the name of the port in the generated WSDL. For more information about defining the context path, see “Defining the Context Path of a WebLogic Web Service” in WebLogic Web Services Reference for Oracle WebLogic Server.
Test
Wsdl
http://localhost:7003/complex/ComplexService?WSDL
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is 
	Oracle JAX-WS 2.1.5. -->

<definitions targetNamespace="http://example.org" name="ComplexService">
	<types>
		<xsd:schema>
			<xsd:import namespace="http://example.org/complex"
				schemaLocation="http://localhost:7003/complex/ComplexService?xsd=1" />
		</xsd:schema>
		<xsd:schema>
			<xsd:import namespace="http://example.org"
				schemaLocation="http://localhost:7003/complex/ComplexService?xsd=2" />
		</xsd:schema>
	</types>
	<message name="echoInt">
		<part name="parameters" element="tns:echoInt" />
	</message>
	<message name="echoIntResponse">
		<part name="parameters" element="tns:echoIntResponse" />
	</message>
	<message name="echoComplexType">
		<part name="parameters" element="tns:echoComplexType" />
	</message>
	<message name="echoComplexTypeResponse">
		<part name="parameters" element="tns:echoComplexTypeResponse" />
	</message>
	<portType name="ComplexPortType">

		<operation name="echoInt">
			<input message="tns:echoInt" />
			<output message="tns:echoIntResponse" />
		</operation>
		<operation name="echoComplexType">
			<input message="tns:echoComplexType" />
			<output message="tns:echoComplexTypeResponse" />
		</operation>
	</portType>
	<binding name="ComplexPortTypePortBinding" type="tns:ComplexPortType">
		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
			style="document" />
		<operation name="echoInt">
			<soap:operation soapAction="" />
			<input>
				<soap:body use="literal" />
			</input>
			<output>
				<soap:body use="literal" />
			</output>
		</operation>
		<operation name="echoComplexType">
			<soap:operation soapAction="" />
			<input>
				<soap:body use="literal" />
			</input>
			<output>
				<soap:body use="literal" />
			</output>
		</operation>
	</binding>
	<service name="ComplexService">
		<port name="ComplexPortTypePort" binding="tns:ComplexPortTypePortBinding">
			<soap:address location="http://localhost:7003/complex/ComplexService" />
		</port>
	</service>
</definitions>
Client
Test Client
echoComplexType
Service Request
echoComplexType Request Detail
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Header />
    <env:Body>
    <echoComplexType xmlns="http://example.org">
      <!--Optional:-->
      <arg0 xmlns="">
        <intValue>3</intValue>
        <!--Zero or more repetitions:-->
        <stringArray>string</stringArray>
        <!--Optional:-->
        <stringValue>string</stringValue>
      </arg0>
    </echoComplexType>
  </env:Body>
  </env:Envelope>
Service Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <ns3:echoComplexTypeResponse xmlns:ns3="http://example.org" xmlns:ns2="http://example.org/complex">
      <ns2:EchoStructReturnMessage>
        <intValue>3</intValue>
        <stringArray>string</stringArray>
        <stringValue>string</stringValue>
      </ns2:EchoStructReturnMessage>
    </ns3:echoComplexTypeResponse>
  </S:Body>
</S:Envelope>												
echoInt
Service Request
 
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Header />
    <env:Body>
    <echoInt xmlns="http://example.org" xmlns:com="http://example.org/complex">
      <com:IntegerInput>2</com:IntegerInput>
    </echoInt>
  </env:Body>
  </env:Envelope>
Service Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <ns3:echoIntResponse xmlns:ns3="http://example.org" xmlns:ns2="http://example.org/complex">
      <ns2:IntegerOutput>2</ns2:IntegerOutput>
    </ns3:echoIntResponse>
  </S:Body>
  </S:Envelope>	
Documentation / Reference







Share this page:
Follow us:
Task Runner