<?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: Passing xml structure in url HTTP receiver ? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaa-p/3944448#M1541414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;I wrote following udf to create url at runtime,but even though i was able to ping the oanda application but it was not accepting the query which was there in url begining with ?fxmlrequest=..... so it was giving an error in moni as "Please specify the client id" while if i open same url through Internet explorer it was fetching the data and was giving required output.I was passing date as input parameter (a) in my udf.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;//write your code here
String s1,s2,url;
MappingTrace trace;
trace = container.getTrace();
s1 = "http://www.oanda.com/cgi-bin/fxml/fxml?fxmlrequest=&amp;lt;convert&amp;gt;&amp;lt;client_id&amp;gt;ABC&amp;lt;/client_id&amp;gt;&amp;lt;expr&amp;gt;USD&amp;lt;/expr&amp;gt;&amp;lt;exch&amp;gt;GBP&amp;lt;/exch&amp;gt;&amp;lt;date&amp;gt;";
s2 = "&amp;lt;/date&amp;gt;&amp;lt;/convert&amp;gt;";
url = s1 + a + s2;
trace.addInfo(url); 
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey parmValue;

	// TargetURL
	parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "TargetURL");
	conf.put(parmValue, url);



return "";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2008 07:33:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-11T07:33:15Z</dc:date>
    <item>
      <title>Passing xml structure in url HTTP receiver ?</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaq-p/3944444</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;I have the scenario where sender can be RFC in which i have to access the url which has xml strucutre as query string in it and get back the response from it..&lt;/P&gt;&lt;P&gt;for eg :&lt;/P&gt;&lt;P&gt; &lt;A href="http://www.xyz.com/pathprefix/?(xmlQuery)&amp;lt;header&amp;gt;&amp;lt;field1&amp;gt;12&amp;lt;/field1&amp;gt;&amp;lt;field2&amp;gt;12&amp;lt;/field2&amp;gt;&amp;lt;field3&amp;gt;12&amp;lt;/field3&amp;gt;&amp;lt;/header&amp;gt;" target="test_blank"&gt;http://www.xyz.com/pathprefix/?(xmlQuery)&amp;lt;header&amp;gt;&amp;lt;field1&amp;gt;12&amp;lt;/field1&amp;gt;&amp;lt;field2&amp;gt;12&amp;lt;/field2&amp;gt;&amp;lt;field3&amp;gt;12&amp;lt;/field3&amp;gt;&amp;lt;/header&amp;gt;&lt;/A&gt;; &lt;/P&gt;&lt;P&gt;In the above url the field values of fields field1,field2, field3 are determined at runtime.&lt;/P&gt;&lt;P&gt;I want to know how can i pass xml structure in url and make the fields variable through receiver HTTP adapter  or if there is any other method to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Early replies are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 11:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaq-p/3944444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T11:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing xml structure in url HTTP receiver ?</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaa-p/3944445#M1541411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use dynamic configuration for dynamically creating the url parameters&lt;/P&gt;&lt;P&gt;/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prateek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 12:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaa-p/3944445#M1541411</guid>
      <dc:creator>prateek</dc:creator>
      <dc:date>2008-05-30T12:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Passing xml structure in url HTTP receiver ?</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaa-p/3944446#M1541412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I referred the blog by Li and found it helpful and even awarded points to you for the same,thanks once agian.&lt;/P&gt;&lt;P&gt;Can I do like this in my receiver communication channel for dynamically assigning the value for date in following url&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addressing Type: Url&lt;/P&gt;&lt;P&gt;Url address: &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.oanda.com/cgi-bin/fxml/fxmlfxmlrequest=&amp;lt;convert&amp;gt;&amp;lt;client_id&amp;gt;XYZ&amp;lt;/client_id&amp;gt;&amp;lt;expr&amp;gt;USD&amp;lt;/expr&amp;gt;&amp;lt;exch&amp;gt;GBP&amp;lt;/exch&amp;gt;&amp;lt;date&amp;gt;" target="test_blank"&gt;http://www.oanda.com/cgi-bin/fxml/fxmlfxmlrequest=&amp;lt;convert&amp;gt;&amp;lt;client_id&amp;gt;XYZ&amp;lt;/client_id&amp;gt;&amp;lt;expr&amp;gt;USD&amp;lt;/expr&amp;gt;&amp;lt;exch&amp;gt;GBP&amp;lt;/exch&amp;gt;&amp;lt;date&amp;gt;&lt;/A&gt;; &lt;STRONG&gt;Dynamic_date&lt;/STRONG&gt; &amp;lt;/date&amp;gt;&amp;lt;/convert&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASMA:&lt;/P&gt;&lt;P&gt;Apply URl Header Fields:&lt;/P&gt;&lt;P&gt;FieldOne: &lt;STRONG&gt;Dynamic_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where I want to have only value of the &lt;STRONG&gt;Dynamic_date &lt;EM&gt;and not the name&lt;/EM&gt;&lt;/STRONG&gt; in the url at place where i have specified &lt;STRONG&gt;Dynamic_date&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 12:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaa-p/3944446#M1541412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T12:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Passing xml structure in url HTTP receiver ?</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaa-p/3944447#M1541413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;    How did u solve this problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 12:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaa-p/3944447#M1541413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T12:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Passing xml structure in url HTTP receiver ?</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaa-p/3944448#M1541414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;I wrote following udf to create url at runtime,but even though i was able to ping the oanda application but it was not accepting the query which was there in url begining with ?fxmlrequest=..... so it was giving an error in moni as "Please specify the client id" while if i open same url through Internet explorer it was fetching the data and was giving required output.I was passing date as input parameter (a) in my udf.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;//write your code here
String s1,s2,url;
MappingTrace trace;
trace = container.getTrace();
s1 = "http://www.oanda.com/cgi-bin/fxml/fxml?fxmlrequest=&amp;lt;convert&amp;gt;&amp;lt;client_id&amp;gt;ABC&amp;lt;/client_id&amp;gt;&amp;lt;expr&amp;gt;USD&amp;lt;/expr&amp;gt;&amp;lt;exch&amp;gt;GBP&amp;lt;/exch&amp;gt;&amp;lt;date&amp;gt;";
s2 = "&amp;lt;/date&amp;gt;&amp;lt;/convert&amp;gt;";
url = s1 + a + s2;
trace.addInfo(url); 
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey parmValue;

	// TargetURL
	parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "TargetURL");
	conf.put(parmValue, url);



return "";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 07:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-xml-structure-in-url-http-receiver/qaa-p/3944448#M1541414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T07:33:15Z</dc:date>
    </item>
  </channel>
</rss>

