Plain HTTP sender adapter - Extract XML from request

Hi all,
I face a blocking issue in one of my B2B process.
A marketplace must send Purchase orders to my customer with synchronous HTTPs requests.
When messages arrive, we can see the following payload in incoming message (SXMB_MONI)
%24xmldata=+%3C%3Fxmlversion%3D%221.0%22encoding%3D%22UTF-8%22%3F%3E%0D%0A-%3CMessage%3E%0D%0A-%3CHeader%3E%0D%0A%3CFrom%3EPA%3C%2FFrom%3E%0D%0A+%3CTo%3E83092SAC01%3C%2FTo%3E%0D%0A+%3CDocType%3ETAEPa-xCBL30PO%3C%2FDocType%3E%0D%0A++%3CDocID%3EP-20050502T125611-TATG310-
%0D%0A++%3C%2FMessage%3E&submit=Soumission
WebServer of B2B partners don't put XML data in HTTP body but as HTML form in .
Is there a way in Plain http adapter to interpret such a request ?
How can we decode hexadecimal sequence ?
Thanks to help us.
Jean-Charles

Hi Jean-Charles !
Unfortunately, I don't know any other option (based on XI; maybe you can develop some kind of external translator between your system and  XI's http adapter). The first link (although it is based on a escenario in the oposite direction) speaks about using java proxy instead of the http adapter.
Here are some links:
/people/thorsten.nordholmsbirk/blog/2006/08/06/use-a-java-proxy-instead-of-a-jca-adapter
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30572c6a-d311-2a10-99ab-f646ec3b5b12
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd23702
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+proxy&adv=false&sortby=cm_rnd_rankvalue&start=21#
Regards,
Matias
ps: please award points if helpful.

Similar Messages

  • Plain Http Sender adapter - user details

    Hi experts,
    I am working with plain HTTP Adapters, a Java client is sending a HTTP request to XI server......the following url is used
    http://server:post//sap/xi/adapter_plain?namespace=<namespace>&interface=<Interface>...................
    &sap-user=<user>&sap-password=<password>
    Now, I understand that, the logon credential needed to reach XI Server is being passed as url parameters and this seems to work.
    Is there any other way to pass this information apart from the URL?  Does anyone has any sample java code that posts HTTP request to XI/PI and the logon details is sent via code or some mechanism apart from the URL.
    Thank you.
    Sabbir

    Maybe this page helps you:
    http://www.kennethballard.com/Projects/HttpClient/readme-java.html
    "Call setUserInfo() if a username and password are required to access the given URL."
    httpConfig.setUserInfo(user, password);
    Regards
    Stefan

  • 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
    VL

    Hi,
    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

  • 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 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

  • 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
    Robert

    Hello 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.

  • 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 Lund

    The 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

  • Plain http receiver adapter question

    Guys,
    Is there any way to see the actual https request that I am sending out with the Plain http receiver adapter?
    I am getting back an application level error response, but not sure what is wrong with my message, I would like to see it the way it was sent out.
    I know about SMICM where I can look at the trace file but it doesn't show me the actual https request - unless I'm missing something.
    Thanks a lot,
    Viktor

    Have you tried with some sniffers like TCPGateway.
    /people/stefan.grube/blog/2007/03/29/troubleshooting-soap-http-and-mail-adapter-scenarios-with-tcpgateway
    Regards,
    Prateek

  • URL in HTTP sender adapter

    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 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,
    Heiko

    HI 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,
    balu

    HI
    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

  • HTTP Sender Adapter Response

    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 ?
    Amair

    Hi 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

  • 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 Answer

    What 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.

  • 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 much

    Hi 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 doesn’t 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

  • 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

Maybe you are looking for

  • Crystal Report Performance for dbf files.

    We have a report which was designed 5 -6 years ago. This report has 4 linked word doc and dbf file as datasource. This report also as 3 subreports. The size of field in dbf is 80 chars and couple of field are memo field. The report performance was ex

  • Lightroom 5.6 and Yosemite 10.10 Final

    For those who have not upgraded to Yosemite yet, you may want to wait until Apple and/or Lightroom release a maintenance release.  I find LR very slow after the Yosemite update.  I get the spinning wheel of wait after every brush stroke, crop, etc. T

  • How to Exclude a sub directorys from polling using FileAdapter of BPEL Proc

    Hi all, I have a BPEL process with file adapter which is polling to root folder . I want to exclude File polling for some of the sub folder of the BPEL process. How to exclude file polling for sub folder i know the option is available for file name n

  • Power/sleep issues after upgrading to 10.8.5

    mac mini 2.6 GHz intel core i7 512 SSD 16 GB RAM everything was working beautifully for quite a long time, in fact, i've never had any issues at all.  upgraded to 10.8.5 build 12F37 last night and now the computer won't wake from sleep.  it has to be

  • Error in the Taxonomy browser view

    Hi All, I am getting a "class com.sapportals.wcm.WcmException index with index id <index_id> dosen't exist" when i go to the taxonomy brwoser. Can anyone help? Regards Prakash