[HTTP Sender]How to send different XML using static URL

Hi all,
I have a problem, my legacy system send XML messages to SAP XI by HTTP, I know that I need to use HTTP Sender adapter, the problem is that legacy system support only a static URL. I have more than one interface, how could I fix this problem?
Can I send the XML message to SAP XI without define INTERFACE on URL? How can I handle this?
Thank in advance,
Daniel Torres

Hi Srinivas,
The legacy system is a java application, that send XML messages to SAP XI server using HTTP protocol. So I just ask to legacy system team to change the application to add <b>server</b>, <b>namespace</b> and <b>interface</b> attributes to the URL querystring.
So for each XML message you should especify mesage interface that it belongs to. You do it by especifying on URL as message atribute for exemple:
HTTP://[SAPXISERVER]:80[SYSTEM ID]/sap/xi/adapter_plain?service=[BS SERVICE]&namespace=[MESSAGE INTERFACE NAMESPACE]&interface=[MESSAGE INTERFACE]
So if you have for example information belows:
<b>MESSAGE INTERFACE</b> = MI_MYMESSAGEINTERFACE_IB
<b>MESSAGE INTERFACE NAMESPACE</b> = urn:teste:mymessageinterface
<b>SERVICE</b> = MY_LEGACY
<b>SYSTEM ID</b> = 10
<b>SAPXISERVER</b> = MYSAPXI
Your url should looks like: http://MYSAPXI:8010/sap/xi/apadter_plain?service=MY_LEGACY&namespace=urn:teste:mymessageinterface &interface=MI_MYMESSAGEINTERFACE_IB
You should have a different message interface for each XML that you send to SAP XI.
Message was edited by:
        Daniel Torres
Message was edited by:
        Daniel Torres

