For those with really complicated XML elements that need to have multiple namespace declarations - possibly because some out of scope XML attributes need to be declared - can rest assured that there is an easy way to do it. It is not as automatic as the traditional SOAP::Lite->uri() method, but it works just the same...
To add additional namespace declarations to any element, just add additional attributes to the element in the way you normally would:
SOAP::Data->name("myElement" => "myValue")
->attr( { 'xmlns:foo2' => 'urn:Foo2',
'xmlns:foo3' => 'urn:Foo3' } )
If you need to make this change the root element of the request, see a previous entry on that topic.
is it possible that by not using the SOAP::Data->name to describe each tag in the server program to send the information to the client in xml format, i use
$result->{'_raw_xml'} = $response;
return $response if $result->outputxml(1);
this i'm trying to use DBI also so it gives me this error
Can't locate object method "outputxml" via package "DBI::st"
in my server program. what could this be?
Note from Byrne: I would suggest the following http://www.majordojo.com/archives/000017.php
Posted by: anonymous | February 08, 2005 at 08:51 AM