cancel
Showing results for 
Search instead for 
Did you mean: 

consuming Web Service: how to configure runtime endpoint?

former_member190457
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190457
Contributor
0 Kudos

This can be done very easily simply calling


service.getPort(myPackage.myClass.class);

the Service Group will be used automatically.

former_member190457
Contributor
0 Kudos

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