RE: SOAP response without proper prefix?
Posted by
Steve Bayliss on
Feb 03, 2010; 6:08am
URL: https://discuss.orbeon.com/SOAP-response-without-proper-prefix-tp1460520p1460786.html
Message
Hi Robin
You can use the xslt processor
in your pipeline to process the results before they get back to your form - you
can reformat the results into whatever format's most convenient for your
form.
(by the way it's not actually a
namespace collision - <total xmlns="http://www.someothernamespace/services">10</total>
is identical - eg from an xpath point of view - to <xyz:total xmlns:xyz="http://www.someothernamespace/services">10</xyz:total>,
so alternatively just use the appropriate syntax with your own namespace prefix
definition within your xform. It doesn't matter what the actual namespace
prefix so long as it is declared correctly to match the - in this case - default
namespace in your SOAP response)
Regards
Steve
Hello all,
I'm using a pipeline which performs a SOAP call. The SOAP response is (of
course) an XML document, which looks like this:
<QueryResponse xmlns:ns1="http://www.somenamespace/parameters" SNIP
SNAP
xmlns="http://www.someothernamespace/services">
<total>10</total>
</QueryResponse>
Now I want to use the result from this SOAP call on my form. How should I
handle this name space collision? On my form I have defined
"xmlns="http://www.w3.org/1999/xhtml"" (it wouldn't be very pretty to change
this, would it).
Can I somehow force a certain namespace / prefix on my SOAP response?
Best, Robin
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws