syerrave has asked for the wisdom of the Perl Monks concerning the following question:

Hi I'm having problem printing the soap response. The following client is print a binary HASH value.

The client is as follows:

#!/usr/local/bin/perl use SOAP::Lite; #use SOAP::Lite +trace; print "Connecting to the Server..\n"; ## ->uri('urn:#getHistoryNotes') my $ACTION='urn:#getHistory'; $som= SOAP::Lite ->readable(1) ->uri('http:///services/servicelayer') ->proxy('/services/crm') ->on_action(sub { return $ACTION; } ) #->on_action('urn#getHistoryNotes') ->GetHistoryNotesRequest(SOAP::Data->name('customerId' => '123456' +)->type('string')) ; # my $som = $soap->call(GetHistory()); if ($som->fault) { print "We got a SOAP fault:\n"; print " faultcode: ". $som->faultcode ."\n"; print " faultstring: ". $som->faultstring ."\n"; print " faultactor: ". $som->faultactor ."\n"; print " faultdetail: ". $som->faultdetail ."\n"; exit(); } print $som->result(); print "som returned value $som \n"; -------------------------
The response is getting printed as HASH(0x215c00c)

What am I doing wrong.

Replies are listed 'Best First'.
Re: soap::lite response
by zwon (Abbot) on Mar 05, 2010 at 21:49 UTC
    What am I doing wrong.
    You are not using the <code> tags. See Markup in the Monastery.

    Try to replace

    print $som->result();
    with
    use Data::Dumper; print Dumper $som->result();
    that should help you to figure out what the problem is.
      Thank You. Will Try this.