spacer
Yehuda Shiran December 1, 2001
Determining the Web Service's Input and Output Data Types
Tips: December 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

When calling a Web service, you need to first find out what parameters the Web service expects, and in which format they need to be represented. Let's take the echoService example. Let's further assume that we are interested in the echoString method. You search for the string "echoString" and find the relevant operation:

  <operation name="echoString" parameterOrder="inputString">
  <input message="tns:echoStringRequest" name="echoString" /> 
  <output message="tns:echoStringResponse" name="echoStringResponse" /> 
  </operation>
Searching further for the echoStringRequest and echoStringResponse message definitions yields:

  <message name="echoStringRequest">
  <part name="inputString" type="xsd:string" /> 
  </message>
  <message name="echoStringResponse">
  <part name="return" type="xsd:string" /> 
  </message>
From the definition above you see that the input string and the returned string are both of the type xsd:string. The prefix xsd denotes the XML Schema Reference, i.e. the standard definition of XML by the W3C (World Wide Web Consortium).


People who read this tip also read these tips:

Look for similar tips by subject:


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger