<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Logical port definition dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-port-definition-dynamically/m-p/2274682#M494496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; 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.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; I'm looking for a way in ABAP (not Web Dynpro) to determine / set the correct logical port dynamically at runtime.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; I invoke the proxy as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;create object lo_clientproxy.
call method lo_clientproxy-&amp;gt;aMethod
 exporting
   input  = ls_request
 importing
   output = ls_response.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; I know that in web dynpro the logical port can be determined at runtime:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; wdContext.current&amp;lt;Node&amp;gt;Element().modelObject()._setEndPoint("&amp;lt;Your URL&amp;gt;");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Is there a way in ABAP as well to set the logical port dynamically?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 07:28:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-18T07:28:34Z</dc:date>
    <item>
      <title>Logical port definition dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-port-definition-dynamically/m-p/2274682#M494496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; 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.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; I'm looking for a way in ABAP (not Web Dynpro) to determine / set the correct logical port dynamically at runtime.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; I invoke the proxy as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;create object lo_clientproxy.
call method lo_clientproxy-&amp;gt;aMethod
 exporting
   input  = ls_request
 importing
   output = ls_response.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; I know that in web dynpro the logical port can be determined at runtime:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; wdContext.current&amp;lt;Node&amp;gt;Element().modelObject()._setEndPoint("&amp;lt;Your URL&amp;gt;");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Is there a way in ABAP as well to set the logical port dynamically?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 07:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-port-definition-dynamically/m-p/2274682#M494496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T07:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Logical port definition dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-port-definition-dynamically/m-p/2274683#M494497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT lo_clientproxy&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;LOGICAL_PORT_NAME = LPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPORT would need to be a variable of type PRX_LOGICAL_PORT_NAME and contain the name of an existing logical port that had already been configured in LPCONFIG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 06:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-port-definition-dynamically/m-p/2274683#M494497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T06:36:22Z</dc:date>
    </item>
  </channel>
</rss>

