Java Reference
In-Depth Information
NOTE
Recall that if you want to view the WSDL associated with a service you can bring up the service
location as specified by soap:address in a browser, and just append ?wsdl to the end. This is not
defined in the specification, but all vendors (including Sun, IBM, JBoss, and Oracle) honor it.
Example7-2.Credit.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://ns.soacookbook.com/credit"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://ns.soacookbook.com/credit"
name="CreditService">
<types>
<xsd:schema>
<xsd:import namespace="http://ns.soacookbook.com/credit"
schemaLocation="Credit.xsd"/>
</xsd:schema>
</types>
<message name="authorizeRequest">
<part name="creditCard" element="tns:creditCard" />
</message>
<message name="authorizeResponse">
<part name="authorization" element="tns:authorization" />
</message>
<portType name="CreditAuthorizer">
<operation name="authorize">
<input message="tns:authorizeRequest" />
<output message="tns:authorizeResponse" />
</operation>
</portType>
<binding name="CreditAuthorizerPortBinding"
type="tns:CreditAuthorizer">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="authorize">
<soap:operation soapAction="" />
<input>
Search WWH ::




Custom Search