cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP to File Scenario using URL parameters.

Former Member
0 Kudos

Hi,

I am working on a HTTP to file scenario where POST method is hirring the XI server with authentication parameters.

CAD application is trying to hot our XI server using POST Method and the application does not have ability to send XML payload to XI server directly.

So we are simply receiving parameters in plain text in inbound payload.

I need to convert this payload to XML format and am tring to work this out using dynamic configuration.

But It is throwing parser error.

BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 73, 75, 62(:main:, row:1, col:3) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:770)

Here I have to use HTTP sender adapter.

Please suggest how can I acheive this.??

Regards,

Sachi

Accepted Solutions (0)

Answers (2)

Answers (2)

maciej_jarecki
Contributor
0 Kudos

Hi

It looks like PI receive it in plain text, and problem occurs in mapping(pls check it in sxi_monitor). Problem with http adpapter is that it reside on ABAP stuck so You cannot write your own module to create payload. Please write more details whare problem occurs.

Kind Regards

Maciej

Former Member
0 Kudos

Hi Mark and Maciej,

The Inbpound payload we are reciving is of the kind:

sap-user=<UserID>&sap-password=<Pwd>&Param1=Sachi&submit=submit

As in HTML we ar using hidden parameters to given authentication details and submmit button to hit XI serrver.

Can you please help me to out how can I add prolog and epilog.

How can I change my payload to XML format.

Regards,

Sachi

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

There is no xml in the payload?

sap-user=<UserID>&sap-password=<Pwd>&Param1=Sachi&submit=submit

looks like a prolog.

Regards,

Mark

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

So we are simply receiving parameters in plain text in inbound payload.

Can you paste the whole payload here? It might be just a matter of adding the prolog and epilog.

Regards,

Mark