Xi payload as attachments in http adapter

hi,
we have the requirement to send comma separated text file as attachemnt over http. is it possible to send and receive payload as attachments in http/s adapter in XI? if yes, how?
regards,
Rashmi

dont think HTTP supports attachment.....at least in sender mode.....correct me if worng....
For some reading: http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
From above link:
The plain HTTP adapter only evaluates the main payload of a received XML message. Additional attachments are ignored and not forwarded.
Regards,
Abhishek.
Edited by: abhishek salvi on Jul 3, 2009 3:15 PM

Similar Messages

  • 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

  • How to send attachments using HTTP Binding Adapter?

    How to send attachments using HTTP Binding Adapter in Jdeveloper?
    Requirement: I need to send attachments to a system which can communicate with the middleware using https only.
    Kindly suggest..
    Edited by: Richa Juneja on Jan 28, 2013 4:03 AM

    Hi,
    Following links may help U
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
    to know the basics about soap adapter u cn check out this link
    /people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap
    to get in detail about the attachments chk out this link
    hi i am unable to attach an attachment in File to mail scenario
    Regards
    Pullarao

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

    hey 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

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

  • XI message with Attachment using Http Adapter

    Hi ,
    We are using XI/PI 7.0 with Sp09 and Sender Application is SRM and Receiver is Ariba MarketPlace.
    We are trying to Send PO with Attachments like Word, PDF etc from SRM to Ariba using Https adapter and from SRM we are using ABAP Proxy. When I did the testing with out any special config, I was able to send the attachments (I can see word doc as part of the payload-attachment) to XI from SRM but this attachment is not going through https adapter from XI to Ariba?
    I have read some posts on this but I could not find the answer for my situation. One of the solution is that we can use SOAP adapter but we don't want to use Soap for some reasons.
    Please give your thoughts.
    Thanks in Advance.
    -Laxman

    > Thanks for your replies, I am little confused, based
    > on your references http can't support attachments.
    That is true.
    > Also sap help link says Http adapter doesn't support
    > attachments and XI adapter also doesn't support.
    That is not true. XI adapter (in fact we do not talk of an adapter) supports attachments.
    > It means Proxy also shouldn't support because proxy is
    > nothing but XI adapter.
    This is true, ABAP or Java Proxy are like XI adapter. Therefore it supports attachments.
    > But When I send PO with attachments from SRM using
    > Proxy connection I was able to pass through XI. So
    > how proxy was able to send the attachments and this
    > is contradicts to the help documentation.
    The online help is wrong.
    > We don't want to use SOAP because we are already
    > using https adapter and this scenario is in
    > production also if we go with SOAP then we have to
    > re-import the digital certificate in Java Engine for
    > SSL. Attachments are the new enhancement only.  
    I do not see another solution besides using SOAP adapter in so-called non-SOAP mode. Yes you have to reimport the certificates to J2EE stack.
    Regards
    Stefan

  • 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

  • ASMA in HTTP adapter

    Hello All,
    I'm want to use the ASMA in http adapters.
    I tried in file adapters and  got the expected result but in HTTP couldn't get it.
    In file adapter:
    I have selected the ASMA option in sender communication channel and selected the filename so that filename is included in message header.
    When selected the ASMA in receiver communication channel and selected the filename so that the filename which is added in message header is getting reflected here by overwriting the constant file name given in filename schema.
    In HTTP adapter:
    In sender communication channel i'm selecting the ASMA. But i have doubt in using the
    HTTP Header Fields .
    Field 1, …, 6: (technical name: HeaderFieldOne, .... HeaderFieldSix)
    URL Parameters
    Parameter 1, …, 6: (technical name: URLParamOne, …, URLParamSix)
    here url parameters implies what? is it the optional parameters like msgguid, party....etc other than mandatory parameters namespace,interface,senderservice?
    What is this HTTP fields...? is it any additional fields other than above optional and mandatory fields, which are coming in HTTP reuest url.
    I have used the HTTP client tool to send payload to my PI system. I sent the xml payload to pi by providing the mandatory fields. it's fine. when i gave the optional parameters in the input filed, automatically it is including in xi message header(without selecting the option URL parameters).
    Also i have added two input fields  and entered value in them, they got added in fields in URL. But they are not reflecting in messgae header inspite of selecting HTTP Header Fields and gave that input field.
    Please give detail description. I have checked in several blogs but didn't get enough info.
    Please help me.
    Regards,
    Ch.Venkat

    Hi Venkat,
    Please refer the SAP Note 1386621 - Plain HTTP Adapter: Dynamic parameter.
    here url parameters implies what? is it the optional parameters like msgguid, party....etc other than mandatory parameters namespace,interface,senderservice?
    URL parameter is to create or retrieve URL. for receiver HTTP adapter you can set this parameter on UDF and create dynamic HTTP url at run time.
    What is this HTTP fields...? is it any additional fields other than above optional and mandatory fields, which are coming in HTTP reuest url.
    HTTP fileds is to create or retrieve HTTP header values (If present).
    Please check the SAP note for more detail.
    regards,
    Harish

  • How to send XML file into XI using sender HTTP adapter

    I am using HTTP sender adapter to post the XML file into XI. I tried to form the URL by using the following String query , but I am unable to execute file.
    String urlString = "http://<servername:portno>/sap/xi/adapter_plain?namespace=<namespace>&interface=<interface name>&service=<service name>&party=&agency=&scheme=&QOS=BE&sap-user=xiappluser&sap-password=satyam&sap-client=100&sap-language=EN";
    How can I execute xml file by using HTTP sender adapter.
    Any one with better suggestions, about this idea?
    Thanks in advance for all.
    Ram Raj

    Hi
    Just use the following parameter to send xml file using HTTP adapter.
    "http://xiserver:8000/sap/xi/adapter_plain?namespace="senderNamespace"&interface=senderinterface&service=sender service";
    "&party=sender party"&agency=&scheme=&QOS=BE&sap-user=userid &sap-password=password&sap-client=100&sap-language=D";
    with the help of this you are able to point out which interface you would like to use.
    And in payload pass the xml.
    and thats it
    carry on
    Cheers
    Regards
    Piyush

  • HTTP adapter - change encoding from UTF-8 to ISO-8859-1

    Hi,
    I am trying to change the encoding used by the HTTP sender adapter in a scenario.
    However, when I enter ISO-8859-1 in the XML Code under XI Payload Manipulation on the comms channel it has no effect - the paylad still shows as UTF-8 in SXI_MONITOR.
    Am I missing a step or entering the field incorrectly ??
    Thanks
    Colin.

    Hi,
    From help
    Enhancing the Payload
    Some external systems, for example, Web servers in marketplaces, can only process data if it is sent as an HTML form using HTTP.
    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. Therefore, there is a particular code method that separates form fields and their data from each other. This code method uses the following rules:
         Individual form elements, including their data, are separated from each other by the character &.
         The name and data of a form element are separated from each other by an equals sign (=).
         Blanks in the entered data (for example, in multiple words) are replaced by a plus sign (+).
        All characters with the (enhanced) ASCII values 128 to 255 (hexadecimal 80 to FF) are transcribed using a hexadecimal sequence, beginning with a percentage sign (%) followed by the hexadecimal value of the character (for example, the German umlaut ö in the character set ISO-8859-1 is transcribed as %F6).
       All characters that occur in these rules as control characters (&, +, =, and %) are also transcribed hexadecimally in the same way as high value ASCII characters
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    Regards
    Chilla

  • HTTP adapter - 500 Internal server error

    Hi Experts,
    I have configured a B2B scenarion in which i am using HTTP receiver adapter to send data to vendor.I have checked my configuration every thing is fine but i ended up with the error as below.
    SXMB_MONI:
    PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER
    HTTP server code 500 reason Internal Server Error explanation Internal Server Error
    And the queue status is saying red in sxmb_moni also the error in SMQ2 is as follows
    XI Error ATTRIBUTE_SERVER.PLAINHTTP_ADAPTER: Queue
    I have implemented the notes 804124,807000 but no luck.Also i have restarted the J2EE server and done the soft shutdown but no use.
    If i look into th queue scheduler in SMQR its in INACTIVE.
    Any hint will be helpful.
    Thank You

    Hi
    The Plain HTTP adapter is not part of the adapter framework, so you cannot see anything in the adapter monitor.
    Log on to the server, where the XI is installed. Can you ping the receiver host? Can you put the URL of the receiver as browser address, does that work?
    HTTP 500 can be any problem at receiver side. Are you sure, that the payload fits to the receiver requirements?
    Please refer this thread answered by Stefan Grube 
    Plain HTTP adapter error
    Thanks
    Abhishek Mahajan
    ***Please reward points in case helpful***

  • Java HTTP adapter in PI 7.3?

    Hi Experts,
    Anyone adivse me how to implement the java HTTP to File scenario via PI?especially explain me the HTTP sender side and how to test as well.
    thanks in advance.

    HTTP adapter now comes in AAE in Pi 7.3.  Except that there is no big difference between PI 7.3 and lower versions. You can go to component monitoring --> adapter engine --> test message and paste your payload and test. You are going to test in adapter engine level instead of abap stack (integration engine).

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

  • HTTP Adapter and Message confirm

    Hi Experts,
    I don't understand an aspect of communication with SAP PI.
    I have a External System that comunicates with SAP ECC via SAP PI HTTP Adapter.
    When SAP ECC sends an MATMAS message to External System like payload of HTTP message, How Does External System confirm MATMAS is recived?
    In R/3 System there are methods to commit, roll back transaction, there's a similar mechanism with HTTP Adapter?
    thanks.
    Marco Genova

    hi,
    >>How Does External System confirm MATMAS is recived?
    it does not - http adapter does no support acknowledgments
    the only way would be to receive a message back from http to PI
    with some status info and for example on the basis of that
    change the status of the outbound matmas idoc to - received successfully
    but there is no confirmation with HTTP adapter that the message was received
    Regards,
    Michal Krawczyk

  • HTTP Adapter and DUNS scheme - possible bug ?

    Hi Folks,
    I am using the HTTP adapter for posting an XML message which is then redirected towards IDOC adapter ... nothing special here ...
    I am using the scheme 'DUNS' and agency '016' to pass along the partner identification when calling the HTTP adapter ...
    The HTTP adapter tries to match the given partner information and finds the proper XI Party ... BUT ... it overwrites the DUNS number value with the XI Party but leaves the agency and scheme pointing to DUNS ...
    An example
    Going IN:
    Party = 12345789, Agency = 016, Scheme = DUNS
    After conversion
    Party = MyPartner, Agency = 016, Scheme = DUNS
    So the receiver determination works fine and then we go to the IDOC adapter when stuff goes into error as it cannot convert the given sender information into a proper IDOC partner ...
    The whole thing works fine when I am passing along
    Party = MyPartner, Agency = http://sap.com ..., Scheme = XIParty
    then the IDOC is created and send towards SAP ...
    I am thinking that the Sender determination in the HTTP adapter goes wrong as the combination
    Party = MyPartner, Agency = 016, Scheme = DUNS
    is clearly wrong ...  Furthermore I have lost my original DUNS number ( so it cannot be used for example in mappings, etc ... )
    Anyone had similar issues or problems with this ?
    Regards,
    Steven

    > I am using the scheme 'DUNS' and agency '016' to pass
    > along the partner identification when calling the
    > HTTP adapter ...
    > The HTTP adapter tries to match the given partner
    > information and finds the proper XI Party ... BUT ...
    > it overwrites the DUNS number value with the XI Party
    > but leaves the agency and scheme pointing to DUNS
    Apply note 954645. This should solve the issue.
    > Furthermore I have lost my
    > original DUNS number ( so it cannot be used for
    > example in mappings, etc ... )
    The DUNS must be provided in the message payload as well.
    Usually the party normalization is done by the adapters in a very specific way. So the RNIF adapter takes the DUNS out of the message payload of the RosettaNet message and does the party normalization with that DUNS.
    In the HTTP adapter there is no need for a party normalization as you provide a URL for the HTTP client where you can add the party in the query string.
    Regards
    Stefan

