<?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>Question Re: Java HTTP receiver with dynamic URL in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757242#M4402491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jakub you are bang on once more &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infact you can use the TAUTH Key to set multiple users and their corresponding password to the SOAP Adapter : &lt;A __default_attr="102789" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Digest: Dynamic username and password in soap receiver adapter" href="https://community.sap.com/" modifiedtitle="true" title="Digest: Dynamic username and password in soap receiver adapter"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what does this mean - as long as the user name is different for each URL that is being triggered from the SOAP Adapter with the Do not use SOAP Envelope, a single SOAP Receiver Adapter can be used. For each URL, the corresponding TAuthKey ( UserName ) will need to be set in the PI ASMA UDF..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2016 04:54:40 GMT</pubDate>
    <dc:creator>bhavesh_kantilal</dc:creator>
    <dc:date>2016-07-15T04:54:40Z</dc:date>
    <item>
      <title>Java HTTP receiver with dynamic URL</title>
      <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaq-p/11757234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are in the planning stages of migrating from dual stack PI 7.0 to single stack PI 7.4. I don't have a PI 7.4 sandbox to play in - so the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We currently have an IDOC to HTTP interface where the URL on the HTTP receiver is derived dynamically. The plain HTTP receiver adapter is defined with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AddressingType = HTTP Destination&lt;/P&gt;&lt;P&gt;HTTP Destination = DynamicallySet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have SM59 destinations defined in the PI ABAP stack. We use a UDF to derive the SM59 destination dynamically and the message is routed to the proper partner destination. The UDF uses &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;DynamicConfiguration, and then sets the HTTP destination in ASMA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;DynamicConfigurationKey key1 = DynamicConfigurationKey.create("&lt;A href="http://sap.com/xi/XI/System/HTTP"&gt;http://sap.com/xi/XI/System/HTTP&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;", "HTTPDest");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;conf.put(key1, httpDest);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With us moving to a single stack Java landscape., we obviously cannot use this same approach since there will no more be a PI ABAP stack. Is there another place these SM59 destinations can be defined which can be accessed by the Java HTTP receiver ? Or would we just have to &lt;SPAN style="font-size: 13.3333px;"&gt;store the URLs in value mapping or something of that sort and then &lt;/SPAN&gt;use dynamic URL in a UDF&amp;nbsp; ? Thank you for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/995513" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 19:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaq-p/11757234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-14T19:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Java HTTP receiver with dynamic URL</title>
      <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757235#M4402484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use URL but you can set it dynamically.&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/995583" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;/k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 01:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757235#M4402484</guid>
      <dc:creator>turmoll</dc:creator>
      <dc:date>2016-07-15T01:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Java HTTP receiver with dynamic URL</title>
      <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757236#M4402485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot do it dynamically using HTTP adapter:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/995584" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you can use SOAP adapter with "Do not use SOAP Envelope":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="71895" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Dynamically providing URL and action values  to receiver SOAP communication channel" href="https://community.sap.com/" modifiedtitle="true" title="Dynamically providing URL and action values to receiver SOAP communication channel"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which basically will do same trick as HTTP adapter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;/k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 01:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757236#M4402485</guid>
      <dc:creator>turmoll</dc:creator>
      <dc:date>2016-07-15T01:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Java HTTP receiver with dynamic URL</title>
      <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757237#M4402486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I have to agree with Jakub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infact even using the SOAP Adapter might not work as as I understand you are setting the HTTP Destination dynamically which means multiple properties including User Name / Password / Authentication details etc are required to be set Dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The HTTP_AAE adapter does not provide a option to provide a Destination and the URL has to be provided in the channel including any credentials etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, as the HostName's will be different I assume the Credentials are also different which means you would need to redesign this Interface. You need multiple Receiver HTTP_AAE channels and accordingly you would need to have multiple inbound Interfaces in the "Receiver Interfaces" to be able to route to different channels. You would need to use a XPATH in your Receiver Interfaces to set the corresponding target Interface etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 03:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757237#M4402486</guid>
      <dc:creator>bhavesh_kantilal</dc:creator>
      <dc:date>2016-07-15T03:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Java HTTP receiver with dynamic URL</title>
      <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757238#M4402487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jakub. I do have another doubt though. Currently the logon credentials for the various sites are stored on the SM59 destination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand how to specify the URL dynamically but how does one specify the credentials dynamically ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 03:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757238#M4402487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-15T03:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Java HTTP receiver with dynamic URL</title>
      <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757239#M4402488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You kind of guessed my question, Bhavesh ! Thank you both for your useful suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 03:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757239#M4402488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-15T03:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Java HTTP receiver with dynamic URL</title>
      <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757240#M4402489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you always use Basic Authentication? If yes, you might have some options to tweak this by adding the Basic Authentication as a Base64 Encoded String into the HTTP Header from the Mapping / ASMA Configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This blog describes this approach that would work even for a receiver SOAP Adapter :&amp;nbsp; &lt;A __default_attr="63383" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="A closer look at SOAP Sender authentication" href="https://community.sap.com/" modifiedtitle="true" title="A closer look at SOAP Sender authentication"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically within your mapping configure the authentication base64 encoded string and then set the same in a ASMA Parameter and set this in XHeaderName1 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might not be the best solution though and I would ideally prefer to keep the Authentication control within the channel than this approach ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 04:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757240#M4402489</guid>
      <dc:creator>bhavesh_kantilal</dc:creator>
      <dc:date>2016-07-15T04:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Java HTTP receiver with dynamic URL</title>
      <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757241#M4402490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you could switch from user authentication to certificate authentication then you could makie it dynamically ... otherwise rather not:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/995611" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, you will have to change sth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 04:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757241#M4402490</guid>
      <dc:creator>turmoll</dc:creator>
      <dc:date>2016-07-15T04:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Java HTTP receiver with dynamic URL</title>
      <link>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757242#M4402491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jakub you are bang on once more &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infact you can use the TAUTH Key to set multiple users and their corresponding password to the SOAP Adapter : &lt;A __default_attr="102789" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Digest: Dynamic username and password in soap receiver adapter" href="https://community.sap.com/" modifiedtitle="true" title="Digest: Dynamic username and password in soap receiver adapter"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what does this mean - as long as the user name is different for each URL that is being triggered from the SOAP Adapter with the Do not use SOAP Envelope, a single SOAP Receiver Adapter can be used. For each URL, the corresponding TAuthKey ( UserName ) will need to be set in the PI ASMA UDF..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 04:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-http-receiver-with-dynamic-url/qaa-p/11757242#M4402491</guid>
      <dc:creator>bhavesh_kantilal</dc:creator>
      <dc:date>2016-07-15T04:54:40Z</dc:date>
    </item>
  </channel>
</rss>

