You can't pass the XML to the call like that you will need to build up your document using SOAP::Data and then use call you might have something rather like:

use strict; use SOAP::Lite +trace => 'all'; + my $ns = 'http://www.XXXXX.com/WebServices/HostService'; my $ep = 'http://localhost/'; + my $lite = SOAP::Lite->uri($ns)->proxy($ep)->on_action( sub { join "", + @_ } ); + $lite->autotype(0); $lite->soapversion('1.1'); + $lite->serializer()->namespaces({'http://schemas.xmlsoap.org/soap/enve +lope/' => 'soap'}); + + $lite->autotype(0); + + my $doc = SOAP::Data->name('doRateQuote')->uri($ns)->prefix('m'); + + my $value = SOAP::Data->value( SOAP::Data->name( WSRateQuoteHostRequest => \SOAP::Data->value(SOAP::Data->name( destZipCode => '038 +72' ), SOAP::Data->name( originZipCode => '30263' ), SOAP::Data->name( fmsLocationId => 'XXXXX' ) ))->type('ns100:WSRateQuoteHostRequest') ->attr({'xmlns:ns100' => "java:com.XXXXX.webservice"})); + + + + my $res = $lite->call($doc => $value); + print $res, "\n";
I have omitted most of the elements within WSRateQuoteHostRequest for clarity, but I guess you can work out where they have to go.

/J\


In reply to Re: SOAP Beginner ... I hate to impose by gellyfish
in thread SOAP Beginner ... I hate to impose by hermonat

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.