Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: SOAP Server and XML

by rahed (Scribe)
on Nov 27, 2007 at 16:01 UTC ( #653287=note: print w/replies, xml ) Need Help??

in reply to SOAP Server and XML

Have you tried this?

SOAP::Data->name( info => $serverinfo )->type('');

Replies are listed 'Best First'.
Re^2: SOAP Server and XML
by Anonymous Monk on Nov 28, 2007 at 02:06 UTC
    I've figured out how to output raw XML into the SOAP envelope: Using the same client as before: It produces the following SOAP response:
    <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:xsi=" +e" xmlns:SOAP-ENC="" xmlns:S +OAP-ENV="" xmlns:xsd="http:/ +/" SOAP-ENV:encodingStyle="http://schemas.xm"> <SOAP-ENV:Body> <namesp1:getServerInfoResponse xmlns:namesp1="http://www.perlmonks"> <info> <statistics> <documentsProcessed>0</documentsProcessed> </statistics> <validTypes> <filetype>html</filetype> <filetype>txt</filetype> </validTypes> <version></version> </info> </namesp1:getServerInfoResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
    This is closer to the real SOAP server response: I am still trying to figure out how to get rid of the xmlns:namesp1="" and the envelope headers.
      Ugh, the message was posted when I wasn't logged in.
        It's kind pointless to use SOAP::Lite if you're going to inject raw XML :-)

        As I said, I don't have enough experience writing SOAP::Lite-based services with that level of control over serialisation, but I'd be quite sure it's possible.


Re^2: SOAP Server and XML
by erroneousBollock (Curate) on Nov 28, 2007 at 02:34 UTC
    That'd probably work for the 'info' node, but rppowell wants to (for reasons unknown) strip type attributes from all nodes descending from the Soap::Body.

    To do that, it'd need to be done either at the $daemon level, or with a custom(ised?) serialiser.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2021-04-14 15:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found