cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Receiver HTTP adapter

Former Member
0 Kudos

Hey guys

i have to configure receiver HTTP adapter for my File to HTTP scenario and i dont know how to go ahead with it,i m actually confused about service number,target host,path etc.

i know the URL where in i have to post the file but what entries do i need to make for the required fields in the receiver HTTP adapter

the receiver is outside our landscape so i guess i will select URL address instead of HTTP destinaation,right?

thanx

ahmad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ahmad,

Yes you are right. In Receiver HTTP Adapter specify the name of server, the port. The Path contains /<vendor-Specific>/<context-root>/<Servlet-mapping>.

Check this weblog for your reference:

/people/siva.maranani/blog/2005/09/15/push-data-to-mvc-architectured-application-using-xi

Also see this which may help you:

/people/kausik.medavarapu/blog/2005/12/29/csv-file-lookup-with-http-request-and-response-in-xi

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm

---Satish

Former Member
0 Kudos

Hey satish

i got the following URL from the receiver

http://z305.natoil.com:5556/invoke/Inbound/ScorpionNOV?MessageType=REQCRT&inXML=xml

now what will my adapter entries be? also should i select HTTP destination or URL address.The URL is the only thing which i got from them,do i need anything else too?

thanx

ahmad

Former Member
0 Kudos

Ahamd,

Select the http destination and give this url in the http destination.

---Satish

Former Member
0 Kudos

Hey Satish

looks like the URL is too big for the HTTP destination,its not taking whole of the URL,only a part of it.looks like there is some length constraint in http destination

thanx

ahmad

Former Member
0 Kudos

I'm having exactly the same issue at the moment. I think that the "HTTP Destination" should be set up in Transaction SM59 and then you can reference it in your adapter.

If you are using "URL Address" then in your case the host would be:

Target Host: http://z305.natoil.com

Service Number: 5556

Path: /invoke/Inbound/ScorpionNOV?MessageType=REQCRT&inXML=xml

But I can't figure out why it is called Service number and no "Port Number" - it makes me feel like I'm missing something here - The documentation that has been linked to in other threads like this seems to be out of date.

Can anyone shed some current information on this ?

Former Member
0 Kudos

Hi Ahmad,

Check in Adapter Specific Attributes also

If you want to use URL Parameters, set the indicator and enter the parameters in the fields Parameter 1 to Parameter 6. The parameters are embedded in the HTTP request under the names you enter here.

The technical names of the fields are URLParamOne, …, URLParamSix.

The attribute namespace for the adapter is http://sap.com/xi/XI/System/HTTP.

Regards

Chilla

bhavesh_kantilal
Active Contributor
0 Kudos

Ben, you are correct.

Just one change,

Target Host: z305.natoil.com

No http:// needed in Target Host.

Service number is port number if your Http url needs a port number. Else you can leabve it blank.

Regards

Bhavesh

Former Member
0 Kudos

Hello Chandra.

i have the same problem, so my question to that:

if ahmad want to use the parameters for example for a mapping: "MessageType" and "inXML" (which is in the URL) are the names of the the URLParamOne (in http adapter Parameter 1) "MessageType" and URLParamTwo (for second parameter) "inXML"??

is this right?

thanks a lot

alex

Former Member
0 Kudos

Hi,

See , if you are able to insert the entire path in the path then ok.

I mean

Try.

Select URL Address

Host : z305.natoil.com

port : 5556

path : /invoke/Inbound/ScorpionNOV?MessageType=REQCRT&inXML=xml

Else use the adapter Specifi settings and select the check box URL

and enter the rest of 6 parameters for URL only.

i hope you got it

Regards

Chilla

Former Member
0 Kudos

Thankyou Bhavesh - I wasn't sure if I should have the protocol in there or not !

Ben

bhavesh_kantilal
Active Contributor
0 Kudos

The way I tested thsi was simple.

Created a HTTP desitnaion to an external server in SM 59 and tried a test connection. When i had http:// it didnt connect to the target and when i removed it and gace only the HTTP url it ?( without the http ) it worked and i got the webpage as the response.

So, i guess a http:// is not needed

Regards

Bhavesh

Former Member
0 Kudos

Thanx guys

i will work on it and will come back to sdn if i run into any problem.

thanx

ahmad

Former Member
0 Kudos

Hey guys

i have made the changes in my scenario and now my settings are as follows

Target Host: z305.natoil.com

Service Number: 5556

Path: /invoke/Inbound/ScorpionNOV?MessageType=REQCRT&inXML=xml

but in MONI i see the status as "Scheduled for Outbound Processing".

does this means there is some problem on my side or their side?also what else can i do to rectify this error?

thanx

ahmad

Former Member
0 Kudos

Hey

i unlocked the msgs stuck in SMQ2 and now i m gettin the following error

<SAP:Stack>HTTP server code 401 reason Unauthorized explanation [B2BSERV.0084.9001] Invalid credentials</SAP:Stack>

one thing to be noted here is that the receiver is not in our landscape,i have givedn the userid and password correctly in the HTTP receiver adapter,what does "Invalid credentials" exactly means?

thanx

ahmad

Former Member
0 Kudos

Invalid credentials is : either your username or password is incorrect.

Re-type the username and password in your receiver comm channel and reactivate your communication channel and try again.

Satish

Former Member
0 Kudos

Hey

i retyped my user id and pwd and m still getting the same error.

is there anything else i can do?

thanx

ahmad

Answers (0)