cancel
Showing results for 
Search instead for 
Did you mean: 

Http Adapter Issue

Former Member
0 Kudos

Hi All ,

I am wondering if somebody can help me resolving this Http Adapter issue.

I have a scenario in which I need send send the idoc to http location but I don't understand one thing which is.

Message from the supplier

The xml will get send to postdata called u201Csrmdatau201C - there the user gets determined, who created the shopping cart and gets logged. No further login data are needed.

URL: http://xxxxxx/public/ConfirmSRMOrder.aspx

I don't understand what is meant by this Postdata and where exactly we need to define this in Http Adapter.

Till now I have only defined the HTTP Destination in the URL nothing else.

Can somebody please tell me how to do this.

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182503
Active Contributor
0 Kudos

Hi Muhammad,

maybe this ASPX page is a FORM and there's a field in this form called "srmdata" which needs to be filled with the IDOC data.

If you have access to this ASPX page, take a look at the source code and check if there's any input field called srmdata.

Best regards,

JN

Former Member
0 Kudos

Hi Joes,

Thanks so much for your quick reply.

Yes you are write it looks like a form to me and I have checked the source as well.

Here is the source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head><title>

</title></head>

<body>

<form name="form1" method="post" action="../public/ConfirmSRMOrder.aspx" id="form1">

<div>

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE2MTY2ODcyMjlkZGqXLw9JZXiEc1BeHGYgQ5maUPMG" />

</div>

<div>

<textarea id="srmdata" cols="200" rows="50" name="srmdata"></textarea>

<input type="submit" id="send" name="send" />

</div>

</form>

</body>

</html>

Can you please suggest me how to handle this in PI.

Thanks,

former_member182503
Active Contributor
0 Kudos

Hi Muhammad,

take a look at this thread:

Best regards,

JN

baskar_gopalakrishnan2
Active Contributor
0 Kudos

HI

Let me explain about the definition of Post in the HTTP Servers. HttpServers are hosting j2ee or .net applications normally. We can post data in the form of HTML data. This is similar to go that url using browser and input your fields on the screen.

In your case, the following things have to be noticed.

URL for posting - give that value in http receiver comm channel.

Next,

Form elements ... in your example

<form name="form1" method="post" action="../public/ConfirmSRMOrder.aspx" id="form1">

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE2MTY2ODcyMjlkZGqXLw9JZXiEc1BeHGYgQ5maUPMG" />

<textarea id="srmdata" cols="200" rows="50" name="srmdata"></textarea>

<input type="submit" id="send" name="send" />

</form>

if your case, we can post the query to that httpserver something like http://..../public/ConfirmSRMOrder.aspx?srmdata="data'&somevalue?="value"and so... thru browser to test it.

The above equivalent we can do it by configuring header fields in the HTTP receiver comm channel.

Hope I answer your question.