2 Replies Latest reply on Jul 25, 2008 1:35 PM by a francis

    Question about webservice_producer

    a francis Newbie

      Hey,
      I was looking at the webservice_producer example, and was wondering if anyone could explain how the <good:sayGoodbye> tag is "set". I believe the sayGoodbye is set in the WSDL as an operation, but I don't understand where "good" comes from. Thanks.


      This is the soap file it sends:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:good="http://webservice_producer/goodbyeworld">
       <soapenv:Header/>
       <soapenv:Body>
       <good:sayGoodbye>
       <message>Goodbye!!</message>
       </good:sayGoodbye>
       </soapenv:Body>
      </soapenv:Envelope>
      


      This is the WSDL generated:
      <definitions name="GoodbyeWorldWSService" targetNamespace="http://webservice_producer/goodbyeworld">
      
       <types>
      
       <xs:schema targetNamespace="http://webservice_producer/goodbyeworld" version="1.0">
      <xs:element name="sayAdios" type="tns:sayAdios"/>
      <xs:element name="sayAdiosResponse" type="tns:sayAdiosResponse"/>
      <xs:element name="sayGoodbye" type="tns:sayGoodbye"/>
      <xs:element name="sayGoodbyeResponse" type="tns:sayGoodbyeResponse"/>
      <xs:element name="sayGoodbyeWithoutResponse" type="tns:sayGoodbyeWithoutResponse"/>
      
       <xs:complexType name="sayGoodbye">
      
       <xs:sequence>
      <xs:element minOccurs="0" name="message" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>
      
       <xs:complexType name="sayGoodbyeResponse">
      
       <xs:sequence>
      <xs:element minOccurs="0" name="return" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>
      
       <xs:complexType name="sayAdios">
      
       <xs:sequence>
      <xs:element minOccurs="0" name="arg0" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>
      
       <xs:complexType name="sayAdiosResponse">
      
       <xs:sequence>
      <xs:element minOccurs="0" name="return" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>
      
       <xs:complexType name="sayGoodbyeWithoutResponse">
      
       <xs:sequence>
      <xs:element minOccurs="0" name="message" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>
      </xs:schema>
      </types>
      
       <message name="GoodbyeWorldWS_sayAdiosResponse">
      <part element="tns:sayAdiosResponse" name="sayAdiosResponse"/>
      </message>
      
       <message name="GoodbyeWorldWS_sayGoodbye">
      <part element="tns:sayGoodbye" name="sayGoodbye"/>
      </message>
      
       <message name="GoodbyeWorldWS_sayGoodbyeResponse">
      <part element="tns:sayGoodbyeResponse" name="sayGoodbyeResponse"/>
      </message>
      
       <message name="GoodbyeWorldWS_sayAdios">
      <part element="tns:sayAdios" name="sayAdios"/>
      </message>
      
       <message name="GoodbyeWorldWS_sayGoodbyeWithoutResponse">
      <part element="tns:sayGoodbyeWithoutResponse" name="sayGoodbyeWithoutResponse"/>
      </message>
      
       <portType name="GoodbyeWorldWS">
      
       <operation name="sayAdios" parameterOrder="sayAdios">
      <input message="tns:GoodbyeWorldWS_sayAdios"/>
      <output message="tns:GoodbyeWorldWS_sayAdiosResponse"/>
      </operation>
      
       <operation name="sayGoodbye" parameterOrder="sayGoodbye">
      <input message="tns:GoodbyeWorldWS_sayGoodbye"/>
      <output message="tns:GoodbyeWorldWS_sayGoodbyeResponse"/>
      </operation>
      
       <operation name="sayGoodbyeWithoutResponse">
      <input message="tns:GoodbyeWorldWS_sayGoodbyeWithoutResponse"/>
      </operation>
      </portType>
      
       <binding name="GoodbyeWorldWSBinding" type="tns:GoodbyeWorldWS">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
      
       <operation name="sayAdios">
      <soap:operation soapAction=""/>
      
       <input>
      <soap:body use="literal"/>
      </input>
      
       <output>
      <soap:body use="literal"/>
      </output>
      </operation>
      
       <operation name="sayGoodbye">
      <soap:operation soapAction=""/>
      
       <input>
      <soap:body use="literal"/>
      </input>
      
       <output>
      <soap:body use="literal"/>
      </output>
      </operation>
      
       <operation name="sayGoodbyeWithoutResponse">
      <soap:operation soapAction=""/>
      
       <input>
      <soap:body use="literal"/>
      </input>
      </operation>
      </binding>
      
       <service name="GoodbyeWorldWSService">
      
       <port binding="tns:GoodbyeWorldWSBinding" name="GoodbyeWorldWSPort">
      <soap:address location="http://thora:8080/Quickstart_webservice_producer/GoodbyeWorldWS"/>
      </port>
      </service>
      </definitions>