You need to sign in to do that
Don't have an account?
vs94063
How to Specify Port Address during login (JAX-WS Web Service Client)
Hi,
I have downloaded the partner WSDL of the latest API version 14 and used JAX-WS wsimport tool (in ant build script) to generate the artifacts/classes.
In the web service client, during the login call, how can i specify/override the "port address URL"? I know that the WSDL contains the default port as:
If i use Axis's WSDL2Java to generate the classes, the generated classes include "SfServiceLocator" class which has "getSoap(URL portAddress)" method through which i can specify/override the port address URL.
But the classes generated using JAX-WS wsimport doesn't contain the "SfServiceLocator" class. How can we get the equivalent of SfServiceLocator#getSoap(URL) in JAX-WS web service client?
Thank you.
I have downloaded the partner WSDL of the latest API version 14 and used JAX-WS wsimport tool (in ant build script) to generate the artifacts/classes.
In the web service client, during the login call, how can i specify/override the "port address URL"? I know that the WSDL contains the default port as:
Code:
<soap:address location="https://www.salesforce.com/services/Soap/u/14.0"/>
If i use Axis's WSDL2Java to generate the classes, the generated classes include "SfServiceLocator" class which has "getSoap(URL portAddress)" method through which i can specify/override the port address URL.
But the classes generated using JAX-WS wsimport doesn't contain the "SfServiceLocator" class. How can we get the equivalent of SfServiceLocator#getSoap(URL) in JAX-WS web service client?
Thank you.
vs94063
I found out the answer to this question. Here is the code that will also set the endpoint (port address):
Code: