You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by blicket <ma...@gmail.com> on 2012/02/16 18:44:26 UTC

How do you move namespace definitions from body to soap envelop?

Could someone please point me to how to move namespace prefix definition from
the body to the soap envelope for a wsdl2java generated client?  Thanks in
advance.

--
View this message in context: http://cxf.547215.n5.nabble.com/How-do-you-move-namespace-definitions-from-body-to-soap-envelop-tp5490239p5490239.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: How do you move namespace definitions from body to soap envelop?

Posted by blicket <ma...@gmail.com>.
Yes it works using that method.  Thank you.

--
View this message in context: http://cxf.547215.n5.nabble.com/How-do-you-move-namespace-definitions-from-body-to-soap-envelop-tp5490239p5490554.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: How do you move namespace definitions from body to soap envelop?

Posted by Daniel Kulp <dk...@apache.org>.
On Thursday, February 16, 2012 9:44:26 AM blicket wrote:
> Could someone please point me to how to move namespace prefix definition
> from the body to the soap envelope for a wsdl2java generated client? 
> Thanks in advance.

You can configure a map (on the internal endpoint or as a request property) 
with the key:

"soap.env.ns.map"

that is a Map<String,String> of prefix -> namespace declarations.  CXF will 
output those onto the envelope.

Dan

> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/How-do-you-move-namespace-definitions-from-
> body-to-soap-envelop-tp5490239p5490239.html Sent from the cxf-user mailing
> list archive at Nabble.com.
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Re: How do you move namespace definitions from body to soap envelop?

Posted by blicket <ma...@gmail.com>.
I believe so.  I have one thing in my header and that's the security element. 
And the soap envelop only has the soap prefix declaration.

--
View this message in context: http://cxf.547215.n5.nabble.com/How-do-you-move-namespace-definitions-from-body-to-soap-envelop-tp5490239p5490541.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: How do you move namespace definitions from body to soap envelop?

Posted by Glen Mazza <gm...@talend.com>.
Instead of "moving it", is it acceptable to duplicate it, i.e., your 
question is really how do I add a namespace prefix definition to the 
SOAP header?  The CXF framework should take care of that for you as soon 
as you put an element in the soap header (via CXF interceptors or JAX-WS 
handlers) requiring it.

Glen

On 02/16/2012 12:44 PM, blicket wrote:
> Could someone please point me to how to move namespace prefix definition from
> the body to the soap envelope for a wsdl2java generated client?  Thanks in
> advance.
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/How-do-you-move-namespace-definitions-from-body-to-soap-envelop-tp5490239p5490239.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza