Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Which version of Soap::Lite for writing document/literal web services?

by Anonymous Monk
on Feb 17, 2007 at 18:02 UTC ( [id://600614]=perlquestion: print w/replies, xml ) Need Help??

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

Hello,

I want to write document/literal webservices with soaplite. My purpose is to use soaplite as server. Which version would you suggest me to use? Actually I manage to write some examples with .60 and the the clients in .net worked. But I am not sute if there is any risk using this version for doc/lit webservices. I will be grateful if you answer.

Best regards,
Ive

  • Comment on Which version of Soap::Lite for writing document/literal web services?

Replies are listed 'Best First'.
Re: Which version of Soap::Lite for writing document/literal web services?
by john_oshea (Priest) on Feb 18, 2007 at 10:47 UTC

    From the reading I've done, it seems like there is a degree of risk regardless of which SOAP stack you use, unless you can guarantee that your clients and servers are using the same one. If you have something that works sufficiently well for your target audience already, I'd be tempted to leave it as is.

    The SOAP:: Lite Changes file has a fairly comprehensive list of the changes between 0.60 and 0.69 if you want to see what you may be missing out on - in particular, there seem to have been a substantial amount of changes around the 0.65 revision(s).

    Hope that helps.

      Hi, I am using soaplite version 0.69 without custom serializers and it works. I just create messages with SOAP::Data package. There are not many examples with soaplite and document/literal style as server. It would be grate if someone gives any examples. Regards, Ive

        Untested by me (but definitely filed for further investigation): this would seem to be exactly what you're after. I'd appreciate hearing any feedback you have from this approach if you give it a go.

        Hope that helps

Re: Which version of Soap::Lite for writing document/literal web services?
by roman (Monk) on Oct 16, 2007 at 11:01 UTC

    We use SOAP::Lite (both server and client) quite extensively. Recently we upgraded to 0.69 (currently the latest version I think) and things went wrong.

    Except of some inconsistencies in our code, which were tolerated by the old version of SOAP::Lite, I found two quite serious errors:

    Nevertheless we still use 0.69, even for document/literal SOAP. To have full control over the content of soap body element I often use $soap->call with the method argument being a XML (XML::LibXML) document (complete content of the soap:Body element).

    my $som = $soap->call(soap_xml_data $xml_doc);

    On the server site I use similar approach to return the complete content of soap:Body element.

    sub dispatched_method { .... return soap_response_body(soap_xml_data($xml_doc)); }

    This approach contains an ugly hack, which prevents SOAP::Lite serializer to wrap the returned value by a response element.

Re: Which version of Soap::Lite for writing document/literal web services?
by ruoso (Curate) on Jun 07, 2012 at 17:02 UTC

    Since this shows up in a Google search I decided to add a more up-to-date answer.

    Currently XML::Compile::SOAP will provide you with a much more feature-complete implementation of the SOAP protocol. SOAP::Lite doesn't actually implement Literal encoding so you have to go to great lengths in trying to produce the right document.

    daniel
Re: Which version of Soap::Lite for writing document/literal web services?
by Anonymous Monk on Feb 18, 2007 at 04:20 UTC
    There is risk

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://600614]
Approved by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found