Hi, i am using perl lite and having problem printing the soap response. The client is print a binary HASH value.

how do i get the complete response (HTML) from the binary HASH value

its SOAP lite

here is a program:

#!/usr/bin/perl use SOAP::Lite +trace; use strict; my $soap = SOAP::Lite->new( proxy =>'http://xxxx'); my $serializer = $soap->serializer(); $soap->on_action( sub { "urn:addrequest" }); $soap->autotype(0)->readable(1); $soap->default_ns('http://xxxx.com/xxxAPI'); my $som = $soap->call('add-own', SOAP::Data->name('own:login-info')->v +alue( \SOAP::Data->value([ SOAP::Data->name('own:user-name')->value( 'abc123' ), SOAP::Data->name('own:password')->value('*****'), SOAP::Data->name('own:account-number')->value('101'), ])), SOAP::Data->name('own:add-owner')->value( \SOAP::Data->value([ SOAP::Data->name('own:owner-info')->value( \SOAP::Data->value([ SOAP::Data->name('own:first-name')->value('xyz'), SOAP::Data->name('own:last-name')->value('con'), SOAP::Data->name('own:address1')->value('400 man st'), SOAP::Data->name('own:city')->value('SFO'), SOAP::Data->name('own:state')->value('CA'), SOAP::Data->name('own:country')->value('US'), SOAP::Data->name('own:zip')->value('90405'), SOAP::Data->name('own:phone')->value('3100000000'), SOAP::Data->name('own:email')->value('test@gmail.com'), ])), SOAP::Data->name('add-numbers') ->attr({'number-type'=> 'intl'}) ])) ## ]))])) ); die $som->fault->{ faultstring } if ($som->fault); print $som->result, "\n";

====== OUTPUT:

HASH(0x887dacc)

In reply to soap response by Kishore28

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.