HTTP to File Scenario using URL parameters.

Hi,
I am working on a HTTP to file scenario where POST method is hirring the XI server with authentication parameters.
CAD application is trying to hot our XI server using POST Method and the application does not have ability to send XML payload to XI server directly.
So we are simply receiving parameters in plain text in inbound payload.
I need to convert this payload to XML format and am tring to work this out using dynamic configuration.
But It is throwing parser error.
BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 73, 75, 62(:main:, row:1, col:3) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:770)
Here I have to use HTTP sender adapter.
Please suggest how can I acheive this.??
Regards,
Sachi

Hi Mark and Maciej,
The Inbpound payload we are reciving is of the kind:
sap-user=<UserID>&sap-password=<Pwd>&Param1=Sachi&submit=submit
As in HTML we ar using hidden parameters to given authentication details and submmit button to hit XI serrver.
Can you please help me to out how can I add prolog and epilog.
How can I change my payload to XML format.
Regards,
Sachi

Similar Messages

  • HTTP to RFC scenario with URL parameters

    Hi All,
    I am working on HTTP to RFC scenario using an interface in SAP PI.
    The data will be pushed from API link via 4 URL parameters viz. UID, mobno, phone1, phone2.
    My query is what will be the UDF code for the same.
    Also how to design & configure the same scenario in SAP PI, since I'm working on this scenario for the first time.
    on SAP end, what will be more comfortable to have RFC or Proxy?
    Thanks & Regards,
    Amit S Patil

    Hi All,
    In case of RFC to HTTP scenario wherein we have to pass URL parameters as the request instead of XML/xsd(at the receiver end), there is no need of .xsd file to be imported in SAP PI as target end in request message mapping.
    Similarly in reverse case(HTTP to RFC scenario), if some data will be pushed from external system through URL parameters instead of XML/xsd(at the sender end), how the design & configuration is done in SAP PI?
    Is this reverse scenario possible without any XML/xsd scema at the sender end?
    Please suggest me at the earliest?
    Thanks & Regards,
    Amit S Patil

  • Triggering an HTTP to file scenario using UDF

    Hi,
    Is it possible to trigger an http to file scenario from  UDF? If it is possible can anyone tell me how it can be acheived.
    regards,
    Meenakshi

    hi,
    can u tell me how this could be possible?
    my requirements are such that we are collecting some data in UDF and creating an xml. this xml is sent to another scenario using HTTP adapter.  this adapter need to be triggered from the UDF.
    please let me know how this can be done.
    regards,
    meenakshi

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

    Some 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

  • Error in HTTP to file scenario

    Hey guys
    we have a HTTP to file scenario in which our client has to send the Invoices over HTTP in XML format,when we test the scenario from within our landscape we are getting the output file correctly but when we test from the client site,we get an error message saying that the file has missing semi colon (,the URL which we are getting from the local HTTP client is something like this
    http://scosap005.sap.com:8001/sap/xi/adapter_plain?namespace=urn%3ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=&sap-password=&sap-client=100&sap-language=EN
    and the one which we are getting from the client is
    http://xx.xxx.xx.xx:8001/sap/xi/adapter_plain?namespace=urn%3ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=&sap-password=&sap-client=100&sap-language=EN
    why am i getting this error?
    thanx
    ahmad

    Hey guys
    i m having a very strange problem with my scenario,we are doing a HTTP to file scenario,now as both the sender and receiver have same structure i havent done any mapping,client is sending XML over HTTP from another location which is not in our landscape,he is using web methods Business connector .when he send us the XML message to our XI server some stuffs are added at the top of the payload,its something like this
    namespace=urn%253ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=nov_test&sap-password=xi_test&sap-client=100&sap-language=EN&
    these are actually the parameters which are used in the URL to send the XML to us.but because of this i m unable to process the XML .
    so my XML looks something like this
    namespace=urn%253ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=nov_test&sap-password=xi_test&sap-client=100&sap-language=EN&
    <?xml version="1.0" encoding="UTF-8"?>
    <Invoice transactionPurposeIndicator="Original">
         <InvoiceProperties>
              <InvoiceNumber>0094372098</InvoiceNumber>
              <InvoiceDate>20070319</InvoiceDate>
              <VendorNumber>VENDOR #</VendorNumber>
    but when i try this scenario from within our landscape it works fine and nothing is added on top of XML.
    they are sayin that nothin extra is being added from thr side and their XML does not have the extra addition on top.
    how should i solve dis problem?
    its urgent
    thanx
    ahmad

  • Testing HTTP to File scenario

    Hey guys
    i m testing a HTTP to file scenario for one of our clients and the test seems to be working fine when i test it in RWB under Integration Engine,MONI is chequered as well as i m getting the file on receiver side too.
    but when i test it by making use of the HTTP client which i got from the followin link
    /message/266750#266750 [original link is broken]
    it gives and error saying http-status 404 not found.
    the URL which is getting created is
    http://scosap005.sap.com:50100/sap/xi/adapter_plain?namespace=urn%3ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=&sap-password=&sap-client=100&sap-language=EN
    is this the same URL our client is gonna use to post the message to our XI server?
    also why am i getting error in the second testing?
    thanx
    ahmad

    Hi,
    1) Did you maintain Client, userid, password, and lang information in SICF transaction -> sap/xi/engine ? Double click on service and check whether you have entered correct information.
    2)Access the trace file and search for traces with severity ERROR, WARNING or stack traces.
    If we do not find an error in the log file or the error message does not explain the problem sufficiently, access the default Trace. The default trace file contains detailed messages for developers. Extract the relevant trace information e.g. using the time stamp or the message ID.
    If this does not explain the problem in more detail, increase the trace level and reproduce the problem. Then restart message processing using the message display tool. Mark the message and select repeat.
    3)Check the Note-803145
    4) 404 is an HTTP response code that indicates that the resource in question could not be found. Usually this is due to an incorrect URL check all URLs.
    Regards
    Agasthuri Doss

  • Error in the filename response vaule when doing Http to file scenario

    Hi,
       I am doing Http to File Scenario. I am trying to retrieve the source filename in the structure field "filename". I have defined a UDF for that and It worked well for file to file scenario.
    Now for Http to file scenario if i want to get the filename, I am getting "null" value in the response.
    I am using Http Client test tool for testing the scenario.
    My output is
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:FileTarget_MT xmlns:ns0="http://soacity.net/HTTPtoFile">
      <MsgId>DD74CE4AE01AC6F19C0900199912BCA0</MsgId>
      <filename>nullnull</filename>
      <Body>hello world.</Body>
      </ns0:FileTarget_MT>
    I got nullnull because i am trying to retrieve Source directory and filename.
    Desired Out put
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:FileTarget_MT xmlns:ns0="http://soacity.net/HTTPtoFile">
      <MsgId>DD74CE4AE01AC6F19C0900199912BCA0</MsgId>
      <filename>/FileServer/Sender/test.xml</filename>
      <Body>hello world.</Body>
      </ns0:FileTarget_MT>
    For File receiver i am using FTP Parameters.
    I got the correct output for file to file scenario because i had placed the file in the source directory, so that XI can read the source directory and file name. but now for Http to file scenario i am using the Http client tool, where in i have an option to paste the payload directly or upload the file.
    Any Inputs would be appreciated.
    Regards,
    Varun

    Hi,
    I Have defined the structure as
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Source_FILE xmlns:ns0="http://soacity.net/HTTPtoFile">
       <Message>
          <Id/>
          <Head>
             <Id/>
             <Filename/>
          </Head>
          <Body/>
       </Message>
    </ns0:MT_Source_FILE>
    My requirement is
    "The HTTP adapter would recieve a HTTP document. It has two main tags: head and body; there are two options : either specify the filename in <head> and data in <body> or you send the full message as payload into <body><message>.... </message></body>"
    So How do I proceed in Defining the objects.
    Regards,
    Varun

  • Http to File Scenario

    Hi,
    I am doing Http to File Scenario i.e, Receive message via HTTP, Process it and write the file in the target.
    1. As Http is the sender, I need not create Sender Communication Channel and Sender Agreement. But While Creating other objects in the ID, we need to mention Sender service, so what shd i mention there.
    2. Can we do Asynchronous scenarios for Http to file Scenarios, because I have done Http to RFC scenario before.
    3. When I use the HTTP Client tool to test my scenario, I upload a file or paste an xml payload and test, then will the file be created in the target directory, as Receiver is the File Adapter.
    4. Do I need to create any Technical and Business System for HTTP sender in SLD, or should I create a Business Service in ID.
    Regards,
    Varun

    Hi,
    1. As Http is the sender, I need not create Sender Communication Channel and Sender Agreement. But While Creating other objects in the ID, we need to mention Sender service, so what shd i mention there.
    ---> You need to use the Business Service on sender side. Similar to HTTP --RFc scenario, It is required to identify the Sender side service.
    2. Can we do Asynchronous scenarios for Http to file Scenarios, because I have done Http to RFC scenario before.
    --> Yes You can have the asynchronous scenario. with HTTP to file
    3. When I use the HTTP Client tool to test my scenario, I upload a file or paste an xml payload and test, then will the file be created in the target directory, as Receiver is the File Adapter.
    --> Yes it will create the target file. If youhave applied any File Content Conversion then you can align the XML format to flat file format also....
    4. Do I need to create any Technical and Business System for HTTP sender in SLD, or should I create a Business Service in ID.
    ---> Its better if you create the Business Service. Generally for SAP landscape Business system is used..and here in your scenario sender is HTTP and there is no need of Business system...Go for Business Service..
    Thanks
    Swarup
    Edited by: Swarup Sawant on Aug 12, 2008 10:36 AM

  • File to File scenario using Transport Protocol FTP  Problem

    Hi,
    my scenario is a file to file scenario using Transport Protocol FTP
    there are 3 systems involved
    a. computer 1 ( My system-source)
    b. computer 2 (XI server)
    c. computer 3 (Target system)
    I want XI to pick file from computer 1 and post it to computer 3
    I am logging on to XI server from computer 1(thro SAP GUI),
    <u><b>Sender communication  channel :</b></u>
    Transport protocol:FTP
    Messsage protocol: file
    <u><b>In FTP connection Parameters:</b></u>
    Server: computer 1 IP address
    port:21
    User name and PW---> I have given computer 1 Username and password.
    Connection mode: permanently
    Transfer mode: Binary
    Folder: C:\ftproot\output
    filename : given
    <u><b>In Receiver Communication Channel</b></u>
    Transport protocol:FTP
    Message protocol: file
    <u><b>In FTP connection Parameters:</b></u>
    Server: computer 3 IP address
    port:21
    User name and PW---> I have given computer 3 Username and password.
    Connection mode: permanently
    Transfer mode: Binary
    Put File: Use Temporary File
    Folder:
    eccserver\saploc\tmp
    filename scheme: given
    When I activate the scenario file is not getting picked from the source
    In Adapter Framework: Message says up and running No message processing now
    How to check FTP server is up and running on computer 1 (source system)and Computer 2 (XI server)?
    What could be the problem ?
    Thanks
    dushanth

    Hi
    Consider that I dont have FTP installed on my computer. According to this blog
    /people/shabarish.vijayakumar/blog/2006/08/01/along-came-a-file-adapter-mr-ftp-and-rest-of-the-gang
    I have configured.
    In sender comm channel I have given Ipaddress of computer 1 (which has a file to be picked)
    In Receiver Comm channel I have given IP address of computer 3 (in which file to be posted)
    and computer 2 is the XI server
    Computer 1 has FTP installed
    1. XI server should have FTP installed or not ? IF yes is it FTP client  or FTP server   or Guild FTP (according to the blog is enough)
    2. Computer 3 should have FTP installed or not ?
    Please help me I am really confused.
    Thanks
    dushanth

  • HTTP to File Scenario: execute Test Tool (html) but any received message?

    Hi all,
    I have configured the HTTP to File scenario in SAP XI 7.0. When i execute the Test Tool (HTTP_Client_Adapter.html), i don't see any message in the XI Server. I don't know the Test Tool which i used for the test work correctly, because when i clicked on 'Send' button, i don't get any message in the XI Server?
    The Configuration Scenario is OK when executing the Configuration Test in ID.
    Could you please tell me how i can know the Test Tool is execute correctly?
    The Test Tool which i used in the link below:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Thanks a lot in advance,
    Vinh Vo

    HI,
    In XI 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 Receiver Determination ID) to fill in the details.
    You can refer this:
    /message/266750#266750 [original link is broken]

  • Http to file scenario generate "Acknowledgement not possible"?

    Hi.
    On PI7.1 we built a http to file scenario and used the RWB "Test message" functionality to test the interface.
    Now we get a "Acknowledgement not possible" in sxmb_moni. How can we switch this off.
    thanks

    Hi
    while sending request use either EO or EOIO for Asynch.
    EO and EOIO, processing occurs asynchronously and the client only receives a confirmation of receipt with HTTP status u2018200u2019.
    Read this
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm

  • Warning message in MONI for HTTP to File scenario

    Hey guys
    i have a HTTP to file scenario wherein i m getting file from an extrenal system in XML format outside our landscape,file is coming in properly and its being delivered as desired as well,but everytime i check my payload in moni ,an information message pops up saying that the file may be unsafe,do you want to display,save or cancel?
    even though i get correct payload and the file is also coming from the designated IP and port,why do i keep getting this pop up?
    thanx
    ahmad

    Hi Ahmad,
    Put a break point at line 1,311 in progam RSXMB_DISPLAY_MSG_VERS_NEW_F02 in the form READ_AND_DISPLAY_DOCU2....
    That is where you are getting this popup from...
    Thanks,
    Renjith

  • Could any one provide me with the links of file to file scenario using BPM

    Could any one provide me with the links of file to file scenario using BPM

    Hi,
    omit RFC part
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    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>

  • Mapping Issue(UDF) in HTTP-RFC scenario with URL parameters - Urgent

    Hi All,
    I am working out an HTTP-RFC scenarion wherein there is no xml data to be pushed.
    The data will be coming in the url parameters.
    Also we'll exposing our url(created by SAP PI) to 3rd party system to push data in terms of url parameters.
    So how do I do mapping? Also what UDF code will contain?
    Since I'm working on this kind of scenario for the first time, I need every help from you guys.
    Thanks & Regards,
    Amit Patil

    Hi All,
    I have worked on RFC to HTTP scenario wherein URL have to be passed. I used UDF in d same.
    But now the case is reverse, how shall I move ahead with what source message type(in the mapping) and how to do mapping.
    What kind of UDF will be useful here?
    I am completely blank in this kind of scenario where 3rd party system is going to pass four parameters on URL link craeted by us since its an HTTP to RFC scenario.
    Please guys help me! Give me some inputs.
    Thanks,
    Amit Patil

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

Maybe you are looking for

  • Remote desktop not working on mountain lion

    My ARD does not work on Mountain Lion. The software opens but all I get is the menu at the top, and my only working option is to quit. I spoke to Apple support and they suggest (as they usually do) to reinstall the whole operating system, but I can't

  • Payment made to all vendors

    Hi Friends, For a selected time interval I want to display the order and non order related payments made to all commercial vendors from SRM and ECC. For this the Document types are: RE KR KG TC How can I extract this data from SRM and ECC and from wh

  • Safari, itunes, skype, system preferences crashing

    Hello, almost all of my applications (except firefox tahnkfully, so i can get this post up) seem to be crashing upon launch or freezing, forcing me to force quit them. Any ideas? System preferences: Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception

  • Schedule report (log file)

    hi, Could anyone give me idea when we schedule BO jobs(reports), any log file is created? Regards

  • HT4436 How do I Unsubcribe from iCloud account

    Accidentally clicked on iCloud when doing back up (and setup) on new iphone (3G) - how do I know if I have "suscribed" to icloud, and, if I have, how do I unsubscribe, as I don't require it.?? Thanks! VJ