Similar Messages

  • How to send different XML using static URL

    Hi Guys,
    I have the problem, my legacy system sends xml messages to XI by HTTP, my legacy system support only a static url http://host:8000/sap/xi/adapter_plain
    I have more than one interface, how did u fix this problem. I need to send xml to XI with out defining INTERFCAE on URL.
    can anybody explain how to handle this issue, help would be really appreciated.
    Thanks,
    k s reddy

    You have two options:
    1. use enhanced receiver determination (but for that, you'll have to use java mapping from input message to receivers), it will only work from 3.0 SP16 / 7.0 SP7;
    2. use a generic interface, where you define all possible message type tags with occurrence 0...1.
    Regards,
    Henrique.

  • How to emabed BI Publisher report  to a different application using GO URL

    Hi all,
    How to emabed BI Publisher report to a different application using GO URL.
    I put the BI Publisher report in dashboard and create a go url but the problem is it is showing top header and all dashboard names present in my dashboard.
    I want to show only report.
    If we do a GO url of answers requst it shows only report . Same way can we do for BI publisher request.
    Thanks

    10g or 11g?
    for any you can get the link from BIP report properties. and use that link

  • How to generate Webservices.xml using tool in Sun One App Server?

    How to generate Webservices.xml using tool in Sun One App Server?

    Hi,
    The build.xml file should be in a directory from where
    you are running the asant command.
    To resolve the common.xml file not found error,
    open your build.xml and check from which location the common.xml file is incuded.
    In the sample application it is four directories above
    the directory where build.xml is located.
    You can copy the common.xml in the current directory and then change the following in your build.xml
    <!ENTITY include SYSTEM "../../../../common.xml">
    to <!ENTITY include SYSTEM "common.xml">
    Hope this helps.
    Get back in case you have more issues

  • How do you pass XML as a URL param?

    How do you pass XML as a URL param?
    Thanks!

    I don't know why I wasn't thinking about this when I made my
    last post. If they're pasting some XML into a form, that's one
    thing. But if they need to send XML to your site from their own,
    you can setup a Coldfusion Component (CFC) as a Web Service to
    accept XML through a WSDL call.
    Check out the
    Coldfusion
    Developers Center for
    articles
    on creating web services

  • How to connect my ipad using static ip

    How to connect my ipad using static ip?
    Using Netgear Router.

    Go to Setting > General > Network > WiFi > Then tap the blue icon next to your network, from here you can setup a static IP on your internal network.

  • How to send/receive XML using JSP

    Hi,
    I'm new to all this JSP/XML stuff so apologies if this is trivial.
    I'm trying to send an XML file via HTTP POST using JSP. Anyone know how to do this?
    Once the XML has been sent, how do you use JSP to request the XML file? I've figured out how to parse it already.
    Also, is it possible to call xsql directly within JSP?
    Thanks!

    I'm trying to send an XML file via HTTP POST using JSP. Anyone know how to do this?The question is, does anybody understand what you mean by this. Let me take a guess. You want to upload an XML file to a server. If this guess is right, then the answer is don't use JSP to do that. JSP is for generating output to be sent to a client. Use a servlet to handle an upload. And you don't need to write it yourself, there are already several file-upload servlets available on the web.
    Second guess: you have a POST request that asks your server to send an XML file back to the client. If it's a static XML file you don't need a JSP or a servlet or anything, just let your web server handle it just like any other static file. If it's dynamically generated then there's an answer worth giving, but I doubt that this is your question. But if it is, let us know.

  • HTTP sender Adapter - XML parsing issue in SAP PI

    Dear All,
    We have a scenario where HTTP sends data to JDBC.
    We shared the URL with Sender application and they are trying to send the data to PI using URL.
    But when it comes to PI Integration Engine, we noticed the inbound payload in Plain text.
    Sender Application showed their logs and data they are sending is in XML format.
    Any pointers on this issue ? Do we need to do any settings from PI end?
    Regards,
    Srini

    Hi,
      Check the xml document having the code page UTF-8.
    Regards,
    Prakasu.M

  • How to Create an XML using Abap Objects

    Hi there,
    who has an example how to create an XML Document from an internal table using abap objects
    e.g. Class CL_XML_DOCUMENT_BASE ?
    any feedback is welcome.
    thanks
    Johann

    Hi Johann,
    You don't need a class to do the job if you are on a 6.10 or higher system. Use command CALL TRANSFORMATION to create an XML from an internal table.
    Regards,
    John.

  • How to Execute different classes using editplus

    Consider a program like this
    class abc
    public static void main(String args[])
    System.out.println("abc");
    class bbc
    public static void main(String args[])
    System.out.println("bbc");
    In this program there are two classes when i compile this code in editplus i wont get any error but if i want to execute only ABC class how to do that in editplus because in editplus we usually set the file name for JAVA execution
    But here it is different SO,how to execute different classes in a program which is saved with arbitary name in EDIT PLUS..

    Try reading an editplus FAQ or posting to an editplus forum or even searching through help in editplus.

  • XML: Using static & placeholder text inside element with children?

    Hi there
    I’m working with simple XML data with the following structure:
    Root
         Row
              Company_name
              Physical_address
              Phone
              Website
              Email_address
         Row
              Company_name
              Physical_address
              Phone
              Website
              Email_address
    etc.
    The row element will be repeated many times. In setting up my InDesign document I’d like to use static text within each Row element. What’s confusing me is where I should use the Row tag. I’d like my imported XML data to run as continuous text, thus:
    Company: placeholder text
    Address: placeholder text
    placeholder text
    placeholder text
    placeholder text
    Company: placeholder text
    Address: placeholder text
    placeholder text
    placeholder text
    placeholder text
    I tried setting it up like this, with the parent text frame given the Root tag:
    <Row>Company: <Company_name>placeholder text</Company_name>
    Address: <Physical_address>placeholder text</Physical_address>
    <Phone>placeholder text</Phone>
    <Website>placeholder text</Website>
    <Email_address>placeholder text</Email_address></Row>
    …but when I import my XML file I lose all my static text and each child element is indented more than its parent element. I would guess that by placing my static text within the Row tag it gets replaced when each Row element is imported, but where else would I place it? Do I have to create anchored text frames (tagged with Row) within the Root frame to hold each Row element?
    I’d appreciate any insights.
    Message was edited by: Graham vdR

    OK, I’ve figured out the first problem. I just needed to play around with the options in the dialogue that comes up when importing XML. Specifically, the “Do not import contents of whitespace-only elements” needs to be checked. I still don’t see why that should affect whether or not my static text stays in place.
    Now, my new question is this: It looks like all the child elements of a container element have to appear in the document in the same order in which they appear in the XML file. Is this right? If I swap my Email_address and Website tags around in my placeholder text, either the email address disappears or it appears at the end (depending on the options I select in the dialogue upon import). So if I want to change the order in which they appear I have to do so in the XML file as well?

  • How do I  generate XML using internal variables in a procedure

    I know there is a way to generate XML inside a procedure by querying the database such as
    SELECT XMLELEMENT("Emp",
    XMLFOREST(e.employee_id, e.last_name, e.salary))
    "Emp Element"
    FROM employees e WHERE employee_id = 204;
    Emp Element
    <Emp>
    <EMPLOYEE_ID>204</EMPLOYEE_ID>
    <LAST_NAME>Baer</LAST_NAME>
    <SALARY>10000</SALARY>
    </Emp>
    What I have unsuccessfully been trying to do is to basically do the same thing except using internal variables like
    DECLARE
    l_keytype CONTACTINFO.KEYTYPE%TYPE;
    l_keyvalue CONTACTINFO.KEYVALUE%TYPE;
    l_pricetag CONTACTINFO.PRICATEG%TYPE;
    l_xmlout CLOB;
    BEGIN
    l_keytype := '1';
    l_keyvalue := '3333';
    l_pricetag := '10';
    SELECT XMLELEMENT("ParamSet", .........................this is line 13
    XMLFOREST(l_keytype as "keytype", l_keyvalue as "keyvalue", l_pricetag as "pricetag"))
    "ParamSet Element"
    INTO l_xmlout FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('l_xmlout = ' || l_xmlout);
    end;
    What I'd like it to generate is
    <ParamSet>
    <KEYTYPE>1 </KEYTYPE>
    <KEYVALUE>3333</KEYVALUE>
    <PRICETAG>100</PRICETAG>
    </ParamSet>
    But what I get is a compile error
    Error report:
    ORA-06550: line 13, column 19: (line 13 is SELECT XMLELEMENT("ParamSet", )
    PL/SQL: ORA-00932: inconsistent datatypes: expected NUMBER got -
    ORA-06550: line 13, column 1:
    PL/SQL: SQL Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    Also, I've been told that one issue with XMLFOREST is that if the value is null it won't generate the XML for it. Not good. I will still need the XML even if it is empty. Please help.

    Darn, Marc beat me. Here was my answer showing an alternative for returning an XMLType, since that is what the query returns as he said.
    DECLARE
       l_keytype    VARCHAR2(5);
       l_keyvalue   VARCHAR2(5);
       l_pricetag   VARCHAR2(5);
       l_xmlout     CLOB;
       l_xmltype    XMLTYPE;
    BEGIN
       l_keytype := '1';
       l_keyvalue := '3333';
       l_pricetag := '10';
       SELECT XMLELEMENT("ParamSet",
                 XMLFOREST(l_keytype as "keytype",
                           l_keyvalue as "keyvalue",
                           l_pricetag as "pricetag")).getClobVal()
         INTO l_xmlout
         FROM DUAL;
       DBMS_OUTPUT.PUT_LINE('l_xmlout = ' || l_xmlout);
       SELECT XMLELEMENT("ParamSet",
                 XMLFOREST(l_keytype as "keytype",
                           l_keyvalue as "keyvalue",
                           l_pricetag as "pricetag"))
         INTO l_xmltype
         FROM DUAL;
       DBMS_OUTPUT.PUT_LINE('l_xmlout = ' || l_xmltype.getClobVal());
    end;Here is a link to Oracle's on-line documentation
    http://www.oracle.com/technetwork/indexes/documentation/index.html
    so that you can pick your version and search for XMLElement and XMLForest to see their difference as well as listening to us.

  • How to format generated XML using XMLELEMENT() my output is coming in a single line i want it to be in a XML format

    hi I am having problem in formatting XML file which I generated with xmlelement() when I execute it gives me putput in a single line
    is there any way that I got my output as a XML file HAS......

    That is expected behavior. PRETTY print(ing) is only needed for humans. XML Parsers don't need the XML to be pretty printed. If you open the XML file in a browser like Windows Explorer or Firefox, the browser will pretty print the output for you.
    In all, the "single line" output is done because of PERFORMANCE reasons (lack of unneeded end of line and CTRL line breaks etc)
    SELECT xmlelement("Employee Name", dummy) as "XML RESULT"
    FROM DUAL;
    <Employee Name>X</Employee Name>
    SELECT xmlelement("Employee Name", xmlelement("SurName", dummy)
                                     , xmlelement("LastName", dummy)
                     ) as "XML RESULT"
    FROM DUAL;
    <Employee Name><SurName>X</SurName><LastName>X</LastName></Employee Name>
    XMLSERIALIZE can pretty print the output if needed via INDENTation
    SELECT XMLSERIALIZE(CONTENT xmlelement("Employee Name", xmlelement("SurName", dummy), xmlelement("LastName", dummy)) as CLOB indent SIZE=1 )
    FROM DUAL;
    <Employee Name>
         <SurName>X</SurName>
         <LastName>X</LastName>
    </Employee Name>

  • Dynamic URL using HTTP sender

    Hi All,
    I am working on a HTTP-Proxy scenario wherin I have to use Dynamic URLs on the HTTP(sender) side.Can any one help me getting this done

    YOu cannot pick File using URL. There is only to possibilities with the help of which you can pick the file like:
    Reading or Writing file from XI directory. (NFS)
    Reading or Writing file from FTP Server. (FTP)
    You can mention any URL in File adapter and tell it to pick the file from particular URL.
    <b>Bottom line : The file adapter is use to read or write the file at the Operating System(OS) level.</b>. File adapter can also act as a FTP client means it can put
    or get the file from FTP server.
    Thanks
    Farooq.

  • How to process multiple messages through one url over https

    Hi,
    My scenario is HTTP to IDOC, and the vendor will send different messages through one url to SAP system.
    is there any way to achieve this?
    Thanks
    Jessica

    can the Vendor at least pass URL parameters ? Normally, when you have several messages interfaces, the HTTP sender system should distinguish them with the URL parameters (party, namespace, interface). By that, XI then knows how to handle those messages, and can start its receiver determination pipeline. See SAP Help for HTTP sender channel:
    Queries entering the plain HTTP adapter must have the following syntax:
    http://<hostname:port>/<path>?<query-string>
    The query string contains the following data:
    ●      Sender namespace ?namespace=<namespace>
    ●      Sender interface &interface=<interface>
    These details define the sender interface.
    ●      Sender service &service=<service>
    Specifies the sender service.
    ●      Sender party (optional) &party=<party>
    CSY

Maybe you are looking for

  • Is Adobe "Support" an contradiction in terms?

    I have recently (now a month ago) purchased an upgrade of my exisiting Acrobat Standard 8 to Professional 9.  It downloaded OK, but it would accept not my exisiting serial munber as valid (it is, and I didn't mistype it!). Will Adobe help - Short ans

  • Dbms_xmldom package results in ORA-31020

    Hi, I have the following procedure which compiles correct: CREATE OR REPLACE procedure vbk_selproc_doc is queryctx dbms_xmlquery.ctxtype; result varchar2(30000); header varchar2(1000); footer varchar2(1000); body varchar2(20000); line VARCHAR2(2000);

  • Recording iTunes into Logic Express

    Hi there, does anyone know if there is a way to use iTunes as a soundboard (playing sound effects) and rewire the audio into Logic? I produce a podcast and we'd like to use iTunes to play our theme music and sound effects live. Thanks Fausto Fernos F

  • Oracle Spatial LRS point X and Y.

    I’m having some problems with LRS points. Two tables: A and b. Table A contains valid LRS linestrings; table B (non spatial) is a list of points with stated eastings and northings columns that exist in close proximity to the linestrings. Points are a

  • JMenuBar is hidden by Canvas

    Hi, I have a class that extends JFrame, this has a JMenuBar set to it (set with setJMenuBar method of JFrame) and is displayed fine until i try to add a java.awt.Canvas object to the center of the JFrame(using a BorderLayout) . When this canvas has b