WSDLドキュメントの例

次の例は、現在の日時を文字列として返す単純なWebサービスに対して、JDeveloperが生成したWSDLドキュメントです。これは、WSDLドキュメントの構造に対応しています。



<?xml version = '1.0' encoding = 'windows-1252'?>
<!--Generated by the Oracle9i JDeveloper Web Services WSDL Generator-->
<!--Date Created: Sun Sep 15 14:34:01 BST 2002-->
<definitions
name="datetimeservicepackage.DateTimeService"
targetNamespace="http://datetimeservicepackage/DateTimeService.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://datetimeservicepackage/DateTimeService.wsdl"
xmlns:ns1="http://datetimeservicepackage/IDateTimeService.xsd">
<types>
<schema
targetNamespace="http://datetimeservicepackage/IDateTimeService.xsd"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"/>
</types>
<message name="getDate0Request"/>
<message name="getDate0Response">
<part name="return" type="xsd:string"/>
</message>
<portType name="DateTimeServicePortType">
<operation name="getDate">
<input name="getDate0Request" message="tns:getDate0Request"/>
<output name="getDate0Response" message="tns:getDate0Response"/>
</operation>
</portType>
<binding name="DateTimeServiceBinding" type="tns:DateTimeServicePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getDate">
<soap:operation soapAction="" style="rpc"/>
<input name="getDate0Request">
<soap:body use="encoded" namespace="datetimeservicepackage.DateTimeService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output name="getDate0Response">
<soap:body use="encoded" namespace="datetimeservicepackage.DateTimeService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="datetimeservicepackage.DateTimeService">
<port name="DateTimeServicePort" binding="tns:DateTimeServiceBinding">
<soap:address location="http://138.3.52.27:8888/DateTimeService-DateTimeServProj-context-root/datetimeservicepackage.DateTimeService"/>
</port>
</service>
</definitions>