Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: SOAP Server and XML

by erroneousBollock (Curate)
on Nov 27, 2007 at 01:39 UTC ( #653127=note: print w/ replies, xml ) Need Help??


in reply to SOAP Server and XML

Just reading through the SOAP::Lite gives a few pointers...

I think you can have the "pmq" namespace registered in the SOAP Envelope by doing something like (updated):

# add this to your service instantiation $daemon->envelope( register_ns => 'http://www.perlmonks.com/FileQueue', 'pmq'); # force the 'pmq' prefix to be used sub FileQueue::getServerInfo { return SOAP::Data->name(info => $serverinfo)->prefix('pmq'); }

I'm not sure if that's the exact syntax but please have a play around with it (update: if that sets the 'pmq' prefix for 'info' rather than 'getServerInfoResponse', then you probably need to do something at the service level, rather than at the method level).

I don't know how to suppress sending xsi:type attributes for elements inside the SOAP Body.
SOAP::Lite probably allows you to do it... probably with a custom serialiser.

-David


Comment on Re: SOAP Server and XML
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2015-07-06 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls