Perl / SOAP2 Namespaces in SOAP |
20.06.2006 |
| ← 1 Introduction to SOAP | [ up ] - [ a - z ] - [ search PC ] - [ top ] | 3 SOAP::Lite → |
How to set the namespace prefix for the request to the specified values?I have to send attributes as<urn:Foo> ... </urn:Foo> and not <Foo xsi:type="..."> ... </Foo> The part «xsi:type...» is beeing added automatically by SOAP::Lite :-| I have found a related hint in the man page so far: ns($uri,$prefix=undef) Sets the namespace uri and optionally the namespace prefix for the request to the specified values. This overrides any previous namespace declaration that may have been set using a previous call to "ns()" or "default_ns()". If a prefix is not specified, one will be generated for you automatically. Setting the namespace causes elements to be serialized with a declared namespace prefix, like so: <soap:Envelope> <soap:Body> <my:myMethod xmlns:my="http://www.someuri.com"> <my:foo /> </my:myMethod> </soap:Body> </soap:Envelope> Voilà! So it has to be possible to be set! How to set the f*** "my:..." prefix in SOAP::Lite? It might be something like the following code snippet but I could not find any suitable combination yet :-|
SOAP::Data->name('output_one' => "one")->uri("urn:Test")
→ Open related posting: groups.yahoo.com/group/soaplite/message/5442↑ This might be a solution? → /perl/ files/soap/nested code3mail fin pl.txt See also:
|
| |||||||||||||||||||||||||||||||
| ← 1 Introduction to SOAP | [ up ] - [ top ] | 3 SOAP::Lite → |
[ home ] - [ search ] - [ feedback ]
copyright by reto - created with mytexi