You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "Shaw, Richard A" <ri...@atkinsglobal.com> on 2007/02/20 17:43:07 UTC
Overriding WSDL endpoint in code
I want to migrate from Celtix to CXF but when I last looked I couldn't work out how to override the WSDL endpoint address in my code.
Is it possible to do this now ?
My Celtix code looks like this -
// override the endpoint address in the wsdl file
// with the address from the configuration
Map<String, Object> requestContext = ((BindingProvider) messageHandlerService)
.getRequestContext();
requestContext.put(
BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
config.getProperty(MESSAGE_HANDLER_ENDPOINT));
Thanks
Richard Shaw
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
Richard Shaw
Technical Design Authority - Information Solutions Consultancy
Intelligent Transport Systems
Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
Tel: +44 (0) 1372 756407
Fax: +44 (0) 1372 740055
Mob: 07740 817586
E-mail: richard.shaw@atkinsglobal.com
www.atkinsglobal.com/its
This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.
The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.
Consider the environment. Please don't print this e-mail unless you really need to.
Re: Overriding WSDL endpoint in code
Posted by Dan Diephouse <da...@envoisolutions.com>.
I looked at the code, and I think this is being mapped properly now
internally, so it *should* work. :-)
- Dan
On 2/20/07, Shaw, Richard A <ri...@atkinsglobal.com> wrote:
>
> I want to migrate from Celtix to CXF but when I last looked I couldn't
> work out how to override the WSDL endpoint address in my code.
>
> Is it possible to do this now ?
>
> My Celtix code looks like this -
>
> // override the endpoint address in the wsdl file
> // with the address from the configuration
> Map<String, Object> requestContext = ((BindingProvider)
> messageHandlerService)
> .getRequestContext();
> requestContext.put(
> BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
> config.getProperty(MESSAGE_HANDLER_ENDPOINT));
>
> Thanks
>
> Richard Shaw
>
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
>
> Richard Shaw
> Technical Design Authority - Information Solutions Consultancy
> Intelligent Transport Systems
>
> Atkins Highways and Transportation
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
>
> Tel: +44 (0) 1372 756407
> Fax: +44 (0) 1372 740055
> Mob: 07740 817586
> E-mail: richard.shaw@atkinsglobal.com
>
> www.atkinsglobal.com/its
>
>
>
> This email and any attached files are confidential and copyright
> protected. If you are not the addressee, any dissemination of this
> communication is strictly prohibited. Unless otherwise expressly agreed in
> writing, nothing stated in this communication shall be legally binding.
>
> The ultimate parent company of the Atkins Group is WS Atkins
> plc. Registered in England No. 1885586. Registered Office Woodcote Grove,
> Ashley Road, Epsom, Surrey KT18 5BW.
>
> Consider the environment. Please don't print this e-mail unless you really
> need to.
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog