cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP sender config ?

Former Member
0 Kudos

Hi Guys,

we are trying to configure a third party application for sending xml files with HTTP adapter with the url as http://host:8000/sap/xi/adapter_plain .

I need to configure in such a way that it shld not promt for the userid & pw for authentication. I cannot have url more then the above length and i am worried how it can identify the specific sender & interface as there r no sender details in the above url.

any help in configuring a sender http adapter with out promting for user id and pw would be really appreciated

Thanks,

k s reddy

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi,

Download the HTTP client using below link

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca4...

after downloading copy the html code and save the .html.

Next go to View -> Source (keep the username & password for xi server )

here enter the the following parameters..

Servernmae : XIServername

Port : ICMPort (ex: 80<instance number>)

Client : XI Server client

Sender service : Enter the service name eaither business system or business service or integration process.

Enter the Outbound Inteface and namespace.

In your scenario party is ther enter the party details else optional..

copy the xml data...while copying the xml data remove the xml header.

Regards,

Venu.

Former Member
0 Kudos

hi,

along with before post do the below things..

go to exchange profile using below ur.

http://hostname:j2eeportnumber/exchangeProfile

Expand RWB ->Select the below parameter and the value would be 80<instancenumber>

com.sap.aii.rwb.server.centralmonitoring.httpport: 80<instnace number>

save and restart the instance.

Until unless you restart it won't effect exchange profile changes..

Regards,

Venu.

Former Member
0 Kudos

Hi Venugopal,

I dont have any problem in sending data through HTTP client. I am able to send the data successfully and see the response.

I need to configure the same in a 3rd party system which sends xml files. It is now configured for BC where they give a common url like http://host:port/sap/xi/adapter_plain and when ever they send xml files it makes use of this url and sensds the data to BC.

we need to send 15 different xml files and do i need to enter there 15 different urls ? How can the xml data reaching HTTP adpter will identify the interface if i dont mention any interfcae name in the url?

help would be appreciated

Thanks,

k s reddy

Former Member
0 Kudos

Hi Venugopal,

I have the 50000 for the following parameter instead of 80<instance number>

com.sap.aii.rwb.server.centralmonitoring.httpport: 80<instnace number>

Do i need to change it to 8000 ? If it is wrong why i am getting the response when i test with HTTP cleint ?

help would be appreciated

Thanks,

srini

Former Member
0 Kudos

Hey

as far as i understand ur sending data from HTTP to some thrird party,right?

so most probably u have a HTTP to File scenario.

see when u send the data over HTTP u have to specify the complete path,including the message interaface etc.

if your 15 files have different Message interface then u have to create 15 different URL's for get the data from HTTP to File

lemme know if my understanding of ur scenario is correct

thanx

ahmad

Message was edited by:

Ahmad

Former Member
0 Kudos

Hi Ahmad,

I am the sending the data from 3rd party to sap. I have the scenario similar to

HTTP -- RFC type. I need to cinfigure for HTTP in the 3rd party.

help would be appreciated

Thanks,

srini

Former Member
0 Kudos

Hi -

<i>>>>we need to send 15 different xml files and do i need to enter there 15 different urls ?</i>

When sending messages to the HTTP adapter (sender HTTP), parameters like 'service', 'interface', and 'namespace' (sender int. namespace) are mandatory as part of the URL query string. See here:

http://help.sap.com/saphelp_nw04/helpdata/en/82/f4993c03e0cd37e10000000a11405a/frameset.htm

XI needs these parameters for routing purposes. Receiver determination (that you set up in ID) is mainly based on these parameters.

So if the 15 xmls truly belong to 15 different sender interfaces, for example, then you'll need 15 different URLs (query string part).

<i>>>>Do i need to change it to 8000 ? If it is wrong why i am getting the response when i test with HTTP cleint ?</i>

The port u need to use for the http adapter is the icm port that resides on the ABAP stack - to confirm, check trxn SMICM, then Goto->Services. You'll see the http port you need to use there. By default, this is 8000. 50000 is usually the J2EE http port and is used by the other adapters of the adapter framework and messaging system. The http adapter (and IDoc adapter) is part of the ABAP stack.

