Dynamic Configuration URL
Hello,
We had a working solution for dynamic URL settings for HTTP adapter from the message mapping using UDF as mentioned in the previous blogs and help.sap. But after a recent update of support packs the URL seems to be getting incorrect values. Is there any visial admin settings that need to be checked after SP upgrades with respect to dynamic URL configuration?
Teresa
Hi,
I have tested the interface mapping and Message mapping. They seem to bring in the correct URL dynamically but during runtime its been sent to another URL.
Please advise.
Teresa
Similar Messages
-
Target URL Value in Dynamic Configuration
Hi,
1)When Dynamic Configuration is done for a receiver SOAP adapter what value has to be entered in the Target URL section of the SOAP channel?...assuming that a UDF for the same is implemented in the message mapping.
2) Also under the ASMA section for the CC what is the purpose/ meaning of Variable Transport Binding and the subsequent XHeaderName1, XHeaderName2, XHeaderName3 fields.
I have read the contents from the following:
http://help.sap.com/saphelp_nw70/helpdata/EN/29/5bd93f130f9215e10000000a155106/frameset.htm
but there is a doubt regarding the above two.
Thanks,
Abhishek.> 1)When Dynamic Configuration is done for a receiver SOAP adapter what value has to be entered in the Target URL section of the SOAP channel?...assuming that a UDF for the same is implemented in the message mapping.
Anything you like. Maybe a default URL, or just an "x".
> 2) Also under the ASMA section for the CC what is the purpose/ meaning of Variable Transport Binding and the subsequent XHeaderName1, XHeaderName2, XHeaderName3 fields.
You have to check "Variable Transport Binding" when you use ASMA. You can leave the XHeaderNameX fields empty. They are for HTTP header fields.
Regards
Stefan -
Dynamic Configuration of HTTP Destinations in SOAPReceiver
Dear PI Developers
I'll define a dynamic Configuration for my HTTP Destination in SOAPReceiver with XI3.0 Protocol.
The solution for that is to use an Adapter Module to set the dynamic Configuration Value.
Process: ... > SOAP Receiver > MyAdapterModule, set HTTP Destination > SOAP Receiver, send Message to HTTP Destination
URL-Adressing work's fine
This works fine for URL-Adressing, here's my Java Code from my Adapter Module:
Message message = (Message) inputModuleData.getPrincipalData();
message.setMessageProperty(new MessagePropertyKey("TServerLocation", "http://sap.com/xi/XI/System/SOAP"), "http://domain.com/foobar");
HTTP Destination, how it works?
If I'll use HTTP Destination as Adressing Type but the HTTP Destination will not set.
I think the "TServerLocation" Property don't work for the HTTP Destination, but I don't find a Property in:
Configuring the Receiver SOAP Adapter - Advanced Adapter Engine - SAP Library
My Questions
Did someone know the coresponding property name for HTTP Destinations instead of "TServerLocation"?
Are there other Solutions to set the HTTP Destination dynamicaly, for Example with variables %my_http_dest% ?
How can I set my own variables %my_http_dest% in my Adapter Module?
Background
We have a lot of Destinations and a lot of Szenarios and won't create a SOAPReceiver and Routing for each Destination in each Szenario.
The Destination depends on a HTTP Header Parameter from Sender, I'll map this Parameters to the coresponding HTTP Destination in the Adapter Module, that's the same Mapping for all Scenarios. To keep the performance, I cache this Routing Table in the Adapter Module.Here's a way to misapplay "mesage:{var}" variables:
SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
But it is a dangerous solution, I think we use URL-Adressing in place of HTTP Destination -
Issue in Dynamic configuration in SOAP receiver channel
Hi All,
My scenario is file to SOAP. At receiver side I want to generate URL dynamically.
To proceed step by step, I started with passing a constant URL to Dynamic configuration UDF.
mapping:
Dynamic conf. UDF
Channel Configuration:
From testing, I found that channel always takes the url given in Target URL field and dynamic URL in TserverLocation is been ignored by the channel.
That is dynamic configuration is not working completely.
I went through a lot of blogs and also tried a lot of trial and error methods, but none helped. Every thing I configured looks perfect for me, but still not working. I don't understand where I went wrong. Please help me.Hi Experts,
I am facing similar issue,
URL --> UDF --> @dynamicvariable
I have created a variable underparent node eg: DESADV-->dynamicvariable
passed complete URL to UDF, below is the UDF
& configured SOAP Receiver Channel as well. This is IDOC to IDOC scenario, using IDOC_AAE on sender side and SOAP on receiver in single stack.
--> Checked ASMA
--> Checked Variable Transport Binding and given "TServerLocation" without quotes in XHeaderName1
--> Target URL: http://
But when I am running this interface, nothing is coming in Dynamic configuration.
Ref: Message Log:
MM and OM is also perfect in ESR.
Any suggestions? Please advice.
Regards
Singh -
Use of SOAP Receiver Adapter in a recursive way with dynamic Target URLs
Hi all,
I have a following scenario.
1. I have to call a webservice with a URL http://myserver.com/default.aspx?action=index
This will return a list of xml filenames as below
<?xml version="1.0" encoding="UTF-8"?>
<filelist>
<file uuid="test1" />
<file uuid="test2" />
<file uuid="test3" />
<file uuid="test4" />
</filelist>
2. Now I have to call the same webservice with a change in action so that the url looks like
URL - http://myserver.com/default.aspx?action=fetch&uuid=
for all the filenames in the list
So in essence, I have to create a dynamic URLs recursively like
http://myserver.com/default.aspx?action=fetch&uuid=test1
http://myserver.com/default.aspx?action=fetch&uuid=test2 and so on
3. And with each call to the URL in step 2, the incoming xml is to be mapped to an IDoc.
I will be creating a ABAP proxy to initiate the calls.
I would like some ideas so as to have a less complex approach to the solution.
Regards,
NeerajHi,
dynamic SOAP URL - adapter specific properties (http receiver adapter)
Dynamic configuration payload - https://media.sdn.sap.com/javadocs/NW04/SPS15/pi/com/sap/aii/mapping/api/DynamicConfiguration.html
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","THeaderSOAPACTION");
String a = http://something.abcd/applicationName/xmlMessage //set the value of actual action here
conf.put(key, a);
return ""; -
SOAP adapter and dynamic target URL
My scenario: synchronous communication ABAP Proxy <=> XI <=> External WebServices.
There is a need to have configurable (dynamic) target URL for SOAP Adapter. This target should be configurable from ABAP Proxy. Any idea how can I achieve my goal?
Some additional notes why I need configurable target URL. I've multiple WebService instances which has identical interfaces and the only difference is target URL. I see no need to define for each webservice different SOAP Adapter. The other thing is that customer want to have configuration of destination (target) url on backend system (where ABAP Proxy is used).Check http://help.sap.com/saphelp_nw70/helpdata/EN/29/5bd93f130f9215e10000000a155106/frameset.htm
It's possible to set the URL for Soap dynamically.
To process adapter attributes in the message header of the XI message, set the Use Adapter-Specific Message Attributes indicator and the Variable Transport Binding indicator.
You can evaluate the following attributes in the message header:
Description: You can set the entire URL.
Technical name: TServerLocation -
Using Dynamic Configuration api for SOAP adapter
I want to use Dynamic Configuration api to send a SOAP request to a webservice.
tha value in my adapter is
my Target URL is
http://xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet? channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true
which is the corresponding field i have to set in Dynamic Configuration?
I have written the following code is this right?
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
String temp = "http:/"+"/sap.com/xi/XI/System/SOAP";
DynamicConfigurationKey key = DynamicConfigurationKey.create(temp, "TServerLocation");
String varURL =
"http:/"+"/xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet?channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true";
conf.put(key,varURL);
return "";Hi,
Yes, your code looks fine. Can you let me know what is the error you are getting. Have you checked the Flag in your communication channel.
Use Adapter-Specific Message Attributes
Variable Transport Binding
Once you test your scenario you can see the Dynamic URL in your message Header by going to tcode sxmb_moni. See if you are able to find something called DynamicConfiguration in your message haeader. If yes what is the value set there.
PS: From the target URL you posted It looks like your webservice is hosted on the XI box itself. Is it the same XI box or different box? Just curious to know.
Reward point if answer is helpful
Thanks
Amit -
HTTP receiver adapter: dynamic configuration
I was told that if I have a URL and some parameters, I can use a sync HTTP receiver adapter to call a site.
I know this can be done using some kind of dynamic configuration, but I am not familiar with this adapter.
The most important question here is that I need to know if this can be done throw PI, so my question is:
Is there a parameter limit in the HTTP adapter? If so, what is the quantity of parameters that I can give to the adapter?for the ASMA parameters you can use for the HTTP receiver adapter check
Configuring the Receiver Plain HTTP Adapter - http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm -
How to get Dynamic Converter URL
Hi all
I need to get dynamic converter url of document like http://<localhost>:<port>/cs/idcplg?IdcService=GET_DYNAMIC_CONVERSION&dID=7411.
I use DOC_INFO_BY_NAME and i can find document url using 'DocUrl'. But i cannot find anything about dynamic converter.
How can i get the url just using RIDC?
Best Regards
QianHi ,
Whether i can get which format will be converted(convert format in Dynamic Converter Admin Configuration Setting) ?
This is applicable for the UI alone where in all the formats that you want to have "HTML" option shown will be added from the above option .
As for getting Dynamic Conversion using the IdcService , all of the contents can be used irrespective of whether they are added in the DC Admin section or not . So if you want to show the HTML format then all you need to do is to call the GET_DYNAMIC_CONVERSION service and pass the dID of the respective contents .
Thanks,
Srinath -
SOAP receiver: configure URL on runtime
Hi experts:
I have an RFCs --> XI --> SOAPs scenario. The URLs for SOAPs are always like "http://server:port/directory/xxxxxxx" and only changes "xxxxxxx". The user/passord is the same for all URLs.
My question:
There is some way to configure dynamically the URL? I have tried to use DynamicConfiguration but I must write all the URL in each (java) mapping. Server and port will change when I transport to the productive systems so I'm interested in maintaining the basis URL on the communication channel by adding the last part dynamically
ThanksValero Lázaro wrote:
> My question:
> There is some way to configure dynamically the URL? I have tried to use DynamicConfiguration but I must write all the URL in each (java) mapping. Server and port will change when I transport to the productive systems so I'm interested in maintaining the basis URL on the communication channel by adding the last part dynamically
>
> Thanks
use dynamic configuration itself.
in your case you will have different values for different env. i.e Dev, Qa and PRD so in the code you can check what is the current sap system (based on SID) and write the logic
ex.
// Assume XID is Dev, XIQ is QA etc
String sysName = (String) System.getProperty("SAPSYSTEMNAME");
if(sysName.equals("XID"))
//your logic here
else if(sysName.equals("XIQ"))
//your logic here
else
// your logic
the above code will help you get the SID and based on it you can set the url via dynamic conf. -
Getting an error in Dynamic Configuration
Hi Guys,
I need to dynamically post the file into different directories based on the file in the source payload.
In Receiver File Communication Channel
Target Directory : *
Filename : *
Checked the ASMA Attributes for filename and directory
Iam refering this weblog
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
In the mapping
<filename> ---> UDF --> topnode of target message.
My UDF is as below
public String Directory(String a,Container container){
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "Directory");
String FileName = conf.get(key);
FileName = a;
conf.put(key, FileName);
String Directory = conf.get(key1);
Directory = "/SAPInterface/XI/PPD/DHX/out";
conf.put(key1, Directory);
return " ";
But in runtime(moni) iam getting error as
com.sap.aii.af.ra.ms.api.MessagingException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header
Please suggest me how to correct this.
Thanks
SrinivasHi Srinivas,
You said you are having dynamic directories to post the file. But I see you hardcorded or put constant for directory which is /SAPInterface/XI/PPD/DHX/out. I think you need to put //SAPInterface/XI/PPD/DHX/out.
Try this in udf:
public String Directory(String a,Container container){
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "Directory");
String FileName = conf.get(key);
FileName = a;
conf.put(key, FileName);
Directory = "//SAPInterface/XI/PPD/DHX/out";
conf.put(key1, Directory);
return " ";
Put FileName and Directory in file name and directory paramters in receiver communication cahnnel and cehck.
Regards,
--Satish -
Two FileName in Dynamic Configuration
Hi All,
I have a very rare problem. In an interface which uses BPM, where file is the sender and Proxy is the target,
there is an ABAP Class in the mapping which uses Dyanmic Configuration to retrieve the FileName and create a Proxy structure and posts it to the ECC. In this scenario, Multiple files are picked from different folder using advanced Selection and sent to BPM which uses the ABAP Class.
When i run the interface with 5 different files placed at source, In SXMB_MONI, I can see that after 3 files are processed successfully with a single filename in the Dynamic Configuration, the 4th or the 5th one wil have 2 filenames in the dynamic configuration out of which the first filename will be the copy of the earlier processed filename and the second one wil be the actual required filename. The above behaviour keeps on chainging.
How can this be possible as the Context Object 'FileName' can have only single filename through out the interface instance, as there is no setting of the filename done in dynamic configuration.
Please reply if anyone has a solution to the above problem.
Thanks.Hi Jaideep..
Thanks for the reply.
Yes.. its a serial processing. Let me explain a bit more.
as i said above, after the 3rd BPM instance (Just as an example.. keeps on chainging), the 4th instance has a unique filename compared to before 3. but after processing, the Dynamic Configuration in SXMB_MONI will have 2 fileNames. which will have a copy of any one of the earlier filenames along with actual filename. -
Acces dynamic configuration variable (e.g. filename) in ABAP mapping class
Hi experts
I am searching for a possibility to acces a dynamic configuration variable (DCV) in an ABAP mapping class. Since I could not find a solution in SDN and other sources, I hope somebody in this forum can help me.
What I already found is the following code which can be used to set a DCV, but what I would be interested in is how to read a DCV.
Any help is appreciated.
Markus
METHOD if_mapping~execute.
DATA l_record type mpp_dynamic.
* copy payload
result = source.
* add an adapter specific attribute
l_record-namespace = 'http://sap.com/xi/XI/System/File'.
l_record-name = 'FileName'.
l_record-value = 'test.xml'.
dynamic_configuration->add_record( l_record ).
ENDMETHOD.Hi Markus,
you can find everything in my blogs
/people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
Regards,
michal -
Dynamic configuration required in sender file - Adapter Module
Hi Everybody,
I am developing an Adapter Module in the file adapter (sender) using Adapter Specific Message Attributes.
I am using Dynamic configuration inside the Module Process method in the adapter module.
We are getting an error saying Dynamic Configuration cannot be resolved.
Can anybody tell me the package to be used.
Thanks,
ZabiullaYou can access the dynamic configuration in adapter module like this:
Message msg = (Message) inputModuleData.getPrincipalData();
String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File", "FileName");
You do not need any addition library besides the adapter module API.
Hope that helps
Stefan -
Dynamic Configuration File Names
Hi,
I have a RFC->XI->File scenario.
I have to put the target files names based on the calculation of values in 2 fields in the input.
I tried using Dynamic Configuration in my message mapping for this.
This is the code:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(u201Chttp://sap.com/xi/XI/System/Fileu201D,u201CFileNameu201D);
String MyFileName = a + "_" + b +".xml";
conf.put(key, myFileName);
I checked ASMA in both the sender RFC adapter as well as the receiver file adapter.
But it never works.
I saw the dynamic configuration tab in SXMB_MONI but i can see only the RFC destination parameter.
Cant see the file filename parameter.
What is the problem here?No need enable ASMA on RFC sender adapter.
See if the file channel is activated after selecting ASMA with FileName.
The UDF might not be use in the mapping. Check this.
Edited by: Praveen Gujjeti on Feb 23, 2010 1:05 AM
Maybe you are looking for
-
HT1338 How to connect my MacBook Pro to my 23" Cinema HD Display?
My MacBook Pro has a Thunderbolt port and I have just bought a Mini DisplayPort to DVI Adaptor to connect to my 23" Cinema HD Display which works fine on my old MacBook Pro. However, although my new MBP can detect the display, the monitor does not sw
-
Cannot install win xp by boot camp
acturally, I install the Win Xp sp2 before, but I found the network very unstable, so I uninstall it. and the HD has already separated in two parts. however, when I want to install the win xp sp2 again, the Boot Camp showed that it cannot install in
-
I have a iq820 uk touch smart is it possable to upgrade the processor
is it possable to upgrade my processor if so what will i need please
-
How to get pics in the iphoto app for iphone back onto my macbook pro
I need to know how to get my pics that are stored on iphone in the "iphoto app for iPhone" back onto my macbook pro's iphoto. macbook was recently wiped out (i didn't back up) during Genius Bar repair
-
My 2007 MacBook Pro keeps receiving "you must restart you computer" screen upon start up
It all started when i was watching videos online and the screen froze. It did this a couple more times and in between these freezes the computer would occasionally freeze during start up while the gray wheel was spinning. I was running lion. i decide