IBM®
跳转到主要内容
    中国 [选择]    使用条款
 
 
Select a scope: Search for:    
    首页    产品    服务与解决方案     支持与下载    个性化服务    
跳转到主要内容

developerWorks 中国  >  SOA and Web services  >

Deploying Web services with WSDL: Part 1

Introduction to Web services and WSDL

developerWorks

Return to article


Listing 2: Defining parameters
        
        
<?xml version="1.0" encoding="UTF-8" ?> 
<definitions  name="MobilePhoneService" 
		 targetNamespace="http://www.mobilephoneservice.com/MobilePhoneService-interface"
		 xmlns="http://schemas.xmlsoap.org/wsdl/" 
		 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
		 xmlns:tns="http://www.mobilephoneservice.com/MobilePhoneService" 
		 xmlns:xsd="http://www.w3.org/1999/XMLSchema">
		 <types>
		 		 <xsd:schema targetNamespace="http://www.mobilephoneservice.com/MobilePhoneService"
		 		 xmlns="http://www.w3.org/1999/XMLSchema/">
		 		 		 <xsd:complexType name="Vector">
		 		 		 		 <xsd:element name="elementData" type="xsd:String" /> 
		 		 		 		 <xsd:element name="elementCount" type="xsd:int" /> 
		 		 		 </xsd:complexType>
		 		 </xsd:schema>
		 </types>
		 <message name="ListOfPhoneModels">
		 		 <part name="models" type="tns:Vector">
		 </message>
		 <message name="PhoneModel">
		 		 <part name="model" type="xsd:String">
		 </message>
		 <message name="PhoneModelPrice">
		 		 <part name="price" type="xsd:String">
		 </message>
		 <portType name="MobilePhoneService_port">
		 		 <operation name="getListOfModels ">
		 		 		 <output message="ListOfPhoneModels"/>
		 		 </operation>
		 		 <operation name="getPrice">
		 		 		 <Input message="PhoneModel"/>
		 		 		 <output message="PhoneModelPrice"/>
		 		 </operation>
		 </portType>
</definitions>
      
      

Return to article

    关于 IBM 隐私条约 联系 IBM 使用条款