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
Karthik
When the parameter is fix, so apply it to the path.
Regards
Stefan
Similar Messages
-
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> -
HTTP reciever adapter pass 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
KarthikCan anybody help wwith this please?
Thanks
Karthik -
HTTPS communication using HTTP receiver adapter URL address as Address Type
Hi All,
If some one who has tried HTTPS communication using HTTP receiver adapter using URL address as Address type can you please guide me what are the steps need to be done.
Note : Address type is a parameter in HTTP adapter setup .
Regards,
ReddyHi,
Check this,
Configurations in Integration Directory
The plain HTTP adapter gives the receiver system the following specifications:
— Specifications for addressing using a URL address:
Target host, service number, and path prefix including query string:
http://<hostname:port>/<path>?<query-string>
You can identify the target host (HTTP port) of a SAP Web Application Server using
the
ICM monitor
Host and port of the HTTP proxy (optional if there is a firewall between the plain
HTTP adapter and the receiver system)
Authentication data for the receiver system.
See also: transaction Display and Maintain RFC Destinations (SM59).
— Specifications for addressing using an HTTP destination:
HTTP destination
— Parameters from the communication channel for technical routing
Content type (the entry text/XML is expected as default)
Specifies the format that the message contents (the payload) should have.
Optional header fields for the receiver-specific protocol
Attributes for the query string
1. Sender party
2. Sender service
3. Receiver Interface
4. Message ID
5. Quality of service
6. Queue ID
All attributes are selected except for the queue ID. If you do not want a value to be
transferred to the receiver, deselect it. The queue ID is only required if the quality of
service is EOIO.
Specifications for payload manipulation
XML code (default UFT-8)
Specifies the character set.
URL escaping
Presents the XML in a URL-enabled format. Special characters that could be
interpreted as control characters are replaced with escape characters (masked).
Prolog
Enhances the payload for particular servers (optional, see below).
Epilog
Enhances the payload for particular servers (optional, see below).
Enhancing the Payload
Regards
Seshagiri -
HTTP Receiver with URL Parameters
Hi, I need to pass the following parameters when I do an HTTP post
1. Data
2. DataType
3. Protocol
4. Security
5. DataFormat
Here the Data will have the payload to be sent to HTTP receiver. Can anybody tell me, how I can pass the payload using URL Parameter.in the HTTP reciever CC
from the help...
- If you want to use URL parameters, select Apply URL Parameters and enter the parameters in the fields Parameter 1 to Parameter 6.
The parameters are included in the HTTP request under the names specified here.
The technical names of the fields are URLParamOne, u2026, URLParamSix
Also check this blog
Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part III
Edited by: Anand on Oct 15, 2008 8:40 PM -
HTTP Sender Adapter - URL / Query String - Posting problems ?
Hi All,
Scenario: Partner sending order request via HTTP adapter to XI
I have configured my scenario and this is a sample URL I gave to Partner but when they try to post, they get "Connection Failed" error.
http://server.cmpny.com:1234/send/test/message?
service=Send_Order
&namespace=urn%3Asap-com%3Adocument%3Asap%3Aidoc%3Amessages
&interface=ORDERS.ORDERS05
&party=ABC&qos=EO/
Party Name : ABC
Service : Send_Order:
Interface: ORDERS.ORDERS05
Namespace: urn:sap-com:document:sap:idoc:messages
This partner has been "successfully" exchanging data for other messages using the same hostname/userid/passwd, so is there any problem my URL encoding ?
Any help is appreciated
BobHey
i m not sure how u generated the URL for the scenario but the best approach would be to use the following HTTP test tool for it
/message/266750#266750 [original link is broken]
just use the code given by Mr.Stefan Grube .
secondly instead of host name ,give the IP address of the XI server.
Thanx
Aamir -
HTTP Post - Capture URL parameters(USER)?
Hi,
My scenario is HTTP - XI - ABAP Proxy.
I wanted to capture USER id of the person who posted(HTTP) into XI(Mapping). <b>How to read/evaluate the value of sap-user from querystring of URL ?</b>
http://HOST:8008/sap/xi/adapter_plain?namespace=http%3A//abc.com/sales_oa&interface=MI_sales_OA&service=DEV_D&party=&agency=&scheme=&QOS=EO&<b>sap-user=SM9999</b>&sap-password=xxxxx&sap-client=001&sap-language=ENHi Mallik,
Check the following urls with reference to Adapter-Specific Message Attributes
Plain HTTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
Configuring the Sender Plain HTTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
Configuring the Receiver Plain HTTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
Regards,
Mike -
Error using XI HTTP adapter specific message attribute URL parameters
Hi XI gurus, in our XI 7.0 SPS11,
we have problem using URL parameters of plain HTTP receiver adapter.
If I set Adapter specific message Properties in communication channel and activate switch for Apply URL parameters (using Parameter 1 to 5) filling them using message mapping, we have no effect; instead we have error "Dynamic Header - Missing Message Attributes: Fields/Parameters".
We carried out this test:
1. not using adapter specific message attribute and setting
a static URL target with fixed parameters it runs correctly.
2. using adapter specific message attribute for target
URL and URL parameters both doesn't runs correctly.
3. using adapter specific message attribute only for target
URL doesn't run correctly.
These attribute key used for URL parameters:
URLParamOne
URLParamTwo
URLParamThree
URLParamFour
URLParamFive
Namespace: http://sap.com/xi/XI/System/HTTP
Can you solve this issue? Are there oss notes, corrections, ...
Thanks in advance.
Marco TricaseSome other test done with TCP gateway.
Activated adapter specific message properties for
*URL
*HTTP Header fields (one header field named "lisca")
*URL Parameters (one param named "objectType")
The HTTP message catched by TCP Gateway
POST /csl/cslinker HTTP/1.0
content-type: text/xml; charset=UTF-8
content-length: 318
connection: close
accept: /
user-agent: SAP Web Application Server (1.0;700)
host: 10.10.43.94:54000
accept-encoding: gzip
<?xml version="1.0" encoding="UTF-8"?>
seems nothing has been generated, and obviusly URL and params have been set in message mapping.
Hope some guru has been solved the issue ...
Pasquale Rossiello -
Manipulate the URL in HTTP receiver adapter possible?
hello together,
i have an HTTP receiver adapter. To the parameters which i can tick in XI as default (sender party, sender service, ....) i want to add some parameters too.
who can i do that? i have read the weblog from william li. i tried to change the parameter link the comments at the end of the blog (see kurt rasmussen) but nothing happend..... the parameters are not available....
can somebody help me?
thanks a lot
alexhello michal,
yes, i did. i took the information from http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm and tried to put some special information to URL. nothing to see.
is it mandatory to use a mapping to fill the URL parameter fields, isn't it??
i am using a port sniffer to see the URL and the fields (parameters) in it.
thanks a lot.
alex -
Dynamic URL for HTTP receiver adapter
Hi all,
when the XI send the http request to the target system, the format maybe like this:
header + body the body is including: Prolog, payload and Epilog
here is about the target system have a 'input' parameter(maybe string type)
is it possible to pass the 'head + body' these value(or maybe the whole http request message) into input
i mean is it possible to set the dynamic URL for http receiver adapter like this:
http://host:port/path?input=<the header and body>
i have searched the blog Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
Link:[/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping]
and the similar threads in the forum
please give me some advice
thanks in advanceWhen a HTTP server requests the whole message as URL parameters, then I assume that the server also requests an HTTP GET, which is not supported by XI.
Could you check this?
Regards
Stefan -
HI we are currently integrating a http to rfc connection with the URL in the format of
http://sdn.sap.com?name=Joe&country=India
we want to pass the url parameters name and country to a rfc in sap but we are having difficulties using the apply URL Parameters on the sender http adapter when it comes to message mapping. can you give a sample xml that will be generated when we received the said URL and how we can map these on the receiver RFC. Thank you in advance'Hello,
we want to pass the url parameters name and country to a rfc in sap but we are having difficulties using the apply URL Parameters on the sender http adapter when it comes to message mapping.
You need to tick ASMA and then under apply URL parameters your entry should be like this:
Parameter1 name
Parameter2 country
http://help.sap.com/saphelp_nwpi71/helpdata/EN/43/64db4daf9f30b4e10000000a11466f/content.htm
And then retrieve the name and country via dynamic configuration in message mapping using the technical name specified by SAP Help above
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey name = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/HTTP","URLParamOne");
DynamicConfigurationKey country = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/HTTP","URLParamTwo");
String uName = conf.get(name);
String uCountry = conf.get(country);
PS: You cannot test dynamic configuration in ESR. You have to do at least the HTTP to PI testing on your part to see if your config works.
Hope this helps,
Mark
Edited by: Mark Dihiansan on Apr 7, 2011 7:27 AM -
Using URL Parameters with HTTP Comms Channel
Hi,
I need to build a new interface (HTTP - RFC) which will use several URL parameters. I've created a HTTP communications channel and Sender Service and this works. I'm able to define several URL Parameters by checking 'Adapter-Sepcific Message Attributes' and then 'Apply URL Parameters' then specifying the individual parameters.
This is straight forward so far but in usual SAP fashion the documentation on HTTP Comms Channels and URL Parameters is non existent. My question is how do I use these parameters once they are passed. I need to use the values as input parameters for the RFC which means I'll need to map these in the Integration Repository I can't find anything on SDN or SAP help that answers the question.
I know I could include these values in the XML payload but that would mean my 'customer' would need to amend their application and I'd rather keep things as they are.
Looking forward to your replies.
Thanks in advance.May be this could help you to refference . .
For each process template, you can define interactive or composite form reference objects that can optionally be executed at runtime.
To be able to see and execute the reference object at runtime, you must add an appropriate runtime view.
Prerequisites
You can only attach standalone interactive forms to a process. For more information, see Interactive Form Types.
Activities
To attach an interactive form to a process:
1. Open the gallery and select a process template. To open its design time, choose Open
2. To switch to edit mode, choose (Edit).
3. Open the Forms tab page.
4. Choose Add and select the type of reference object you want to add. You can choose between Callable Object and Development Object.
Browse and select the reference object, and choose Add once again.
5. Repeat step 4 to add more objects.
6. To define parameter mapping, select an entry and choose Map Parameters. Select a parameter from the left-hand table, and then select the parameter you want to map from the right-hand table. This groups the input parameters of the form reference object to the relevant input parameters of the process.
If the process does not define input parameters, you can set default values.
7. When you have defined the required mappings, choose Done.
8. Whenever a newer version of the form reference object is available, its status on the Forms tab page changes to (Deprecated). To update the object, select it from the list and choose Update. The status changes to (Active).
Parameter mapping is preserved unless the parameters of the new object version are different. In this case, you need to define mappings again.
9. Finally, choose (Save). -
HTTP Sender Adapter parameters
Hi,
I'm doing the HTTP to IDoc Scenario.
Receiving side is SAP ECC through receiver IDoc.
Third party system, they are asking to give the URL, so that they will include that URL in their program & it will post to SAP.
Can anybody guide me on this.. what parameters i've to get from the third party and what preparations i've to do in XI & ECC 6.0, so that i can give proper inputs to them.
And if sender CC is HTTP, any receiving IDoc CC configuration is required? Pls let me know the steps hw to proceed on this.
Thanks in Advance.
rgds,
baluHI
Sender HTTP
You need to have a sap user for the third party in PI to post content on HTTP sender adapter channel
URL that you need to give to third party vendor
http://<hostname:port>/<path>?namespace=<namespace>&interface=<interface>&service=<service>(optional) &party=<party>(optional) &agency=<agency>(optional) &scheme=<scheme>(optional) &qos=<EO|BE|EOIO>
Receiver IDOC
Create RFC destination in SM59 for R3 system.and port in IDX1 for R3 system
IDX2 Improt IDOC metadata.
Thanks
Gaurav -
Paramter setting in URL in the case of HTTP receiver adapter
I have the following requirment: Can you anyone please help me how to define DATATYPE and configure in HTTP adapter:
The web page is developed in JSP page its body contains parameter(for example:<textarea name="xml" cols="70" rows="150" wrap="off">) to pass to the URL.
In this suitation,1) how can define my datatype in XI repository. ,Root element should be start with "xml" tag? 2). what are configuration parameters in HTTP receiver adapter.
3). Using HTTP post application.
Your response is highly appreciated.
Thanks
VenkatI have the following requirment: Can you anyone please help me how to define DATATYPE and configure in HTTP adapter:
The web page is developed in JSP page its body contains parameter(for example:<textarea name="xml" cols="70" rows="150" wrap="off">) to pass to the URL.
In this suitation,1) how can define my datatype in XI repository. ,Root element should be start with "xml" tag? 2). what are configuration parameters in HTTP receiver adapter.
3). Using HTTP post application.
Your response is highly appreciated.
Thanks
Venkat -
Hi ,
I would like to configure the sender CC for an HTTP adapter in order to set the user name and password in the Url .
How this can be implemented ? Do i need to set only sap-user= ... and sap-password= ...
in apply url parameters ? These parameters should start from '&' ?
Thanks in AdvanceDid you take a look at the sample HTTP client coding. The HTTP client is available in SDN for free download. You dont have to configure Sender HTTP adapter to configure these details. You need to program your HTTP url with the params. Take a look at the sample clieent coding to see how they are passed.
Maybe you are looking for
-
Opening a pdf file from safari
Hello! I am having trouble opening a pdf file (I installed Adobe 10.1) over the internet from my laptop (OS X Lion 10.7.2) Any solutions? Thanks so much. You are awesome
-
WSUS 2012 Post Installation Fails - Import Default Detectoids failed
I have installed the WSUS role on a new Windows 2012 R2 Standard server after running a recovery of SCCM from an SCCM backup. When I run post-installation tasks for WSUS, it fails. Here is the log file for the WSUS post installation task: 2014-02-07
-
My firefox keeps crashing for no apparrent reason
my firefox keeps crashing for no apparent reason the crash report says: EMPTY: no crashing thread identified; corrupt dump the crash report itself http://crash-stats.mozilla.com/report/index/bp-715dc850-c4c1-42ee-acd9-d8ba12120903
-
Can I listens to the same port in differernt threads on the same computer
Q1:can I listens to the same port in differernt threads on the same computer? Q2:if I use two thread to listen to two different port, you know, as the method for listening is a block method, will them block each other? Thank you very much!
-
Clipping Mask to hide certain area of image
Hi All, I would be grateful if anyone could help me to figure out how to clip mask only 1 polygon with cat heads because my cat image is so big until it appears on other polygons. Attached below is my screen shot for better understanding. Any tips an