Skip to Content
0
Former Member
May 18, 2007 at 10:10 AM

Logical port definition dynamically

57 Views

Hi all!

In ABAP I'm using a Web Service proxy class to call the web service. I'm aware that a logical port must exist that points to the location of the service.

I'm looking for a way in ABAP (not Web Dynpro) to determine / set the correct logical port dynamically at runtime.

I invoke the proxy as follows:

create object lo_clientproxy.
call method lo_clientproxy->aMethod
 exporting
   input  = ls_request
 importing
   output = ls_response.

I know that in web dynpro the logical port can be determined at runtime:

 wdContext.current<Node>Element().modelObject()._setEndPoint("<Your URL>");

Is there a way in ABAP as well to set the logical port dynamically?

Regards,

Mathias

Message was edited by:

Mathias Glockner