HTTP Sender Adapter
Hi,
I have tried the HTTP client code that was given in many of the forums to post the messages into XI. It works fine. But this is good for testing. How does a HTTP real time client sending a message gets posted into XI without sender information? Do we have to enforce the HTTP sender pattern in the query string or simply how does it work?
Thanks for any reply regarding this.
Hi Harika,
We have created a scenario in which ASP is communicating with XI. In that we had written a vbscript function which will create the XML object (which is to be send to the XI server). MSXML2.XMLHTTP object was then created and the above formed XML object was send as a STRING.
The communication string for opening the connection was the same as given by priyanka.
Hope this will be helpful.
Regards
Suraj
Similar Messages
-
How to configure the Http sender adapter
Now i have look through the sap lib about the http sender adapter
and i know the url is
http://hostname:port/path?namespace=<...>
&interface=<...>&service=<...>&cmd=T&loaderXML=< message object >&end=yes
My questions are:
1)the path in the URL is "/sap/xi/adapter_plain", if not, what is it?
2)the message payload is right?
any reply is appreciated
Thank you very muchHi Leo,
For a HHTP Scenario:
DESIGN:
1. Create DataTypes for source and Destinations. Create elements for all the text fields of your HTTP Client so that they can all be mapped into the destination file
2. Create MessageTypes for the two datatypes.
3. Create Message Interfaces. The One for HTTP is the sender, Asynchronous ( as no response is expected) and one for File is receiver, asynchronous.
4. Do the mapping. It will be mostly a one to one mapping of the fields.
5. Create the Interface Mapping.
Configuration:
1. Import your Business System under your Configuration Scenario.
2. Create 2 communication channels. One for Http as a sender and one for your receiver say IDoc.
Check these links for the configuration part.
http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
3. Do the Receiver Agreement for Idoc. HTTP doesnt need a sender agreement.
4. DO the Receiver Determination and Interface Determination.
Weblog which talk about the same scenario:-
/people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - although this weblog is
aimed at explaining the sync-async bridge.. Sriram has taken http-to-file scenario as the example
(use case) and explained it...
Check this SDN tv demo, it has detail of HTTP adapter setup.
https://media.sdn.sap.com/SDNTV/main.asp?mediaId=107
Refer to this link for adapter settings.
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
You should also have a HTTP client to send message to XI. In the connecting parameters to XI u have to use the URL in the pattern mentioned . U have to give all the configuration details in the URL.
If you give me your mail id or if you can mail me at [email protected], i can send you a HTTP CLIENT.....In which you need to view the source code and change the username and password to send message to XI.
Regards,
Abhy -
How to use the http sender adapter
Hi,
I'm trying to use the http sender adapter but not getting the result.
1) I've created the commnunication channel in Integration Directory.
2) I have my url:
http://<server>:56000/sap/xi/adapter_plain?service=BS&namespace=urn%3Acompany%3Apoc&interface=interface
3) When i copy that url in a browser i get a login prompt. When i log in i get a message that navigation is cancelled.
What steps do i need to do to use this url to send my xml message to the adapter engine. Do i need a special system user for this? Any other tools required? (i have httpclient but using that doesnt send messages to the adapter_plain; i think)
I feel i'm just missing one little thing, but what is it.
kr
RobertHello Team,
I added the user name & pwd to query string & trying to access from IE and still getting blank page.
Is this what is expected or there is something wrong in URL. I am able to send the XML from HTTP Test tool.
My URL is :
http://abc:50000/sap/xi/adapter_plain?namespace=urn:xyz.com:A_To_ERP_Payment_balance_Request&interface=SI_A_CHK_balance_OUT&service=BC_XX_XXX&sap-user=myuser&sap-password=mypassword&sap-client=001&sap-language=EN
Please advice. -
Hi,
I have a scenario where I want to configure a HTTP sender adapter.
I have a HTTP PUT url of a 3rd party application from where the HTTP adapter should poll and pull the files into PI.
Is this possible? If yes, where and how do I mentioon the URL?
Please help!
Thanks,
Pratibha.Hi,
That means, the sender aplication has to write a http://<hostname:port>/<path>?<query-string> type query?
Is there no other option?
Is it not possible with the SOAP sender adapter also?
Thanks,
Pratibha. -
HTTP sender adapter and receiver adapter
Hi guys,
I have a scenario that I have to communicate with an HTTP server with XML over HTTP.
When the communication is opened by me I will use an HTTP receiver adapter and give the connection parameters.
a) Do I have to use a different HTTP receiver communication channel for each different type of XML that I want to send??
b) When the communication is opened from the HTTP server, they have to type the URL in order to invoke the correct scenario on my side, right? I know that I do not have to use an HTTP sender adapter. They have to call the http URL, followed by the sender business system, sender interface name/namespace etc.
That means that the URL in the format: http://XIhostname:port/ is not enough right?
Is there a way to figure out from the type of the XML sent which scenario will be executed in XI?
Because it is difficult for them to use different URL when they are sending me different type of XML's, i.e. different requests.
Evaggelos>>Do I have to use a different HTTP receiver communication channel for each different type of XML that I want to send??
Yes,receiver adapter is linked to receiver agreement,if you have different inbound interfaces then it means you need to have diferrent receiver agreement,hence different receiver communication channels.
>>That means that the URL in the format: http://XIhostname:port/ is not enough right?
No,its not,there is a test tool on SDN called "HTTP test tool".just search for that and download on your desktop,it will help you generate the correct URL as well as test the scenario by sending sample HTTP request.
One thing you need to keep in mind is that HTTP scenarios don't require and sender communication channel or sender agreement.they only need configurations on receiver side
Thanx
Aamir
FYI:Here is the test tool
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
Edited by: Aamir Suhail on Jul 3, 2008 12:18 PM -
Http sender adapter: QoS is interpreted as Best Effort by PI 7.11
Hi
I have a scenario, where I receive an xml OrderResponse via an http sender adapter and I then map it to an iDoc which is sent to the backend system.
BUT: for some reason, PI thinks, that the Quality of Service is BE, and I get the error "Only asynchronous processing supported for IDoc adapter outbound processg".
I have checked both the http sender adapter, the sender agreement, the interface mapping, the service interface and the operation mapping and nowhere can I see, that best effort is selected.
The OrderResponse is sent from an external partner and is routed through a load balancer and an SAP web dispatcher before arriving to PI.
Any suggestions would be highly appreciated.
MIkael LundThe external partner is sending the OrderResponse to this URL (external URL):
https://xxxxxx.xxxxxxxx.dk/sap/xi/adapter_plain?service=LM&namespace=http://xxxxxxxx.dk/XCBL/OrderResponse&interface=xCBLOrderResponse35Out
this URL is being translated to an internal URL:
https://yyyyyyy.yyyyyyy.dk/sap/xi/adapter_plain?service=LM&namespace=http://xxxxxxxx.dk/XCBL/OrderResponse&interface=xCBLOrderResponse35Out
So how should the external and/or internal URL be altered?
Thanks for a very quick answer by the way
MIkael -
How to Call HTTP Sender Adapter of Other Scenar from HTTP Receiver Adapter?
Hi,
I have a requirement to call HTTP Sender Adapter of Other Scenario from HTTP Receiver Adapter?
or
call SOAP Sender Adapter of Other Scenario from SOAP Receiver Adapter?
i.e
SOME SENDER - > PI - > HTTP Receiver - > calling -> HTTP Sender -> PI -> SOME RECEIVER
SOME SENDER - > PI - > SOAP Receiver - > calling -> SOAP Sender -> PI -> SOME RECEIVER
if any one can provide me the screen shot for those SOAP / HTTP Sender or Receiver ADAPTER.
or Point me to Some article with Screenshots .
That would be appreciated with Point.
Regards
PS.Solved . .
-
HTTP Sender Adapter Strange Problem After SP16 Patch!!!
Hi,
after upgrading to XI SP 16 I'm no longer able to create HTTP Sender Adapter based Communication Channels. I can create a Receiver Adapter but no Sender since the Sender button is greyed out in the UI. Does anybody have an Idea what could be the problem here?
Kind regards,
HeikoHI Heiko,
As stated by bhavesh you cant have a sender http adapter, infact there is no need to have it.
If you want topost message to the integration engine using http protocol,you can directly send the xml message to the pipeline url of the integration engine.
http://<host>:<Abap http port>/sap/xi/engine?type=entry
Yomesh -
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 -
Hi there,
Can I send a status code back to the sender of the HTTP request in case of a HTTP Sender Adapter ?
We need to send a response immediately to the Sender Application. The interface however is an asynchronous interface and a response with XI is only perhaps possible with BPM which would be rather complex for a small response code to be sent back ! Is there any possibility that some response is sent as soon as I receive a request on the SICF service ?
AmairHi Amair,
As Bhavesh suggested i also dont see a way you can do this unless by making the interface Synchronous. If you do so then it becomes so simple and u will not require any work arounds.
Regards,
Abhy -
Enabling SSL for HTTP Sender Adapter
Hi Experts,
I'd like to have a step by step process in enabling HTTPS for Plain_HTTP Sender Adapter. I've already read the enabling HTTPS on SAP Help, but it does not provide much detail. Would the steps be the same for enabling HTTPS for Plain_HTTP Receiver which are:
1. Install the certificates using STRUST
2. Configure an RFC Destination using SM59
3. Call your RFC Destination in Receiver HTTP Adapter (not valid for http sender adapter)
The connection for setting up http is http://<hostname>:port/<path>?<query string>
but what about https? Would it be connecting to the webdispatcher first?
Hope you can help me,
Regards,Hi,
as HTTP Adapter is on ABAB stack you will need to configure with STRUST.
http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
The URL should start then with https, but you could test with this sample client:
https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
Regards
Patrick -
WCF Basic Http Send Adapter Observation (BUG in WCF Adapter ?)
Hi,
I have a request response WCF Basic Http send adapter with URL say http://dds.testservice.com/service
I send a request and get a response in my orchestration. Everything works fine.
I have a scope around the send receive shape in orch to catch excpetion of service call.
To test this I changed the URL to http://dds.testservice.com/service1 and I got the exception in orch and caught.
But if URl is changed to http://dds.testservice.com1/service i.e I am putting invalid server name . Note the 1 after com.
In this scenario the WCF Send adapter remains in Active state for ever till terminated.
Why is this behaving this way. How will orchestration ever know if the send failed if its always in active state and no response sent back to catch block.
Is it a bug in BizTalk WCF Adapter ?
Regards
Ritu Raj
When you see answers and helpful posts,
please click Vote As Helpful, Propose As Answer, and/or Mark As AnswerWhat you're experiencing is not unexpected.
The server name and the service path are completely different and, technically, have nothing to do with each other. They are resolved separately, and in different places.
"service1" is failing immediately because the host is getting the request but, not recognizing "service1" is returning an error immediately.
"*.com1" takes much longer to fail to the Orchestration because of the stack of timeouts and default retries in the Send Port and IP stack.
So, no, it is not a bug. -
HTTPs sender adapter to pick file from a external HTTP file location
HI gurus
Please see the problem here. I need know hoe to configure the Sender HTTP adapter.
My Scenario-
A Flat file (non-xml but structured) sitting on an external https enabled web server. I need XI to go out and get this file on a regular basis (which will then be processed laterby the business person)
Thanks
VLHi,
The FTP Adapter will do the job for you. Just create a File Communication Channel and change Transport Protocol to FTP. Since you mentioned that the file is non-xml, in the Message Protocol, choose, File Content Conversion.
Here are some blogs that will help you:
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
FYI.. HTTP Sender adapter is not required to be configured because a HTTP request will directly come to the ABAP Engine
Regards,
Balaji.M -
Clarification for HTTP and HTTPS Sender Adapter
Hello together,
after some investigating concering scenarios with HTTP and HTTPS sender there are still some points that are not absolutely clear for me.
I know that it is not necessary to configure an HTTP sender communication channel. However if I want to enforce HTTPS sender communication I think I need to add an HTTP sender communication channel with security settings enabled as well as a sender agreement.
To my understanding these settings are activated on the Adapter Engine (Java Stack), HTTP requests however call the ABAP stack directly. How does this work exactly?
Thank you very much for your additional explanation.Hi,
see below is the format for HTTP URL
http://<hostname:port>/<path>?<query-string>
now query straing can only have values as given in the below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
a way around can be to specify the payload for &party or &agency or &schema(if you are not using them) but then XI should be able to identify them correctly(which i m not sure how it will do),secondly the length can be a constraint coz if you add the whole payload ,the URL will become really long.
so i would suggest you not to use it but if you really have to,then explore it properly first and then only use
plz reward points
thnq -
Catch Soap fault in HTTP send adapter port
Hi All,
I am using BizTalk HTTP adapter to call webserice . But HTTP send port is returning HTTP 500 internal server error and couldn't show the actual soap fault which webserice is returning (I confirmed that the webservice is returning the soap fault by using
WCF port).
I gone through the link http://msdn.microsoft.com/en-us/library/aa561642(BTS.20).aspx
But don't know the exact steps to subscribe NACK.
Please anybody can guide me to subscribe NACK.
Regards
KundanHi Kundan,
Refer the following article on guidance in catching SOAP faults in orchestration.
How to handle Fault Message in BizTalk server
Also ensure you have proper exception handling around sending request to web service.
I understand that you have seen SOAP fault being returned when you used WCF port. But during the development phase, I would use tools like Fiddler to see the message packets
exchanged between BizTalk and Web service. This would shed some lights on whether received message is a SOAF fault or HTTP-500 error.
Using BizTalk with Fiddler (Though this article used WCF adapter for demonstrating
the Fiddler usage, this also applies to HTTP adapter)
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.
Maybe you are looking for
-
My Iphone 5C won't sync for the backup since I did the last software update to my phone. It fails in step 3 of the sync. The error message says it can't find SyncUILorelocalized.dll
-
Start AIR (mobile) application from Android Service
Hi I'm hoping someone can give me some direction. I would like my custom Android service to start my AIR application. An Android Service starting a regular Android application is well-documented... the basic idea is to create an Intent (a system mes
-
Zen Stone Plus: Does it start playing again where i stopped the so
I hope one og you can help me. I want to know if the Zen stone Plus MP3 player starts in the same song after it has been turned off. So if I turn it off 3.4min in a song, does it then start at 3.4 when i turn it on again, or does it start from the be
-
Exchange in mail- how to stop all hotmail emails downloading?
,I wonder if anyone can advise. I have active sync set up on iphone 4 and it works perfectly! The only problem being is that it downloads all messages since I set it up despite having set the settings in general account options on the iphone to "show
-
We have published Exchange 2013 via TMG 2010. Users cannot logoff OWA with message "to finish signing out,please close all open windows" Even when closing the browser the session is not terminating. Thanks Kyriakos