trickydicky has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Having used this site in silence for many years (it's been great, thanks :-) ), I've finally found a problem for which I can't find the answer.
I need generate a soap request in with containing the following xml:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envel +ope/" xmlns:typ="http://www.corvil.com/ws/stats/types"> <soapenv:Header/> <soapenv:Body> <typ:getCnesRequest version="1"/> </soapenv:Body> </soapenv:Envelope>
The bit I'm really struggling with is getting the tag attribute?: version="1" added to the method getCnesRequest.
I've tried many different ways of doing it including using $soap->getCnesRequest->attr({Version=>"1"}) and even using raw xml, but nothing seems to do what I need...this may be due to the fact that I'm no expert in XML and I may even be using the wrong terminology when I search for the answer.
Any help/pointers anyone can provide would be very much appreciated.
Many thanks.
Trickydicky
2017-12-23 Athanasius added code and paragraph tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite method attributes
by thanos1983 (Parson) on Dec 22, 2017 at 12:37 UTC | |
by trickydicky (Initiate) on Dec 22, 2017 at 12:47 UTC | |
by thanos1983 (Parson) on Dec 22, 2017 at 15:37 UTC | |
by trickydicky (Initiate) on Dec 22, 2017 at 12:43 UTC | |
by poj (Abbot) on Dec 22, 2017 at 16:34 UTC |