Loading ...
Sorry, an error occurred while loading the content.

reg soap:VersionMismatch

Expand Messages
  • Venkatraman S
    Hi, I am running into a wierd error and am unable to debug it for quite sometime now. Am not sure whether this is a bug or not : Apparently , am running into
    Message 1 of 1 , Sep 12, 2006
    • 0 Attachment
      Hi,

      I am running into a wierd error and am unable to debug it for quite sometime now. Am not sure whether this is a bug or not :

      Apparently , am running into the following error alternatively between successful runs and errored ones - that is out of around 10 calls to the service around 4-5 calls throw the following error:

      <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:VersionMismatch</faultcode><faultstring>Wrong SOAP version specified. Supported versions:
        1.1 (http://schemas.xmlsoap.org/soap/envelope/)
        1.2 (http://www.w3.org/2003/05/soap-envelope)
      </faultstring></soap:Fault></soap:Body></soap:Envelope>

      when it runs successfully, then

      <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><soap:Body><getNoteResponse xmlns="urn:VenkyHello"><s-gensym3 xsi:type="xsd:string">THIS iS webservice world-VENWORLD</s-gensym3></getNoteResponse></soap:Body></soap:Envelope>


      The structure of my wsdl is as follows:

      <?xml version="1.0" encoding="UTF-8"?>
      <definitions name="VenkyHello"
         targetNamespace="VenkyHello"
         xmlns="http://schemas.xmlsoap.org/wsdl/"
         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
         xmlns:tns="http://host:port/cgi-bin/venky/mywsdl.wsdl"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema">

         <message name="getNoteRequest">
            <part name="getNoteRequestSoapMsg" type="xsd:string"/>
         </message>
         <message name="getNoteResponse">
            <part name="getNoteResponseSoapMsg" type="xsd:string"/>
         </message>

         <portType name="VenkyHelloPort">
            <operation name="getNote">
               <input message="tns:getNoteRequest"/>
               <output message="tns:getNoteResponse"/>
            </operation>
         </portType>

         <binding name="VenkyHelloBinding" type="tns:VenkyHelloPort">
            <soap:binding style="rpc"
               transport="http://schemas.xmlsoap.org/soap/http"/>
            <operation name="getNote">
               <soap:operation soapAction="urn:VenkyHello#getNote"/>
               <input>
                  <soap:body
                     namespace="urn:VenkyHello"
                     use="encoded"/>
               </input>
               <output>
                  <soap:body
                     namespace="urn:VenkyHello"
                     use="encoded"/>
               </output>
            </operation>
         </binding>

         <service name="VenkyHello">
            <documentation>WSDL File for HelloService</documentation>
            <port binding="tns:VenkyHelloBinding" name="VenkyHelloPort">
               <soap:address
                  location="http://host:port/cgi-bin/venky/VenkyHello.cgi"/>
            </port>
         </service>
      </definitions>



      Regards,
      Venky


      Do you Yahoo!?
      Get on board. You're invited to try the new Yahoo! Mail.
    Your message has been successfully submitted and would be delivered to recipients shortly.