Maybe you are looking for

  • Can't access object created in the view from controller

    Hi In the view, I create a simple HTML control with a DIV tag.I need to access the DIV tag from the view.  The function this.getView().byId() returns nothing. view createContent : function(oController) {                         var aControls = [];   

  • How to control swf file loaded in flash builder project?

    Condition : 1. I have a swf file presentation. 2. A flex mobile project using flash builder 4.6 with its default SDK. What i want : 1. Include those swf file into my flex mobile project and interact with those swf like i run it on flash player for PC

  • Only last 2 days of facebook news feed in Social A...

    I'm only getting the last 2 days of my facebook news feed in the Social App.  It seems to happen in fMobi as well.  Is this a Nokia thing or possibly Facebook restriction...??? Any ideas???

  • To kill session in one schema from another schema

    Hi Team, I got a problem like a table from one of my schema has been locked. I am getting 'ORA-00054: resource busy and acquire with NOWAIT specified' error when trying to delete rows from that table or even when trying to truncate that table. Let th

  • Error in Web Location path when importing Site Studio Backup Archives

    Hi, Webcenter Content version 11.1.1.5.0 running on Linux. I have successfully (according to the archive logs) imported two Site Studio Backup Archives: Ravenna Hosting and Site Studio Samples. I've not had a problem before with these archive files (