in reply to sending raw soap envelope with soap::lite

I've never used a SOAP interface before, but I did spot something.

You have this, which I would suspect sets up the object with the URI:

$soap = SOAP::Lite ->proxy($proxy) ->uri($uri);

But then when you make the call, you include the URI again:

$results = $soap->call("$uri/$method",$soapenv);

What happens if you included only the method in the call?:

$results = $soap->call($method, $soapenv);

Replies are listed 'Best First'.
Re^2: sending raw soap envelope with soap::lite
by ffrost (Acolyte) on Nov 29, 2023 at 19:21 UTC
    What happens if you included only the method in the call?: $results = $soap->call($method, $soapenv);

    answer: I get a SOAP envelope going to the web service with munged up XML. For example:

    <soap:Envelope ...> <soap:Body> ... <c-gensym2><?xml version="1.0" encoding="UTF-8"> <soap:Envelope ...> <soap:Header> ... </soap:Header> <soap:Body> ... </soap:Body> </soap:Envelope> </c-gensym2> </soap:Body> </soap:Envelope>