on 05-11-2010 1:28 PM
Hi developers,
In my EJB dc, I have created a webservice client with the NWDS tools.
Now I have all the classes and interfaces to invoke the service.
I know that the actual endpoint is specified in the wsdl, but when we transport we must update that url to the QA system.
Where do I configure the runtime endpoint for invocation (since here we are not using service groups)?
thanks regards
Vincenzo
This can be done very easily simply calling
service.getPort(myPackage.myClass.class);
the Service Group will be used automatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I came across this piece of documentation https://cw.sdn.sap.com/cw/docs/DOC-107493
Here it is explained how you can use service groups to manage authentication etc.
The point is:
when I have to retrieve the port object, I must use something like:
ConverterLocal emptyWebServiceBean = service .getPort(
new QName( "http://sap.com/tutorial/javaee//service" ,
"{http://sap.com/tutorial/javaee/}ConverterLocal_ConverterServiceGroup_BASIC" ),
com.sap.tutorial.javaee.service.ConverterLocal. class );
Where do I retrieve the string parameters passaed to the getPort method?
Thanks, Vincenzo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.