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

Envelope Namespace Problem

Expand Messages
  • bugs5382
    Above is the code I have and below is the request and the response. I been looking all over this mailing list and the web for this answer, but could not find
    Message 1 of 1 , Apr 13, 2012
    • 0 Attachment
      Above is the code I have and below is the request and the response. I
      been looking all over this mailing list and the web for this answer, but
      could not find it.

      I know the error is:

      Possible SOAP version mismatch: Envelope namespace
      http://schemas.xmlsoap.org/wsdl/soap/ was unexpected. Expecting
      http://schemas.xmlsoap.org/soap/envelope/.

      I was just wondering how to fix it with my current structure of the code
      I have below.

      Thanks,
      Shane



      #!perl -w

      use SOAP::Lite +trace => 'debug';

      my $lmi_Soap = SOAP::Lite->new();

      my $lmi_WSDL =

      $lmi_Soap->service('https://secure.logmeinrescue.com/api/api.asmx?wsdl')\
      ;

      $lmi_Soap->soapversion('1.2');

      my $lmi_requestAuthCode =
      $lmi_WSDL->requestAuthCode( 'xxx', "xxx" );




      SOAP::Transport::HTTP::Client::send_receive: POST
      https://secure.logmeinrescue.c
      om/api/api.asmx HTTP/1.1
      Accept: text/xml
      Accept: multipart/*
      Accept: application/soap
      Content-Length: 837
      Content-Type: text/xml; charset=utf-8
      SOAPAction:
      "https://secure.logmeinrescue.com/API/API.asmx/requestAuthCode"

      <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
      xmlns:tm="http://microsoft.
      com/wsdl/mime/textMatching/"
      xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap1
      2/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
      soap:encodingStyle="http:
      //schemas.xmlsoap.org/soap/encoding/"
      xmlns:soap="http://schemas.xmlsoap.org/wsd
      l/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema"
      xmlns:wsdl="http://schemas.x
      mlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:so
      apenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:http="http://schemas.xml
      soap.org/wsdl/http/"
      xmlns:tns="https://secure.logmeinrescue.com/API/API.asmx"><
      soap:Body><tns:requestAuthCode><sEmail
      xsi:type="s:string">XXXXX</sEmail><sPassword
      xsi:type="s:string">XXXXX</sPassword></tns:request
      AuthCode></soap:Body></soap:Envelope>


      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
      Server Error
      Cache-Control: private
      Date: Fri, 13 Apr 2012 15:15:13 GMT
      Server: Microsoft-IIS/7.5
      Content-Length: 835
      Content-Type: text/xml; charset=utf-8
      Client-Date: Fri, 13 Apr 2012 15:15:11 GMT
      Client-Peer: 69.25.20.195:443
      Client-Response-Num: 1
      Client-SSL-Cert-Issuer: /C=US/O=Thawte, Inc./CN=Thawte SSL CA
      Client-SSL-Cert-Subject: /C=US/ST=Massachusetts/L=Woburn/O=LogMeIn,
      Inc./OU=Secu
      re Application Development/CN=secure.logmeinrescue.com
      Client-SSL-Cipher: AES128-SHA
      Client-SSL-Socket-Class: IO::Socket::SSL
      X-Powered-By: ASP.NET

      <?xml version="1.0" encoding="utf-8"?><soap:Envelope
      xmlns:soap="http://schemas.
      xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
      "
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><soap12:Upgrad\
      e xmln
      s:soap12="http://www.w3.org/2003/05/soap-envelope"><soap12:SupportedEnve\
      lope qna
      me="soap:Envelope"
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" /><soa
      p12:SupportedEnvelope qname="soap12:Envelope"
      xmlns:soap12="http://www.w3.org/20
      03/05/soap-envelope"
      /></soap12:Upgrade></soap:Header><soap:Body><soap:Fault><fa
      ultcode>soap:VersionMismatch</faultcode><faultstring>Possible SOAP
      version misma
      tch: Envelope namespace http://schemas.xmlsoap.org/wsdl/soap/ was
      unexpected. Ex
      pecting http://schemas.xmlsoap.org/soap/envelope/.</faultstring><detail
      /></soap
      :Fault></soap:Body></soap:Envelope>

      Press any key to continue . . .
    Your message has been successfully submitted and would be delivered to recipients shortly.