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

I have a SOAP server using the SOAP Lite module (SOAP::Transport::HTTP::Daemon), it generates several XML strings and returns a hash reference pointing to them. I am getting this error message in my log file with trace turned on:

SOAP::Serializer::envelope: Client Can't use string ("as_anyURI") as a + subroutine ref while "strict refs" in use at /usr/local/lib/perl5/si +te_perl/5.8.8/SOAP/Lite.pm line 1159.

I can dump the XML into my log file prior to return and it looks OK to me. I have no idea how to work around this issue as it is happening as the server is creating the "return envelope". Please let me know your suggestions.

g_White

Replies are listed 'Best First'.
Re: Problem with SOAP server
by Bro. Doug (Monk) on Apr 11, 2007 at 02:04 UTC
    g_White,

    I keep staring at your post and grepping through the SOAP packages. Can you post more on this problem? Maybe the server code you're using? And also the client?

    Sorry, I just can't see a solution based on what you've given.

    Until tomorrow...
    Bro. Doug :wq
Re: Problem with SOAP server
by grep (Monsignor) on Jan 23, 2008 at 14:17 UTC
    I know this is an old node, but I found the solution so I thought I'd post it.

    SOAP::Lite::as_anyURI() doesn't serialize correctly strings with 'http://', reported here. Though I'm not sure where version .70_2 of SOAP::Lite is available at, (I just reworked my data so I didn't send 'http://').

    grep
    One dead unjugged rabbit fish later...

      Great timing, I was just getting back into this project.

      g_White