HTTP Adapter Receiver Parameters
hi,
I have a .jsp page which has a textarea and has the name of the textarea as "test".
Now how could i configure my http adapter to this .jsp page and the page is submitted , in such a way that the output from XI is equal to the value of the textarea's "test" value.
Thanks in advance.
Tirumal
Hi,
Not sure exactly what you want to do. Are you trying to use XI to fill in the textarea named "test" on the .jsp, then submit it? If so, I don't think this can be done.
What can be done is that the .jsp page will receive and process a post. The post will have a query string of "test" with values. In this case the following configuration can be used for the HTTP receiver:
Addressing type: URL address
Target host: your web server address
Service number: the web server port number
Path: the URL of the .jsp (e.g. /myjsp.jsp)
In XI Payload Manipulation section:
XML code: UTF-8
Prolog: test=
Regards,
Bill
Similar Messages
-
HTTP Adapter Receiver -- Message not arrive
Hello,
i send an IDoc from an SAP System to the PI and then with the HTTP Adapter
to a non SAP System.
The Message didn't arrive.
The Message Monitor says 'Call Adapter'.
Any Ideas?
Regards
PatrickPatrick
A similar issue has been discussed here:
XI_J2EE_ADAPTER_XI_HANDLER - GENERAL_ERROR
Unfortuantely it is a gnereic error.
Try extending the trace file in the log configurator in Visual Admin to see if you can get a better indication of what is triggering the error.
Try running RSXMB_ACTIVATE_ICF_SERVICES in SE38 to see if this kicks off the Integration Engine services.
Also, check page 29 from this guide:
https://websmp102.sap-ag.de/~sapidb/011000358700001697502004E.PDF -
XI Http adapter receiver issue, how to change the target payload format
Dear all,
In my project, I need to call a servlet program using Http/xml.
The message format accepted by the server program is like this:
request:
<?xml version="1.0" encoding="GBK"?>
<PACKET type="REQUEST" version="1.0" >
<HEAD>
<REQUEST_TYPE>01</REQUEST_TYPE>
</HEAD>
<BODY>
<BASE_PART>
<QUERY_SEQUENCE_NO></QUERY_SEQUENCE_NO>
</BASE_PART>
</BODY>
</PACKET>
response:
<?xml version="1.0" encoding="GB2312"?>
<PACKET type="RESPONSE" version="1.0" >
<HEAD>
<REQUEST_TYPE>01</REQUEST_TYPE>
<RESPONSE_CODE>1</RESPONSE_CODE>
<ERROR_CODE>0000</ERROR_CODE>
<ERROR_MESSAGE>xxx</ERROR_MESSAGE>
</HEAD>
<BODY>
<BASE_PART>
<QUERY_SEQUENCE_NO>01PICC057106001156421487812453</QUERY_SEQUENCE_NO>
</BASE_PART.
</BODY>
<PACKET>
My first question is if I can use the servie by SAP PI http adapter?
If yes, and how to design the data type? The <HEAD> <BODY> are on the same level...
Commonly, I only can set the data type like this:
<?xml version="1.0" encoding="UTF-8"?>
<MT_HTTP_IN>
<HEAD>
<REQUEST_TYPE>1</REQUEST_TYPE>
</HEAD>
<BODY>
<BASE_PART>
<QUERY_SEQUENCE_NO>123</QUERY_SEQUENCE_NO>
</BASE_PART>
</BODY>
</MT_HTTP_IN>
The problem is how to remove the <MT_HTTP_IN> then insert the tab <PACKET type="REQUEST" version="1.0" >? I wonder if I need use JAVA mapping? and could u give me a related samples?
Thanks a lot!Dear Xun Liu,
If you need <PACKET type="REQUEST" version="1.0" >, then you need to create attributes 'type' and 'version' under node <PACKET>. At mapping level you can pass constant values for those attibutes.
Regards,
JP. -
HTTP Adapter receiver.customizer_class
I'm trying to do something with the reply from a HTTPS-message from a website.
The HTTPCustomizedSender works fine, I tested:
import oracle.oai.agent.adapter.technology.HTTPSenderCustomizer;
import oracle.oai.agent.adapter.sdk.Agent;
import oracle.oai.agent.adapter.transport.TransportMessage;
import oracle.oai.agent.adapter.sdk.MessageObject;
import oracle.oai.agent.adapter.sdk.AttributeObject;
public class CustomizedSenderResponse implements HTTPSenderCustomizer {
public void customizeTransportMessage (Agent agent, TransportMessage transportMessage,
MessageObject mobj, AttributeObject aobj)
agent.logTraceMessage ("Sent message sender xml:" + transportMessage.getBodyAsString(),
null,null,null);
Now I want to catch the reply from the website (I can see the reply when I set the tracelevel to 2 in the adapter.ini), so accordingly to the documentation I should implement the CustomerReceiver class:
import oracle.oai.agent.adapter.technology.ReceiverCustomizer;
import oracle.oai.agent.adapter.sdk.Agent;
import oracle.oai.agent.adapter.transport.TransportMessage;
public class CustomizedReceiverResponse implements ReceiverCustomizer {
public void customizeTransportMessage (Agent agent, int receiverType,
TransportMessage transportMessage)
public String createReplyMessage(Agent agent, int status, TransportMessage transportMessage)
agent.logTraceMessage ("Return message receiver :" + transportMessage.getBodyAsString(),
null,null,null);
agent.logTraceMessage ("Return message receiver:" + transportMessage.getResponse(),
null,null,null);
return "Successfull";
But it's not working, it even seems the parameter http.receiver.customizer_class=CustomizedReceiverResponse
is not recognized by the adapter
We are using version 9.0.2.0.2 of InterconnectPatrick
A similar issue has been discussed here:
XI_J2EE_ADAPTER_XI_HANDLER - GENERAL_ERROR
Unfortuantely it is a gnereic error.
Try extending the trace file in the log configurator in Visual Admin to see if you can get a better indication of what is triggering the error.
Try running RSXMB_ACTIVATE_ICF_SERVICES in SE38 to see if this kicks off the Integration Engine services.
Also, check page 29 from this guide:
https://websmp102.sap-ag.de/~sapidb/011000358700001697502004E.PDF -
Plain HTTP adapter error: Bad Gateway, Proxy Error, please help !
hello all,
i have the following scenario:
filesystem->file adapter->XI->plain http adapter-> receiver system.
the following error occurred while calling plain http adapter:
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_Server</SAP:Code>
<SAP:P1>502</SAP:P1>
<SAP:P2>Bad Gateway</SAP:P2>
<SAP:P3> Proxy Error</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>HTTP-Server Code 502 Reason Bad Gateway Explanation Proxy Error</SAP:Stack>
A RFC-Destination with SSL is used in this scenario. Connection test to the destination machine is also succeeded. some files have been transported to the receiver system, yet without payload. data is lost.
anyone has encountered such problem or anybody can tell me please how to solve this problem.
thanks for your help
regardsHi,
I´ve found a SAP-Note concerning this error-message 692057
There is the note 450226 gives an overview over error codes
Probably below solution may help you.........
As an administrator on your portal go to:
System Configuration > Service Configuration >applications
Under: com.sap.portal.ivs.httpservice > Services > Proxy
If any proxy settings are configured you may end up with the problem, so you need to set the "nonProxyHosts" to include the trex host.
After a restart the search was working normally again.
Thanks
Swarup -
Hello all!
I have a following scenario: IDoc ORDERS05 -> IDoc adapter -> XI -> Plain HTTP adapter -> receiver system.
The error arise when HTTP adapter being called.
<!-- 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>Internal Server Error</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Http server code 500 reason Internal Server Error explanation Internal Server Error</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Furthermore, there are two tags "Call Adapter" in XML message (transaction SXMB_MONI).
Please tell me how to solve this problem.
Thanks
AlexanderHi Seth.
Thanks for your reply.
Unfortunately, your thread didn't help me.
Let me to explain the problem more detail.
The error occurs on outbound channel when Integration Engine is calling the plain HTTP adapter. I think so because no messages appear in Adapter Engine (For check it I use Message Display Tool).
And what is more the error code changed. It is 404 now:
<!-- 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>404</SAP:P1>
<SAP:P2>Not Found</SAP:P2>
<SAP:P3>File not found</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Http server code 404 reason Not Found explanation File not found</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Regards,
Alexander -
Logon Problem in to third party HTTP Server using HTTP Adapter
Hi All,
I am trying to use a receiver HTTP Adapter to communicate to third party asp based Webserver.
The Server expects the content type as application/x-www-form-urlencoded.
So, in the HTTP receiver communication channel I gave content type as application/x-www-form-urlencoded. The Problem is that now we are getting logon error message from the application though we use the correct user and password provided by them.
They have given us a HTTP test tool which is perfectly working with the user ad password used in PI HTTP Adapter receiver channel.
kindly share your thoughts on this issue.
Thanks in advance.
Regards,
Sudharshan N ASatish,
I have used Non-SAP logon only..
I doubt that the problem may be due to some encoding issue.. since the webserver expects a different Content type (application/x-www-form-urlencoded).
I donno if my doubt is logical
thanks.
Regards,
Sudharshan N A -
Http receiver adapter - url parameters
I have a scenario where I'm calling a client proxy and passing a file name to xi. I have a receiver http adapter configured to post to a servlet. I want to pass the file name from payload to my query string variable. i.e PATH = parser/servlet/parsereng and I want to have a url parm like the following:
?filename=<filename from payload>
Any sap documentation walk thru would be great.
Thanks,
MarkHi,
you can set the url dynamically in this was:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
read:
which Adapter-Specific Message Attributes you can use on:
http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Convert XML payload to HTML form data in Receiver HTTP Adapter
Hi,
I want to make a HTTP request ( Receiver HTTP Adapter ) to a servlet where I need to send the payload in HTML form format ( name=value ). As per the help document:
A typical HTML form comprises named fields. When transferring a completed form to the server or a CGI program, the data must be transferred in such a way that the CGI script can recognize the fields that make up the form, and which data was entered in which field.
The plain HTTP adapter constructs this format using a prolog and an epilog
Has anyone done this before? I looked through all help documents and forums but in vain. I can resort to Java Mapping to do this but I do not want to re-invent the wheel if I can do it easily using HTTP Adapter Configuration. Please help.The parameters available in HTTP adapter for message header are:
HeaderFieldFive http://sap.com/xi/XI/System/HTTP
HeaderFieldFour http://sap.com/xi/XI/System/HTTP
HeaderFieldOne http://sap.com/xi/XI/System/HTTP
HeaderFieldSix http://sap.com/xi/XI/System/HTTP
HeaderFieldThree http://sap.com/xi/XI/System/HTTP
HeaderFieldTwo http://sap.com/xi/XI/System/HTTP
HTTPDest http://sap.com/xi/XI/System/HTTP
TargetURL http://sap.com/xi/XI/System/HTTP
URLParamFive http://sap.com/xi/XI/System/HTTP
URLParamFour http://sap.com/xi/XI/System/HTTP
URLParamOne http://sap.com/xi/XI/System/HTTP
URLParamSix http://sap.com/xi/XI/System/HTTP
URLParamThree http://sap.com/xi/XI/System/HTTP
URLParamTwo http://sap.com/xi/XI/System/HTTP -
Hi Everyone,
I am using a HTTP adapter at the receiver side. I am not sure about what values I should give in the following parameters
Addressing Type,
Target Host,
Service Number,
Path.
I'm getting an error when I go to "sxmb_moni" which says
Error Category = PLAINHTTP_ADAPTER
Error ID = ATTRIBUTE_SERVER
Kindly help..
Regards
Indudhar.this error might be due to bottleneck in the traffic.When the data comes in bulk some of the message is failing or when they are not able to connect to reciever server.
PLAINHTTP_ADAPTER.ATTRIBUTE_SERVER error
PLAIN HTTP ADAPTER -ATTRIBUTE_SERVER ERROR
http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
Plain HTTP adapter error
PLAINHTTP_ADAPTER - ATTRIBUTE_SERVER
check once again your HTTLP receiver adapter entries......care you getting this in the call adapter step of the Pipiline? -
How to configure message header in receiver http adapter?
Hi all
I need the outgoing message payload from receiver http adapter to backend system with below form.
POST http://222.222.33.22 /HTTP1.0
content-type:application/x-www-form-urlencoded
USERID=xxxxxx&PASSWORD=xxxx&SRCID=10&CDDATE=20070601...........................................................................
×POST http://222.222.33.22 /HTTP1.0
○content-type:application/x-www-form-urlencoded
○USERID=xxxxxx&PASSWORD=xxxx&SRCID=10&CDDATE=20070601...........................................................................
Is there a parameter to enable POST method as a part of message header outputing?
thanks in advance.The parameters available in HTTP adapter for message header are:
HeaderFieldFive http://sap.com/xi/XI/System/HTTP
HeaderFieldFour http://sap.com/xi/XI/System/HTTP
HeaderFieldOne http://sap.com/xi/XI/System/HTTP
HeaderFieldSix http://sap.com/xi/XI/System/HTTP
HeaderFieldThree http://sap.com/xi/XI/System/HTTP
HeaderFieldTwo http://sap.com/xi/XI/System/HTTP
HTTPDest http://sap.com/xi/XI/System/HTTP
TargetURL http://sap.com/xi/XI/System/HTTP
URLParamFive http://sap.com/xi/XI/System/HTTP
URLParamFour http://sap.com/xi/XI/System/HTTP
URLParamOne http://sap.com/xi/XI/System/HTTP
URLParamSix http://sap.com/xi/XI/System/HTTP
URLParamThree http://sap.com/xi/XI/System/HTTP
URLParamTwo http://sap.com/xi/XI/System/HTTP -
Receiver HTTP Adapter Dynamic Query String
Hello,
I am using HTTP Adapter on receiver side.
My URL is <b>http://server:port/abc/def?xyz=123&luw=345</b>
When I am using Adapter specific attributes.
If I check apply Parameters and pass
Parameter 1 as xyz and Parameter 2 as luw and pass their values through dynamic configuration will they get appended to the dynamic querystring
http://server:port/abc/def at the end and I get back the complete URL.
Can this be achieved? I am stuck on this.
Regards,Srihari,
The best way to debug this and check what is happening would be to use the TCP gateway tool as shown in this blog by Stefan Grube.
/people/stefan.grube/blog/2007/03/29/troubleshooting-soap-http-and-mail-adapter-scenarios-with-tcpgateway
Send the request to the TCP gateway and forward it from there to the correspionding target.
You will be able to see the URL being passed including the Query String parameters.
Regards
Bhavesh -
How to send the payload to a jsp using receiver Http adapter?
Hi experts,
I have this scenario from Legacy to XI to external app server.I have a test jsp to execute that functionality .Its a jsp which has 1 textarea named "test" and when I click on the submit buton I get a response back.This way I am able to test this independently.Now from XI when I am executing my scenario I am getting status code '1250' and message as ' http request(test) is null'.Now in the scenario in http adapter I just provide the target host : ip of server ,
service number : port no ,
path: the container or the request handler. But this scenario fails and gives me the above erroneous response.Now Basically I am not able to get how to send the value to the textarea "test"? please provide help as soon as possible.Do we have to put the name of the jsp in the "path" in http adapter and use prolog as test=.I tried this but it doesnt work.
Is there any way to check the URL that it forms after appending the querystring in the url ...?
So please provide help on this or suggest a solution to [email protected] as soon as possible.....
Thanx in advance.
Akshatahey Shekhar,
thanx for that prompt reply but I have configured the communication channel in the same manner as suggested by u.
actually I have this jsp page http://xx.xx.xx.xx:8080/abcdef/try/efg.jsp where there is a textarea "test" which has to be filled and there is a submit button.When I test this http client i.e the above jsp page independently then it goes to handler
http://xx.xx.xx.xx:8080/abcdef/trial/ And it gives a proper response message after clicking on the submit button.
now I want to carry out the same using receiver http adapter. I need to pass the value for this inputfield names "test" on that jsp . so right now I have configyured the adapter as
addressing type: url
target host : xx.xx.xx.xx
service no:8080
path : here I have given the path of handler i.e /abcdef/trial I tried giving the jsp page also but logically I guess it should be the handler.
content type: text/xml; charset=iso-8859-1
xml code: UTF-8
Mask special characters (URL escaping) checked.
now since the name of the inputfield is "test" in the prolog I gave test=
But it doesnt work I get this error "http request parameter [test] is null" in the response message which I guess suggests that it is not able to send the value for the field"test" to that handler.Please suggest how to send this and tell me if there are any other configurations that I have to do in the receiver communication channel.
Thanx ,
Akshata -
HTTP reciever adapter URL parameters
Hello all,
I have a question regarding passing parameters as querystring in the url of reiever HTTP adapter. This is an RFC> XI> HTTP scenario and we're posting to an external URL. Here are the details
URL: xxxx.yyyyy.com
Service Number: 80
Path: /api/company_codes
It works fine with these. I want to pass a parameter called "bulk" with value "1".
How should I do it. Should I append it to the Path directly like
Path: /api/company_codes?bulk=1
or enable Apply URL Parameters under Adapter Specific MJessage Attributes and fill in
Parameter 1 : bulk=1
Could somebody clarify this please?
Thanks
KarthikWhen the parameter is fix, so apply it to the path.
Regards
Stefan -
Error with receiver HTTP adapter
Hi all,
my scenario is the following :
ORDERS05 -> iDoc Adapter -> XI -> HTTP adapter ->URL
I get the following error when calling the HTTP adapter :
HTTP client. Code 108 reason
Error Category = PLAINHTTP_ADAPTER
Error ID = ATTRIBUTE_CLIENT
First we thought that the problem may come from the HTTP server but we tried with these parameters :
Target Host = service.sap.com
Service Number = 80
Path = /
And we get the same error. So obviously the problem is on the XI side...
Did anyone ever had the same problem ? Or has a clue on how to solve it ?
Thank you very much in advance.
Regards,
JulienHi,
Pls check in the transacation sicf whether the http service is active or not.
Regards
Priyanka
Message was edited by: Priyanka Balagangadharan
Maybe you are looking for
-
Error while creating the Unique Index of the Primary Key of an Item
Hi all, I have deployed a new item (CO_CONTRACTUNIT_PRODUCT) in my publication. The deploy appears to be successfull as the item can be seen in the repository through the Mobile Manager. The problem occurs when i sync my local DB to get the item offl
-
How do you report Net Balance of A/R Down Payment Invoice?
We have recently installed SAP B1 Version 8.8 at a new client site. The client wants to accept A/R down payments from customers, issue invoices and draw the amount of the invoice from the down payment. I can see the net amount in an open items list
-
I have problem in-app purchase. I not receive order item, should i can do ? deteil : I purchase in-app item in the app heroes of destiny but not receive order item, have a message purchase fail,I try to purchase often but have a message purchase fa
-
Replicated Partition: One to many?
I am hoping to set up a replicated partition, which will take exchange rate data from source to multiple targets.The issue is that I have multiple homes in any given target database for (eg) USD rate. ie I have tried using UDA's, but one USD tagged m
-
Can pages be opened in word program
can pages be opened in a word program?