2007 Dec 20 9:47 AM
Hello,
I have a webservice that reads information out of a device connected to a PC.
When a function is called, I want to execute the webservice located at the PC who called the function.
Is it possible to change the url parameter of the logical port at runtime or do I have to create a Logical port for all my (300) destinations ?
kr,
Joachim
2007 Dec 20 10:00 AM
You can set Endpoint of your Webservice model from your code dynamically using following code:
wdContext.current<Node>Element().modelObject()._setEndPoint("<Your URL>");
You have to write this code before executing the model for webservice.
It will set your endpoint dynamically.
You can also set your username and password for Proxy settings dynamically here.
2007 Dec 20 10:05 AM
This is for webdynpro for java...
I need a solution for the ABAP Part.
this is how I create my proxy object:
TRY.
CREATE OBJECT proxy
EXPORTING
logical_port_name = 'LP00'
.
CATCH cx_ai_system_fault .
ENDTRY.
LP00 is going to a predefiened URL, I want to change this at runtime....
Is it possible?
gr,
Joachim