java - JAX-WS client without having to generate new proxies when switching between test/production -


I configure your JAX-WS client to switch between test / output without re-generating proxy classes I am trying to be with Wsimport.

The service I am trying to consume in testing and production to use various WSDLs. For example, targetNamespace is different, as well as soap leaf.

I have tried to use the springs jacksporpropoxy factory and have managed to pinpoint various WSDL on the basis of the deployment environment, but still I have produced, it is still tested by Webith Agency addresses Uses. I think the reason for this is that they are working hard in the service interface which was generated using wsimport while pointing to test-wsdl.

Does anybody know that switching between wsdls is possible without the use of separate targetNamespace and action addresses, again generation proxy?

You can override the property of an endpoint address:

Provide service and proxy with generated service category HelloService Service = New HelloService (); HelloPort proxy = service.getHelloPort (); & Lt; B & gt; ((Bingprovider) proxy) .getRequestContext (). Put (BindingProvider.EndPOINT_ADDRESS_PROPERTY, "http: // New / Endpoint Address"); & Lt; / B & gt; Proxy Hello ("Hello World!");

I am not sure if your question is override other parameters.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -