cancel
Showing results for 
Search instead for 
Did you mean: 

How to send XML file into XI using sender HTTP adapter

Former Member
0 Kudos

I am using HTTP sender adapter to post the XML file into XI. I tried to form the URL by using the following String query , but I am unable to execute file.

String urlString = "http://<servername:portno>/sap/xi/adapter_plain?namespace=<namespace>&interface=<interface name>&service=<service name>&party=&agency=&scheme=&QOS=BE&sap-user=xiappluser&sap-password=satyam&sap-client=100&sap-language=EN";

How can I execute xml file by using HTTP sender adapter.

Any one with better suggestions, about this idea?

Thanks in advance for all.

Ram Raj

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

you don't require to configure the sender adapter for http or IDOC as both directly communicates with the integration engine. just configure the reciever adapter.

Former Member
0 Kudos

Venkatram,

Make sure xiappluser have access to http sender of xi. try to use the user xisuper or anyther user which have proper roles to access. Even then if you are not able to proceed, check the roles if any are active.

regards,

Felix

former_member187339
Active Contributor
0 Kudos

Hi Ram Raj,

You can test it by Using HTTP Client page. Have a lok at the following thread for the Client page.

/message/266750#266750 [original link is broken]

Regards

Suraj

Former Member
0 Kudos

Hi

Just use the following parameter to send xml file using HTTP adapter.

"http://xiserver:8000/sap/xi/adapter_plain?namespace="senderNamespace"&interface=senderinterface&service=sender service";

"&party=sender party"&agency=&scheme=&QOS=BE&sap-user=userid &sap-password=password&sap-client=100&sap-language=D";

with the help of this you are able to point out which interface you would like to use.

And in payload pass the xml.

and thats it

carry on

Cheers

Regards

Piyush

Former Member
0 Kudos

Venkat

You can instead try to test from your Runtimeworkbench under component monitoring from TestMessage Tab.It does the same job, out of the box.

If you still want to create your own client to test , i can send the code to you..

Let me know..

Regards

Sriram V.

Former Member
0 Kudos

Hi,

I tried to test in Run time work bench under Test message, but it is throwing the error as "<b>Error when sending message: 401 Unauthorized".

Please send me any solution or code to test.

Thanks & best regards

RamRaj

Former Member
0 Kudos

Hi Venkatram,

try maintaining your logon parameter directly in transaction SICF in sap/xi/adapter_plain and double click to maintain the logon parameters.

Also check this thread

/message/266750#266750 [original link is broken]

Regards

Anand