Regards,

Jin

Former Member
0 Kudos

Hey

refer to the following thread

/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit

also as mentioned by Mr.Jin Shin,u have to provide the interface name, services etc.

so if u have 15 different interfaces,u will have 15 different URL's

thanx

ahmad

Former Member
0 Kudos

Hi Jin,

Thanks for the reply. Do i need to change the following parameter in Excha Profi

com.sap.aii.rwb.server.centralmonitoring.httpport: 80<instnace number>

I have that one as 50000 not 8000. Do i need to change the above parameter from 50000 to 8000 in ExchangeProfile?

Help would be appreciated

Thanks,

srini

Former Member
0 Kudos

hey srini

for HTTP scenarios u have to use the 8000 one,50000 will not work in URL

thanx

ahmad

Former Member
0 Kudos

Hi Srini -

<i>>>>Do i need to change the following parameter in Excha Profi

>>>com.sap.aii.rwb.server.centralmonitoring.httpport: 80<instnace number></i>

Yes, you do. But this is only related to RWB Alert Configuration. This setting has no impact on message processing in your immediate case (using http adapter).

For more info on this particular exchangeProfile setting, see Note 750287.

Regards,

Jin

Former Member
0 Kudos

Hi Jin,

I have the following url configured in the 3rd party syst to send 15 differ data to sap.

http://host:5555/invoke/mainflow/flowtosap.

I have asked the 3rd party sys admin to configure for the 15 diff urls generated in the HTTP client for the 15 diff interfaces and he says he has only one url option like above for all the interfaces and its length is also restricted upto 120.

we are mainly facing this issue how to include all the 15 diff urls ? and how to change the length of that field ? Do we need to talk to 3rd party application developers or is there way that we can solve this issue

help would be appreciated and rewarded

Thanks,

srini

Former Member
0 Kudos

Hey

whenever u send anything over HTTP to XI,it needs to have the complete path,message interface,QOS,urn etc.

AFAIK there is no way u can truncate that,ask the third party to make changes on their side

thanx

ahmad

Former Member
0 Kudos

Hi Ahmad,

Thanks for the reply and i will ask for the changes.

Thanks,

k s reddy

Former Member
0 Kudos

I see this (different URLs and length) as more a limitation of the 3rd party system than XI.

In any case, if you can get around the length limitation, one potential (not very elegant) workaround may be to set up a generic sender interface (and dummy corresponding message type) which you would use for all your different 3rd party XML messages and use direct XPath statements for content-based routing. XI does not validate the XML message against the message type configured for the sender interface. Depending on how many receivers and inbound interfaces you need to route the message to, in Receiver Determination and/or Interface Determination, you would set up the XPath conditions to examine the XML payload for particular fields and values for routing. If you choose this option, I would try it for a couple of targets first before trying to set it up for all your targets (confirming that it's a viable option).

Another drawback to this is that content-based routing and use of XPath is more costly in terms of performance.

So first option would be to have the 3rd party system adjust their system. If not possible, you can try what I described above.

Regards,

Jin

Former Member
0 Kudos

Hey

why do u have constraint on the URL length?

when u generate the URL using the local HTTP client u will get the URL which contains name of Message interface etc and AFAIK u wont be able to send XML without the correct interface name.

thanx

ahmad

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>any help in configuring a sender http adapter with out promting for user id and pw would be really appreciated

open transaction SICF

then find service adapter_plain

double click on it and go to the logon tab

there you can put the user and pass

and the service will not prompt for it any more

is that what you were looking for ?

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi Michael,

which user id and pw i need to enter whether PISUPER or XIAPPLUSER or my user id and pw.

Thanks, junkyua

k s reddy

Former Member
0 Kudos

hi,

you need to give your user id & pwd.

Regards,

Venu.

Former Member
0 Kudos

Hi Srinivas,

If you are using HTTP Adapter as sender , you do not require adapter configuration.

When posting the data using html client, you can replace with your user id & password, if this is the question.

Thanks

Balaji