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

Hello I am trying to make SOAP request with perl. Here is my code:
$service = SOAP::Lite->new(proxy => $url); $service->uri("http://www.some.uri/"); my $x = $service->SomeSoapAction();

It fails with $x->fault saying: "Server did not recognize the value of HTTP Header SOAPAction: http://www.some.uri/#SomeSoapAction".

My question is why there is a # sign in the SOAPAction? And how can I get rid of it? I think that it is the cause of the problem because action http://www.some.uri/SomeSoapAction should be available. Thank you.

Replies are listed 'Best First'.
Re: SOAP::Lite # in SOAP action
by Corion (Patriarch) on Mar 20, 2018 at 14:27 UTC

    Note that I don't know/do any SOAP.

    Searching SOAP::Lite for # shows me as the first hit the ->on_action method (and associated callback), which discusses what you can do if you want a slash instead of a hashmark to separate the endpoint from the action. Maybe that's all you need to do?

A reply falls below the community's threshold of quality. You may see it by logging in.