Take a look at SOAP::Transport::LOOPBACK, "it just returns the XML request as response"

#!perl use strict; use SOAP::Lite; my $uri = "http://schemas.cisco.com/ast/soap"; my $CUCM = SOAP::Lite->uri($uri) ->proxy("loopback://"); $CUCM->outputxml(1); $CUCM->readable(1); $CUCM->envprefix('soapenv'); $CUCM->ns($uri,'soap'); $CUCM->autotype(0); my @items; for (6963..6965){ push @items,SOAP::Data->name( "item"=> \SOAP::Data->value( SOAP::Data->name("Item"=> $_) )); }; my $items = \SOAP::Data->value( @items ); my %select = ( "MaxReturnedDevices" => 1000, "DeviceClass" => 'Any', "Model" => 255, "Status" => 'Any', "NodeName" => '', "SelectBy" => 'DirNumber', "SelectItems" => $items, "Protocol" => 'Any', "DownloadStatus"=> 'Any' ); my $state = SOAP::Data->name('StateInfo',''); my $data = SOAP::Data->name("CMSelectionCriteria" => \%select); + my $elem = SOAP::Data->type('data' => $data); my $response = $CUCM->selectCmDevice($state,$elem); open OUT,'>','soap.xml' or die "$!"; print OUT $response; close OUT;

also maybe try

my $sql = "SELECT pkid, name, description FROM device WHERE name='SEP20370617E212'"; $response = $CUCM->executeSQLQuery( SOAP::Data->name('sql' => $sql) ); print $response;
poj

In reply to Re: Displaying SOAP Request and Response by poj
in thread Displaying SOAP Request and Response by adamZ88

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.