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

problems sending objects

Expand Messages
  • Peter Sykora
    Hello, I try to send a simple object (using a hash) to send it to a SOAP service. My code works fine with Activestat Perl v5.6.1 on Win32 and SOAP-Lite v0.46:
    Message 1 of 1 , Mar 20 6:04 AM
    • 0 Attachment
      Hello,

      I try to send a simple object (using a hash) to send it to a SOAP
      service. My code works fine with Activestat Perl v5.6.1 on Win32 and
      SOAP-Lite v0.46:

      my %cp;
      $cp{'gesmes_ref'} = 'http://127.0.0.1/imap_export/working_pop2.xml';
      $cp{'nutslevel'} = 2;
      $cp{'dataselector'} = 'AGE_CODE(Y0_24):YEAR_CODE(1991A00):SEX_CODE
      (M)';
      $cp{'classborders'} = '10 20 30 40 50 60 70';
      $cp{'classcolors'} = '#6f0000ff #6f3f3fff #6f7f7fff #6f7f7fff
      #6fffafaf #6fff7f7f #6fff3f3f #6fff0000 #1fffffff';
      $cp{'max_value'} = 0;
      $cp{'max_size'} = 0;
      my $var = SOAP::Data->type('map_params' => \%cp)->name('map_params');

      $soap_response =
      SOAP::Lite
      -> uri($uri)
      -> proxy($proxy)
      -> create_map_xml($p_map,$var);

      I used exactly the same code with Perl (v5.6.1) under UNIX and the
      latest SOAP-Lite version, but I always get the following error
      message:
      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.0 500 Internal
      Server Error

      The XML request message that SOAP::Lite creates looks fine, I have no
      idea what is going wrong. Do I have to install any other perl
      packages?

      XML request message:
      <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
      xmlns:namesp5="http://namespaces.soaplite.com/perl" SOAP-
      ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-
      ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-
      ENV="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/1999/XMLSchema">
      <SOAP-ENV:Body>
      <namesp4:create_map_xml xmlns:namesp4="urn:iMap_wrapper">
      <c-gensym10 xsi:type="xsd:int">1761080</c-gensym10>
      <map_params xsi:type="namesp5:map_params">
      <max_value xsi:type="xsd:int">0</max_value>
      <nutslevel xsi:type="xsd:int">2</nutslevel>
      <max_size xsi:type="xsd:int">0</max_size>
      <classcolors xsi:type="xsd:string">#6f0000ff #6f3f3fff #6f7f7fff
      #6f7f7fff #6fffafaf #6fff7f7f #6fff3f3f #6fff0000
      #1fffffff</classcolors>
      <classborders xsi:type="xsd:string">10 20 30 40 50 60
      70</classborders>
      <gesmes_ref
      xsi:type="xsd:string">http://127.0.0.1/imap_export/working_pop2.xml</g
      esmes_ref>
      <dataselector xsi:type="xsd:string">AGE_CODE(Y0_24):YEAR_CODE
      (1991A00):SEX_CODE(M)</dataselector>
      </map_params>
      </namesp4:create_map_xml>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      Thanks in advance for any hints.
      Peter
    Your message has been successfully submitted and would be delivered to recipients shortly.