Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Making a form submission with HTTP_AAE

$
0
0

Hello,

 

I want to send username and password information to an aspx page. Then this page will return me an xml response.

 

 

So if I make a HTTP POST request with

Content-Type: application/x-www-form-urlencoded

and parameters

pwd: ******

uid: ******

The scenario will work.

The HTTP Request body is like that

 

uid=****&pwd=****

and it works, but I couldn't get it right on SAP PI.

 

 

 

I've filled out the parameters name on the advanced tab but despite my all efforts I could not make a form submission with HTTP POST

 

After numerous attempts I've achieved to send this data via the PI HTTP_AAE using an XSLT mapping but there must be an easier way.

Here is my configuration:

picture.png

Untitled.png

With this XSL i can get rid of the XML declaration and tags but when i leave the method as text then the communication channel receives an error. And if I choose xml or HTML the ampersand sign & is killing me. I sent to the target pwd=*****&uid=****** which returns me "the password you've entered is wrong" !

picture2.png

This "set form" option definitely mean something but. I have absolutely no idea what to type within the "MainPayloadParameterName"

I've tried MainPayload , UrlParamOne , the field in the message type, but all resulted with no success


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>