Hello Steve,
Thanks for the tips!
Regarding your first solution: I did find some hints about that, but if possible, I'd like to avoid such a construction, as this would imply my application being harder to maintain. I like to keep things simple :-) (of course, if it has to be done, it has to be done)
Your second solution sounds quite interesting, but I don't think I'm getting exactly what you mean. How would I use my own namespace prefix on the form for this SOAP response? Would I have to add this namespace to my xforms:instance tag and adress the elements (prefixed with the namespace) on the form?
Best, Robin
-----Original message-----
From: Steve Bayliss <[hidden email]>
Sent: Wed 03-02-2010 07:09
To: [hidden email];
Subject: [ops-users] RE: SOAP response without proper prefix?
Hi RobinYou 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)RegardsSteve-----Original Message-----
From: Robin Diederen [mailto:[hidden email]]
Sent: 02 February 2010 22:25
To: [hidden email]
Subject: [ops-users] SOAP response without proper prefix?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
Free forum by Nabble | Edit this page |