cancel
Showing results for 
Search instead for 
Did you mean: 

using PI server as http server

Former Member
0 Kudos

Hi,

i am working on an Idoc to http scenario, but till now, i dont have any receiver details, so for testing purpose, i am thinking of using another http to file scenario, put the link which i used for this http to file scenario in the http receiver communication channel configuration for idoc to http scenario, i wanna get the output file in the file server. can i work out in this way?

and how can i put the link in the http receiver channel?

please give me some instructions.

Thanks a lot

Jessica Ding

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

the additional query string attributes are not required in this case.

Former Member
0 Kudos

hi, Aamir

thanks for your help, and i unchecked all those additional query string attributes, and now it is working, i can get my file in the file server.

Thanks a lot

Jessica Ding

Former Member
0 Kudos

hi, Aamir,

i didnt get you, which both messages, i got the error in the first message, i mean in the idoc to http scenario. so the message didnt go to the http to file becasue of the error.

do i need to use some escapse letter in the link?

Thanks a lot

Jessica Ding

Former Member
0 Kudos

Hey

Could you please paste here the configuration of the HTTP Receiver communication channel.

i mean the Host,Service number and Path prefix.

Thanks

aamir

Former Member
0 Kudos

hi, Aamir

thanks for ur reply, i did as you told me, but i got an error.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Call Adapter

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIAdapter</SAP:Category>

<SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>

<SAP:P1>500</SAP:P1>

<SAP:P2>Internal Server Error</SAP:P2>

<SAP:P3><SAP:Error><SAP:Category>XIProtocol</SAP:Category><SAP:Code>MESSAGE.DUPLICATE_DE</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>HTTP server code 500 reason Internal Server Error explanation <SAP:Error><SAP:Category>XIProtocol</SAP:Category><SAP:Code>MESSAGE.DUPLICATE_DE</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

could you please help me to reslove this?

Thanks a lot

Jessica Ding

Former Member
0 Kudos

Hey

Could you please check if the Message ID for both the messages are same,its possible that due to loop it has the same message ID for both the messages and is giving error.

if you got this error in the second message(HTTP to File),then atleast it means the first message (IDOC to HTTP) is correct which fulfils your testing:)

Thanks

Aamir

Former Member
0 Kudos

yes, i did that.

the link i tried is

http://host:port/sap/xi/adapter_plain?namespace=http%3A//company.com/dummnamespace&interface=Int_dum...

but in http receiver channel,

target host, service number, and path need to be configured.

what i should enter for service number, and for the logon, i should choose the logon data for sap system, right, and give the username and password to logon the PI server, right?

thanks a lot

Jessica Ding

Former Member
0 Kudos

Go to SMICM in XI system and then hit Shift+F1,this will give you Host and Port.

use this Host as Host and Port as Service Number in receiver HTTP communication channel.

path prefix will be rest of the URL.

Thanks

Aamir

Former Member
0 Kudos

Hey

First generate the URL for HTTP to File scenario by using HTTP test tool(you can download that from SDN).Once you have the HTTP URL,specify that in the receiver HTTP channel of Idoc to HTTP scenario.

Thanks

Aamir