spacer
Yehuda Shiran November 12, 2001
The WSDL's service Element
Tips: November 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source
The service element defines the ports supported by the Web service. For each of the supported protocols, there is one port element. The service element is a collection of ports. Here is a SOAP port from the Temperature -- Weather Web service:

<service name="TemperatureService">
  <documentation>Returns current temperature in a given U.S. zipcode</documentation> 
  <port name="TemperaturePort" binding="tns:TemperatureBinding">
    <soap:address location="http://services.xmethods.net:80/soap/servlet/rpcrouter" /> 
  </port>
</service>
The binding attributes associate the address of the service with a binding element defined in the Web service. In this case, this is the TemperatureBinding binding:

<binding name="TemperatureBinding" type="tns:TemperaturePortType">
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> 
    <operation name="getTemp">
      <soap:operation soapAction="" /> 
        <input>
          <soap:body use="encoded" namespace="urn:xmethods-Temperature" 
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
        </input>
        <output>
          <soap:body use="encoded" namespace="urn:xmethods-Temperature" 
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
        </output>
    </operation>
</binding>
Web service clients can learn from the service element where to access the service, through which port to access the Web service, and how the communication messages are defined.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script · Book Review: Content Rich
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags