You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Joe Satch <up...@gmail.com> on 2009/01/15 13:57:41 UTC

Add namespaces to the SOAP envelope

Hello,

Thanks for the fantastic API first of all.

I generated my webservice client (To a doc/li/wrapped webservice) using
wsdl2java. My SOAP header needed heavy customization so i did some XML
appendchild/attribute stuff and used requestContex to add the headers.
However, I am not able to figure out, how to add namespace(s) declarations
to the SOAP Envelope! 

Any help is appreciated.

regards
J
-- 
View this message in context: http://www.nabble.com/Add-namespaces-to-the-SOAP-envelope-tp21477063p21477063.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Add namespaces to the SOAP envelope

Posted by Joe Satch <up...@gmail.com>.
Sure Dan! Will work on it and file a JIRA patch.

thanks
J

dkulp wrote:
> 
> On Thursday 15 January 2009 1:00:42 pm Joe Satch wrote:
>> Hi,
>>
>> Thanks for the replies!
>>
>> Looks like modifying SoapOutInterceptor is the only option for me.
> 
> It would be nice to file a JIRA with a patch.    We can then add it to 
> CXF.   :-)
> 
> Seriously, it would probably be good to do something like:
> Map<String, String> ns = msg.getContextualProperty("soap.env.ns.map");
> and write all those in the map to the envelope.       You could set it on
> the 
> endpoint/client in your config or similar.    
> 
> Dan
> 
> 
> 
>>
>> regards
>> J
>>
>> dkulp wrote:
>> > Honestly, I don't think there is a way to do it short of modifying the
>> > SoapOutInterceptor.    There isn't any "touch points" between writing
>> the
>> > envelope and the body that you can really do much with.    An
>> interceptor
>> > immediately after the SoapOutInterceptor could add namespaces to the
>> > soap:body, but that probably wouldn't do you much good.
>> >
>> > Dan
>> >
>> > On Thursday 15 January 2009 7:57:41 am Joe Satch wrote:
>> >> Hello,
>> >>
>> >> Thanks for the fantastic API first of all.
>> >>
>> >> I generated my webservice client (To a doc/li/wrapped webservice)
>> using
>> >> wsdl2java. My SOAP header needed heavy customization so i did some XML
>> >> appendchild/attribute stuff and used requestContex to add the headers.
>> >> However, I am not able to figure out, how to add namespace(s)
>> >> declarations
>> >> to the SOAP Envelope!
>> >>
>> >> Any help is appreciated.
>> >>
>> >> regards
>> >> J
>> >
>> > --
>> > Daniel Kulp
>> > dkulp@apache.org
>> > http://dankulp.com/blog
> 
> 
> 
> -- 
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
> 
> 

-- 
View this message in context: http://www.nabble.com/Add-namespaces-to-the-SOAP-envelope-tp21477063p21497503.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Add namespaces to the SOAP envelope

Posted by Daniel Kulp <dk...@apache.org>.
On Thursday 15 January 2009 1:00:42 pm Joe Satch wrote:
> Hi,
>
> Thanks for the replies!
>
> Looks like modifying SoapOutInterceptor is the only option for me.

It would be nice to file a JIRA with a patch.    We can then add it to 
CXF.   :-)

Seriously, it would probably be good to do something like:
Map<String, String> ns = msg.getContextualProperty("soap.env.ns.map");
and write all those in the map to the envelope.       You could set it on the 
endpoint/client in your config or similar.    

Dan



>
> regards
> J
>
> dkulp wrote:
> > Honestly, I don't think there is a way to do it short of modifying the
> > SoapOutInterceptor.    There isn't any "touch points" between writing the
> > envelope and the body that you can really do much with.    An interceptor
> > immediately after the SoapOutInterceptor could add namespaces to the
> > soap:body, but that probably wouldn't do you much good.
> >
> > Dan
> >
> > On Thursday 15 January 2009 7:57:41 am Joe Satch wrote:
> >> Hello,
> >>
> >> Thanks for the fantastic API first of all.
> >>
> >> I generated my webservice client (To a doc/li/wrapped webservice) using
> >> wsdl2java. My SOAP header needed heavy customization so i did some XML
> >> appendchild/attribute stuff and used requestContex to add the headers.
> >> However, I am not able to figure out, how to add namespace(s)
> >> declarations
> >> to the SOAP Envelope!
> >>
> >> Any help is appreciated.
> >>
> >> regards
> >> J
> >
> > --
> > Daniel Kulp
> > dkulp@apache.org
> > http://dankulp.com/blog



-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Re: Add namespaces to the SOAP envelope

Posted by Joe Satch <up...@gmail.com>.
Hi,

Thanks for the replies!

Looks like modifying SoapOutInterceptor is the only option for me. 

regards
J



dkulp wrote:
> 
> 
> Honestly, I don't think there is a way to do it short of modifying the 
> SoapOutInterceptor.    There isn't any "touch points" between writing the 
> envelope and the body that you can really do much with.    An interceptor 
> immediately after the SoapOutInterceptor could add namespaces to the 
> soap:body, but that probably wouldn't do you much good.
> 
> Dan
> 
> 
> On Thursday 15 January 2009 7:57:41 am Joe Satch wrote:
>> Hello,
>>
>> Thanks for the fantastic API first of all.
>>
>> I generated my webservice client (To a doc/li/wrapped webservice) using
>> wsdl2java. My SOAP header needed heavy customization so i did some XML
>> appendchild/attribute stuff and used requestContex to add the headers.
>> However, I am not able to figure out, how to add namespace(s)
>> declarations
>> to the SOAP Envelope!
>>
>> Any help is appreciated.
>>
>> regards
>> J
> 
> 
> 
> -- 
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
> 
> 

-- 
View this message in context: http://www.nabble.com/Add-namespaces-to-the-SOAP-envelope-tp21477063p21483319.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Add namespaces to the SOAP envelope

Posted by Daniel Kulp <dk...@apache.org>.
Honestly, I don't think there is a way to do it short of modifying the 
SoapOutInterceptor.    There isn't any "touch points" between writing the 
envelope and the body that you can really do much with.    An interceptor 
immediately after the SoapOutInterceptor could add namespaces to the 
soap:body, but that probably wouldn't do you much good.

Dan


On Thursday 15 January 2009 7:57:41 am Joe Satch wrote:
> Hello,
>
> Thanks for the fantastic API first of all.
>
> I generated my webservice client (To a doc/li/wrapped webservice) using
> wsdl2java. My SOAP header needed heavy customization so i did some XML
> appendchild/attribute stuff and used requestContex to add the headers.
> However, I am not able to figure out, how to add namespace(s) declarations
> to the SOAP Envelope!
>
> Any help is appreciated.
>
> regards
> J



-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Re: Add namespaces to the SOAP envelope

Posted by Benson Margulies <bi...@gmail.com>.
An interceptor?

On Thu, Jan 15, 2009 at 7:57 AM, Joe Satch <up...@gmail.com> wrote:

>
> Hello,
>
> Thanks for the fantastic API first of all.
>
> I generated my webservice client (To a doc/li/wrapped webservice) using
> wsdl2java. My SOAP header needed heavy customization so i did some XML
> appendchild/attribute stuff and used requestContex to add the headers.
> However, I am not able to figure out, how to add namespace(s) declarations
> to the SOAP Envelope!
>
> Any help is appreciated.
>
> regards
> J
> --
> View this message in context:
> http://www.nabble.com/Add-namespaces-to-the-SOAP-envelope-tp21477063p21477063.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>