This is part of the JAX-WS spec: ((BindingProvider)proxy).getRequestContext() .put(BindingProvider.ENDPOINT_ADDRESS, "http//ActualReachableAddress/....")
Dan On Wed November 18 2009 11:47:53 am Guðmundur Stefán Þorvaldsson wrote: > Hi, I'm using CXF 2.2.3 and am consuming a service where the address is > defined in the wsdl like so: > . > ... > <wsdl:service name="ServiceName"> > <wsdl:port name="ServiceName_Port" binding="tns1:ServiceName_Binder"> > <soap:address location="http://[*A**ddressNotReachebleFromInternet* > ]:5555/PathToService"/> > </wsdl:port> > </wsdl:service> > ..... > > The service however is located at http://[ActualReachableAddress]*/* > PathToService. > > I used wsdl2java to generate my proxy and created tests and no problems > what so ever. The address > http://[*A**ddressNotReachebleFromInternet*]:5555/PathToService > was nowhere to be found in the proxy. However when I run the test, CXF > obviously gets the unreachebla address from the WSDL again because CXF > tried to make the request to > http://[*A**ddressNotReachebleFromInternet*]:5555/PathToService, > not the reacheable address. > > I tried going thru the documentation looking for a way to tell CXF not to > use the reachable address but could not find one. > > So to my question: > Is there a way for me to tell CXF not to use the unreacheble address but > the one that is defined in the proxy? > > Thanks for any help, > Gudmundur > -- Daniel Kulp [email protected] http://www.dankulp.com/blog
