Listing 3: Adding SOAP support
<?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> <binding name="MobilePhoneService_Binding" type="MobilePhoneService_port"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> <operation name="getListOfModels "> <soap:operation soapAction="urn:MobilePhoneService" /> <input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MobilePhoneService" use="encoded" /> </input> <output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MobilePhoneService" use="encoded" /> </output> </operation> <operation name="getPrice"> <soap:operation soapAction="urn:MobilePhoneService" /> <input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MobilePhoneService" use="encoded" /> </input> <output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MobilePhoneService" use="encoded" /> </output> </operation> </binding> </definitions> |
