topical media & game development

talk show tell print

basic-xml-15-listing41.xml / xml



  <?xml version="1.0"?>
  <definitions name="SernaFerna" 
      targetNamespace="http://www.sernaferna.com/soap/ordersystem" 
      xmlns:typens="http://www.sernaferna.com/soap/ordersystem" 
      xmlns:xsd="http://www.w3.org/1999/XMLSchema" 
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
      xmlns="http://schemas.xmlsoap.org/wsdl/">
  
          <types>
                  <xsd:schema xmlns="" 
                     xmlns:xsd="http://www.w3.org/1999/XMLSchema" 
                     targetNamespace="http://www.sernaferna.com/soap/ordersystem">
                          <xsd:complexType name="addToCartType">
                             <xsd:sequence>
                                <xsd:element name="cartId" type="xsd:string" />
                                <xsd:element name="item">
                            <xsd:complexType>
                               <xsd:sequence>
                                           <xsd:element name="quantity" 
                                                    type="xsd:string"/>
                                    <xsd:element name="extPrice" 
                                                    type="xsd:string"/>
                               </xsd:sequence>
                               <xsd:attribute name="itemId" 
                                                    type="xsd:string" />
                            </xsd:complexType>
                        </xsd:element>
                     </xsd:sequence>
                          </xsd:complexType>
                          <xsd:complexType name="addToCartResponseType">
                             <xsd:sequence>
                                <xsd:element name="cartId" type="xsd:string"/>
                                <xsd:element name="status" type="xsd:string"/>
                                <xsd:element name="quantity" type="xsd:string"/>
                                 <xsd:element name="itemId" type="xsd:string"/>
                             </xsd:sequence>
                          </xsd:complexType>
                  </xsd:schema>
          </types>
  
          <message name="AddToCartRequestMsg">
                  <part name="addToCart" type="typens:addToCartType"/>
          </message>
          <message name="AddToCartResponseMsg">
                  <part name="addToCartResponse" type="typens:addToCartResponseType"/>
          </message>
  
          <portType name="SernaFernaPort">
                  <operation name="AddToCart">
                          <input message="typens:AddToCartRequestMsg"/>
                          <output message="typens:AddToCartResponseMsg"/>
                  </operation>
          </portType>
          <binding name="SernaFernaBinding" 
                                   type="typens:SernaFernaPort">
                  <soap:binding style="rpc" 
                        transport="http://schemas.xmlsoap.org/soap/http"/>
                  <operation name="AddToCart">
                          <soap:operation soapAction="urn:PI/DevCentral/SoapService"/>
                          <input>
                                  <soap:body use="encoded" namespace="http://www.sernaferna.com/soap/ordersystem" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                          </input>
                          <output>
                                  <soap:body use="encoded" namespace="http://www.sernaferna.com/soap/ordersystem" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                          </output>
                  </operation>
          </binding>
          <service name="SernaFernaService">
                  <port name="SernaFernaPort" binding="typens:SernaFernaBinding">
                          <soap:address location="http://localhost/soap/submitOrder1.asp"/>
                  </port>
          </service>
  
  </definitions>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.