Namespaces in SOAP answears

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Namespaces in SOAP answears

xweg
Hello

Our form (made with FormBuilder) gets some of its content from webservices. This content comes as SOAP answers and because they are automatically generated they use the namespaces ns1, ns2, etc.. To put this content into the form I need to address it with XPath and therefore use the namespaces as they are generated. Because the form didn't load, I defined those namespaces in the form source code in the xhtml:html tag as an attribute. As we are using now several webservices we have a namespace conflict, the same namespace should be declared differently. Apparently it is not possible to define the namespaces generated. Can i do something in the form to make it work?

kind regards
Florian

Reply | Threaded
Open this post in threaded view
|

Re: Namespaces in SOAP answears

Alessandro  Vernet
Administrator
Florian,

The namespaces don't have to use the same prefix in your XForms and in
the SOAP response. So if you have two services where the first uses
xmlns:ns="url1" and the second xmlns:ns="url2", in your XForms you can
declare xmlns:ns1="url1" and xmlns:ns2="url2", and use ns1 and ns2 in
your XPath expressions. Would that work, or did I misunderstand what
you were saying?

Alex

On Tuesday, November 10, 2009, eforms4 <[hidden email]> wrote:

>
> Hello
>
> Our form (made with FormBuilder) gets some of its content from webservices.
> This content comes as SOAP answers and because they are automatically
> generated they use the namespaces ns1, ns2, etc.. To put this content into
> the form I need to address it with XPath and therefore use the namespaces as
> they are generated. Because the form didn't load, I defined those namespaces
> in the form source code in the xhtml:html tag as an attribute. As we are
> using now several webservices we have a namespace conflict, the same
> namespace should be declared differently. Apparently it is not possible to
> define the namespaces generated. Can i do something in the form to make it
> work?
>
> kind regards
> Florian
>
>
> --
> View this message in context: http://n4.nabble.com/Namespaces-in-SOAP-answears-tp585304p585304.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Namespaces in SOAP answears

xweg
Alex,

Yes you got it right and the answear is that easy.

Thank you
Florian



Alessandro Vernet-2 wrote
Florian,

The namespaces don't have to use the same prefix in your XForms and in
the SOAP response. So if you have two services where the first uses
xmlns:ns="url1" and the second xmlns:ns="url2", in your XForms you can
declare xmlns:ns1="url1" and xmlns:ns2="url2", and use ns1 and ns2 in
your XPath expressions. Would that work, or did I misunderstand what
you were saying?

Alex

On Tuesday, November 10, 2009, eforms4 <f.stoller@gmail.com> wrote:
>
> Hello
>
> Our form (made with FormBuilder) gets some of its content from webservices.
> This content comes as SOAP answers and because they are automatically
> generated they use the namespaces ns1, ns2, etc.. To put this content into
> the form I need to address it with XPath and therefore use the namespaces as
> they are generated. Because the form didn't load, I defined those namespaces
> in the form source code in the xhtml:html tag as an attribute. As we are
> using now several webservices we have a namespace conflict, the same
> namespace should be declared differently. Apparently it is not possible to
> define the namespaces generated. Can i do something in the form to make it
> work?
>
> kind regards
> Florian
>
>
> --
> View this message in context: http://n4.nabble.com/Namespaces-in-SOAP-answears-tp585304p585304.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>

--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Namespaces in SOAP answears

Alessandro  Vernet
Administrator
Florian,

On Mon, Nov 16, 2009 at 2:30 AM, eforms4 <[hidden email]> wrote:
> Yes you got it right and the answear is that easy.

Excellent!

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Namespaces in SOAP answears

Alessandro  Vernet
Administrator
On Mon, Nov 16, 2009 at 11:12 PM, Alessandro Vernet <[hidden email]> wrote:
> Florian,
>
> On Mon, Nov 16, 2009 at 2:30 AM, eforms4 <[hidden email]> wrote:
>> Yes you got it right and the answear is that easy.
>
> Excellent!

And I should add that I love it when namespaces and prefixes are
helpful, as in this case. In most cases, they are perceived as being
more of cause for problems, especially these infamous default
namespace ;).

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet