Http adapter question

This may be a very stupid question but, I have set up a http adapter but i am unsure of the syntax used to post the data to it via a URL. Each different way, i keep getting a Bad Syntax status. If I post the address of the TransportServerlet in a browser, I do get the settings displayed, but I just can't send data to it.

Hi,
I may not be able to reply to your question, cause actually i have a question for you. How did you use the HTTP adapter.Cause in Jdeveloper i dont find the adpter in the services list. So please tell me how did you get the HTTP adpater.Did you install it explicitly?
regards,
Sriram

Similar Messages

  • HTTP adapter question - how to tell what URL was used in the runtime

    I need to know the URL information used when sending via HTTP adapter. I cannot find this information in the SXMB_MONI trace under SOAP header or in any other place.
    THanks,
    Pam

    Never mind....I found the log in ICM monitor

  • HTTP adapter post prolog question.

    Hi all,
      I have a scenario where I need to send an XML message through the HTTP adapter (no SOAP) to an external service. THE HTTP Service requires a user password as parameters to be passed in order to process the message. Since HTTP adapters is doing only POST I used the prolog in order to pass these parameters (&user=xxx&password=XXXX) but i get a 401 error. In order to test I created a static HTML form with hidden inputs the user and password variable and did a POST (using iexplorer) and it worked!!! Am I doing something wrong?? Isn't the prolog filed in the adapter suppose to do the same ?? i.e. post two variable user, and password??? How does the prolog field worked? Any help will be appreciated.

    Thanks for the reply,
    actually the problem was on the Content-Type. The default text/xml was the problem since the application was expecting a application/www-form-ulencode (or something like this, i don't remeber). Now it works!!!

  • UTF-8 encoding problem in HTTP adapter

    Hi Guys,
    I am facing problem in the UTF-8 multi-byte character conversion.
    Problem:
    I am posting data from SAP CRM to third party system using XI as middle ware. I am using HTTP adapter to communicate XI to third party system.
    in HTTP configuration i have given XML code as UT-8 in the XI payload manipulation block.
    I am trying to post Chines characters from SAP CRM to third party system. junk characters are going to third party system. my assumption is it is double encoding.
    I have checked the Xml messages in the Message monitoring in XI, i can able to see the chines charaters in XML files. But in the third party system it is showing as junk characters.
    Can you please any one help me regarding this issue.
    Please let me know if you need more info.
    Regards,
    Srini

    Srinivas
    Can you please go through the SAP Notes 856597 Question No.3 which may resolve your issue? Also have you checked SAP Notes 761608,639882, 666574, 913116, 779981 which might help you.
    ---Satish

  • SAP PI 7.1 HTTP Adapter

    In my scenario, SAP PI 7.1. needs to talk to a 3rd party EDI system via web services. SAP PI is using HTTP adapter to exchange XML messages for both inbound and outbound with the EDI system. Questions:
    1. If SAPI PI sends for example 100 (different) messages to the EDI system every day, will PI make 100 web service calls to the EDI system to send each individual message?
    2. Please explain how PI will use the HTTP URL to send the messages to the EDI system. Any document/blogs to explain how HTTP adapter works for exchanging messages with third party systems (web service capable)? Did not find anything good one in SDN.
    3. Any disadvantage of using HTTP adapter, e.g. for high volume scenarios?

    > 1. If SAPI PI sends for example 100 (different) messages to the EDI system every day, will PI make 100 web service calls to the EDI system to send each individual message?
    Yes, it will use 100 cals to process 100 individual messages.
    >
    > 2. Please explain how PI will use the HTTP URL to send the messages to the EDI system. Any document/blogs to explain how HTTP adapter works for exchanging messages with third party systems (web service capable)? Did not find anything good one in SDN.
    >
    When you use HTTP adapter in receiver side, you will specify address of the target system in URL format, that means data will be send it to specific UIRL adress.
    > 3. Any disadvantage of using HTTP adapter, e.g. for high volume scenarios?
    i prefer using SOAP adapter for web service cals..HTTP adapter give good perfomance.
    Regards,
    Raj

  • HTTP adapter header fields

    Hai All,
       Is there any option to add header fields dynamically in the HTTp adapter header fields?
    I am doing a file to HTTp scenario.In this i have to pick a file using file adapter and add some header values(header values are both static and dynamic)and using HTTP adapter place it at a target URL.Is it possible to avoid  mapping since there is only picking up of file and adding some headers to it.I can see header fields in the HTTP reseiver adapter.Can i use these to add the static and dynamiuc header fields.specifically i have two questions.
    1)I want to include the source file name which is DYNAMIC as a field in the header fields in the target payload.How can this be achieved?Should i go for mapping and write a UDF for the same or is there any option to add dynamic values in the HTTP receiver adapter header fields?
    2)what are these header fields for?
    Can somebody explain it to me.I have gone through the Blogs like http receiver adapter configuration etc..would be of great help if anybody could explain it to me in detail.

    Thanks for the replies but my question is still un answered.please guide me on how to proceed?
    I am going to send a txt file.On top of the contents of the file i want these headers to be attached
    In the header fields of HTTP receiver adapter configuration can i give the following format?
    Header           Value
    AS2 from:    hgdfdjfhd
    AS2 to:        fhdfjdfdfnd
    subject:       hdsjdhsdsd
    will it appear in the target file as
    AS2 from:    hgdfdjfhd
    AS2 to:        fhdfjdfdfnd
    subject:       hdsjdhsdsd
    //file content starts here
    dsgdsjfgdsfggf
    hfdjhfdhfdjfdfhhdsfh
    hgdsjfgdsjfgdfdgfdg
    gfdsahdgsdfdgfgdsg
    what is to be done for acheiving this kind of target file?
    "If you choose to use HTTP Header fields then you can enter Field1 to Field 6 values. This will be embeded into the HTTP request as HeaderFieldOne and so on."
    can this HeaderFieldOne to HeaderFieldsix be populated with any valueslike
    AS2 from: ggdhfsdf and all?
    please help me out.

  • Message setup for HTTP adapter

    If the http plain adapter is used, you use the URL to post the XML file to. What I was wondering is what the complete string looks like that is send, so URL including the XML message itself? In other words, what's between the http URL (http://...&language=EN) and the XML message itself (<?xml%20...).

    Alexander
    If I understand your question right, you are wondering what is in between the URL and the XML message. If yes, you need to understand how data exchange happens using HTTP.
    When data need to be exchanged between systems (Client and Server), there are various protocols. For e.g., FTP is used for transferring data as OS files between systems. Similarly HTTP is a protocol that is use for exchanged data between systems in the form of 'Request;Response' cycle. As with any protocol there are certain rules and structure.
    In case of HTTP, you should note the following
    1. There is a URL which is used for identifying where the request should be sent, which port it should hit and other related information. You can pass some information in the URL (In case of XI HTTP adapter, maximum of 200 characters long) as well  and in case of XI it will contain information specific to interface.
    2. Then there is HTTP header which will give information to the server (the system receiving the request) about various attributes like mime type of the data etc.
    3. Then there is HTTP body that actually has the data that needs to be sent to the system. In your case the body contains the XML message. Note that the body can also contain form elements instead of XML in which case you need ABAP or Java mapping in XI to parse the data.
    To come back to your question, what is in between the URL and XML? answer is nothing, because these are two different entities within HTTP. And no, you cannot embed the XML within the URL. An analogy in real world would be when you sending mails using post. The envelope you use is like a HTTP header, the address you write on the envelope is the URL and the actual letter inside the envelope is the HTTP body.
    Please refer http://en.wikipedia.org/wiki/HTTP to understand more on what HTTP is about.
    Thanks
    KK

  • HTTP Adapter outbound (SSL) processing

    I am trying to send a XML message (an Invoice) from XI to an external Customer via HTTP Adapter.
    The site I am posting the message to is SSL.
    I have installed the Customer's Certificate via STRUST under SSL Client (Standard) and can see it in the
    certificate list.
    Within the Communication Channel for HTTP Adapter I have tried Addressing Type of URL
    and also with a HTTP (SM59) destination.  Both do not work.
    The setting used for both are
    host : workflw.externalcustomer.xxx.com  Service: 443
    Path : /SubmitInvoiceUAT/SubmitInvoice.asmx/SubmitCXML
    HTTP Proxy : internetproxy.mycompany.com
    Proxy Servuce : 80
    SSL Active : SSL Client Certificate ANONYM SSL Client(Anonymous).  As no client cert is used for logon
    I have attempted a connection test within SM59 for the HTTP Destination and I receive the error
    ICM_HTTP_SSL_ERROR.
    1) If the SSL Client Certificate ONLY for logon then how does XI know what cert to encyrption with?.
    2) Should Verisign/Thawte etc CA certs be also installed in STRUST ?
    Does that "public" key for encryption need to be placed anywhere (eg STRUST) or will XI just do
    3) this when it does the handshake with the external HTTPS site it is posting to ?
    4) Also the transaction STRUST may (or may not depending on how the documentation is interpreted) need the installation of some certs into its PSE (Personal Security Environment).  But exactly what they mean is a mystery.  I have created what I thought was the servers cert but cannot see to create a dev.connector.boc.com named certificate.  Perhaps that is not needed.
    Here is the help <a href="http://help.sap.com/saphelp_nw70/helpdata/en/e8/1f1041a0f6f16fe10000000a1550b0/frameset.htm">SAPHelp on  PI HTTPS Config</a>
    5) Also OSS note 510007 it advises to check a number of settings.  I have had a look at what I can ..namely via transaction RZ10  and I can see one parameter and should that be changed to include a HTTPS ? .i,e  currently it is set to     <i>icm/server_port_0  PROT=HTTP,PORT=80$$,PROCTIMEOUT=3600</i>

    Hello
    As a process you have done well. I suspect the problem could be with " SSL Client Certificate  ". Check weather the SSL Client Certificate  is Valid version.
    Best practice.
       Alway when we are communicating with HTTP outbound. It is better to have a STANDALONE ftp location for both SENDER and RECEIVE xml DATA transfter files.
             I hope I answered your question. It was nice answering your question. Feel free to reach SDN if you have any questions.
    Regards

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

  • File fetch from external souce...  http adapter, file adapter, or...

    Hi - Hopefully this is a straight-forward question. I need to fetch a file from an external source (vendor) using a url that they provided us. Secondly, the url and file change each run. Here is the scenario:
    #1.
    - our side (PI 7.11) calls their webservice A to tell them to generate a report, and a report handle id is passed back to us (this part works)
    - our side (PI 7.11) calls their webservice B with that report id to get a https url string (this part works). E.g. return url is https://pvab70barp.companyb.com/reports/ODbsPPSBIQxPs/u1/u1_1307128013471215.csv
    - our side (PI 7.11) then needs to go fetch the contents of that file... again, the file is over at their site
    #2.
    The next time we run this we would get an entirely different url string
    So to solve #1, it seems to me that the HTTP adapter can be used (can it be used though given the url is https?). I don't think FILE adapter can be used as I believe it needs the file to reside on the local file system.
    To solve #2, it appears some dynamic configuration of the url is needed. Is their an easy way?
    If anyone has thoughts on these then I would appreciate hearing back from you with your comments. I have not worked with either of these adapters yet.
    Thanks,
    Keith

    1) You can use http or https connection to connect remote server.   HTTPS is not an issue. You create RFC destination of type H and there provide login credentials such as client certificates. Use that destination name in the http receiver adapter to use https.   Looks like to read the file that is on the http server, you might want to use Java proxy to achieve this. Simple HTTPS communication would not read the file. Or request the client to share it in the network shared drive. so that we can use File adapter to pulll the file.
    2) Yes you can use dynamic configuration in the mapping for the dynamic HTTPS URL.

  • Transport Acknowledgement for HTTP adapter

    Hi all,
    I have the following Integration Process (BPM) defined.
    I receive a RFC Message from R/3 in XI. The RFC message is put into a BPM scenario. It then waits for a second message to arrive which belongs to the first. Then i have to send the two messages in order (first the 1st message, then the second). These messages are both Asynchron. To make sure the messages are sent in correct order, i put the send steps in separate blocks and i request a transport acknowledgement. The message is written with a file adapter to a directory. This is on the testing environment and (as far as i can see now) working correct, because the send step is waiting for the acknowledgement and then going to process the second message.
    Now in the production system we do not send the message to a file, but to another system using the HTTP adapter. I cannot test this in any other system, so my question is: <b>Can i use the Transport Acknowledgement with the HTTP adapter in the production system to make sure the messages are delivered in correct order???</b>
    Or do i have to do other things?
    Thanks in advance!
    Marcel Leeraar

    Hi,
    Considering that HTTP adapters also support transport ack's, I dont think this should be a problem and it should work just as it did with file adapters.
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    Regards
    Bhavesh

  • Adapter Questions

    hi.....what kind of questions will ask on Adapters in  XI certification

    Hi Venkatesh,
    some more question on adapters:
    1. I have a problem with sending RFC from R/3 to XI
    2. How do I use 'Apply Control Record Values from Payload' parameter with the IDOC adapter?
    3. I can't see my adapters in the adater monitoring after the import of a new SP
    4. Where can I find J2SE plain Adapter
    5. How can I access filename from File/FTP Sender Adapter
    6. Where can I find FAQ on adapters?
    7. Where can I find examples on Adapter module development?
    8. Where can I find http adapter test tool?
    9. How can I access adapter monitor?
    10. I'd like to develop my own adapter - how can I test the sample adapter?
    11. How can I dynamically set some parameters in the adapter configuration?
    12. Which value should I fill in the RFC sender adapter for Program ID parameter?
    13. What is the SOAP action value in the SOAP receiver adapter?
    14. Where can I find JAR files for creating java proxies?
    15. How can I debug my abap proxy?
    16. Adapter Engine returns HTTP 401 under high load what can I do?
    17. How can I work with profile other then LS with IDOC Adapter?
    Amaresh

  • Http adapter -reading a http file stream

    Hi folks,
    Here is a requirement
    I need to read a file sent as an http object stream through XI and then updated the same in a database table in R/3?
    <b>How can i configure the http adapter so that it reads the file stream</b>
    regards
    krishna
    Message was edited by:
            Krishnamoorthy Ramakrishnan

    Thanks bhavesh
    Though your reply and reference did not directly answer my question, which i will explain below concisely, it did help me to get an idea about how to handle my requirement.
    Please read and give me your valuable advise.
    The sender is a distributor that wants to send some text file to a file server in XI.The sender will have to send the file as a http stream link. XI has to read the  file from the http stream and push it to a  file server in XI.  for this, i have identified that
    1. At outbound/sender side, there is an HTTP adapter in XI.
    2.The request to XI should be of the some think like
    <b>http://<host>:<port>/file stream.....</b>
    3. At inbound side , I have a java server proxy as suggested in the blog.
    4. The server proxy will use a http client connection to read the file stream and another ftp client to push it to the file server
    Do you think this would realize the requirement?
    I have also got a question here
    With the above mentioned URL, will the sender be able to communicate with XI, since the client is outside the network and has access to internet only. How can it communicate with XI?
    Also, Is there an better alternative to this approach?
    Thanks for your help
    Kind Regards
    krishna

  • Sender Synchronous HTTP Adapter

    My Scenario   HTTP (Synchronous) to XI to R/3(Synchronous RFC)
    My question: How do I create a Sender Agreement for this Scenario, because I am going to use the HTTP Synchronous adapter on the Sender Side? I am bit confused.  I have used the Receiver RFC Adapter. We are on SP 17.
    Thanks a lot.

    Hi,
    Create  communication channels. One for Http as a sender and one for your receiver
    The Receiver Agreement for Idoc. HTTP doesn’t need a sender agreement.
    The Receiver Determination and Interface Determination.
    You should also have a HTTP client to send message to XI.
    Normally seperate tool (code) is used but the easiest is as below
    You can go to RWB (from XI server homepage)->Comp Monitoring -> Display All ->Int Server-> Int Engine
    In the bottom, you find 3 tabs, select the test message tab to post messages.
    Pls note that, when you need to test, you should have created the scenario in IR/ID (and u can use the details of Recr Determination ID) to fill in the details.
    This might help you
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    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
    Weblog :
    /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
    HTTP adapter :
    https://media.sdn.sap.com/SDNTV/main.asp?mediaId=107
    Adapter settings :
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
    Regards
    Agasthuri Doss

  • Do Http Adapter has sender CC

    Hi Experts,
         I am in a confusion that :- I think i am asking you a small question, please correct me if i am wrong
    1. Do IDOC Adapter has both Sender / Receiver IDOC ( my assumption is it has only receiver Adapter )
    when i searched SDN, i am getting both sender and receiver Adapter, but as far as now i used only receiver Adapter.
    2. Do HTTP Adapter has both Sender / Receiver IDOC ( my assumption is it has only receiver Adapter )
    when i searched SDN, i am getting both sender and receiver Adapter, but as far as now i used only receiver Adapter.
    Please help me, with clear explanation.
    Nissi

    >
    NissiRaj wrote:
    > 1. Do IDOC Adapter has both Sender / Receiver IDOC ( my assumption is it has only receiver Adapter )
    > Nissi
    We have IDoc Adapter for sender / receiver side, When we are working on ABAP Stack systems like Integration between ECC System to PI System, we do not need to use IDoc Sender side.
    But when we are using 3rd party system (JAVA Based some systems using IDoc) for integration with PI & sender communication is using IDoc, at that time we will use sender side IDoc Communication Channel.
    >
    NissiRaj wrote:
    > 2. Do HTTP Adapter has both Sender / Receiver IDOC ( my assumption is it has only receiver Adapter )
    > Nissi
    Same thing is for HTTP Adapter for proxies from ECC System to PI System, we do not need sender HTTP Communication Channel Setting.
    But for 3rd party systems using HTTP Communication, we need sender side HTTP Communication Channel.

Maybe you are looking for