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

Expand Messages
  • ErikTheRed
    ... Here s the complete transaction: SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x12b16e0) SOAP::Transport::HTTP::Client::send_receive:
    Message 1 of 1 , Aug 22, 2008
    • 0 Attachment
      >--- On Fri, 8/22/08, rahed <raherh@...> wrote:
      >From: rahed <raherh@...>
      >Subject: Re: [soaplite] Serialization problems:
      >To: soaplite@yahoogroups.com
      >Date: Friday, August 22, 2008, 7:24 AM
      >> Thank you for your suggestion; I had missed the backslash creating a >reference.
      >>
      >> However, this syntax still gives the same result: a xsi:nil="true" value in the output XML.
      >>
      >> Any other suggestions would be appreciated.
      >>
      >
      >
      >Will you send the whole request/response?
      >
      >--
      >
      >Radek

      Here's the complete transaction:

      SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x12b16e0)
      SOAP::Transport::HTTP::Client::send_receive: POST https://www.[DOMAIN].com/services/status/default.asmx HTTP/1.1
      Accept: text/xml
      Accept: multipart/*
      Accept: application/soap
      Content-Length: 800
      Content-Type: text/xml; charset=utf-8
      SOAPAction: "http://www.[DOMAIN].com/List"

      <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://www.[DOMAIN].com/"><soap:Body><tns:List><credentials xsi:nil="true" xsi:type="tns:Credentials" /><request xsi:nil="true" xsi:type="tns:ArrayOfStatusPoint" /></tns:List></soap:Body></soap:Envelope>
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0xda6f30)
      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error
      Cache-Control: private
      Date: Wed, 20 Aug 2008 20:24:51 GMT
      Server: Microsoft-IIS/6.0
      Content-Length: 835
      Content-Type: text/xml; charset=utf-8
      Client-Date: Wed, 20 Aug 2008 20:25:19 GMT
      Client-Peer: [HOST]:443
      Client-Response-Num: 1
      Client-SSL-Cert-Issuer: /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=xxxxxxx
      Client-SSL-Cert-Subject: /O=www.[DOMAIN].com/OU=Domain Control Validated/CN=www.[DOMAIN].com
      Client-SSL-Cipher: RC4-MD5
      Client-SSL-Warning: Peer certificate not verified
      X-AspNet-Version: 2.0.50727
      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:Upgrade xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"><soap12:SupportedEnvelope qname="soap:Envelope" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" /><soap12:SupportedEnvelope qname="soap12:Envelope" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" /></soap12:Upgrade></soap:Header><soap:Body><soap:Fault><faultcode>soap:VersionMismatch</faultcode><faultstring>Possible SOAP version mismatch: Envelope namespace http://schemas.xmlsoap.org/wsdl/soap/ was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>


      Here's the code generating the transaction:


      my $client = SOAP::Lite->service($WSDL);

      my $CallCredentials = SOAP::Data
      ->name(credentials => \SOAP::Data->value(
      SOAP::Data->name(Username => $UserName)->type('string'),
      SOAP::Data->name(Password => $Password)->type('string')));

      my $CallStatusPoint = SOAP::Data->name("StatusPoint") =>
      SOAP::Data->value(
      SOAP::Data->name("Id" => $Id),
      SOAP::Data->name("Note" => $Note),
      SOAP::Data->name("DateSince" => $DateSince),
      SOAP::Data->name("DateCreated" => $DateCreated),
      SOAP::Data->name("ErrorDescription" => $ErrorDescription)
      );

      my $CallRequest = SOAP::Data->name("request") => $CallStatusPoint;

      my $results = $client->List($CallCredentials, $CallRequest)->result;
    Your message has been successfully submitted and would be delivered to recipients shortly.