Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: SOAP::Lite and SOAP-ENV

by Anonymous Monk
on Apr 17, 2009 at 11:09 UTC ( #758175=note: print w/ replies, xml ) Need Help??


in reply to SOAP::Lite and SOAP-ENV

I've had the same problem, and this was my solution:

    # It turns out that the SOAP-ENV and SOAP-ENC tags used by default
    # by SOAP::Lite are not agreeing with the customer's
    # API. That needs soapenv and soapenc tags. Therefore, we now will
    # fiddle with SOAP::Lite's constants. Isn't life great?
    $SOAP::Constants::PREFIX_ENV = "soapenv";
    $SOAP::Constants::PREFIX_ENC = "soapenc";

    my $soap = SOAP::Lite
      ->uri(SOAP_URL)
    ....
and later on:
    # We've fiddled with SOAP::Lite's constants. As mod_perl might
    # keep these constants, we'd better be sure and change them back
    # before anyone else notices the changes... I've got a t-shirt at
    # home which says "I love SOAP::Lite", but I'm afraid to wear it.
    $SOAP::Constants::PREFIX_ENV = "SOAP-ENV";
    $SOAP::Constants::PREFIX_ENC = "SOAP-ENC";
Cheers, Eelko de Vos


Comment on Re: SOAP::Lite and SOAP-ENV

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://758175]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-07-04 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls