How XI  flow from XI to J2EE appl?

Hi all!
I have a secnario file->XI->J2EE appl.
I am using sender file adapter and HTTP Receiver adapter.
I placed XML file in D:\somedir of my machine, it is picking up well by XI, <b>all i want to know is how XI sends this XML file to my J2EE Appl.</b> Because my servlet should display the same XML file in browser. I deployed my J2EE appl on weblogic application server9.0 I am getting the following error:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource 'http://localhost:7001/Invoke/DisplayRes'.
These are params that i have given in my Receiver HTTP adapter:
Aadapter Type: HTTP
                   Receiver
Transport Protocol:  HTTP1.0
Message Protocol:    XI payload in HTTP body
Adapter Engine:      Integration Server
Addressing Type:     URL address
Target host:         localhost
Service Number:      7001(Port number of Weblogic appl server--where my J2EE appl is deployed).
Path     :  /Invoke/DisplayRes/
Authentication Type:Use Logon Data for SAP System
Content Type: text/xml
Username:   xiappluser
password:   xx
XML code:   UTF-8
This is my Servlet code:
public class DisplayRes extends HttpServlet {
     public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
     doPost(request,response);
     public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
     BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
     String inputLine;
     StringBuffer sBuf = new StringBuffer();
     PrintWriter out = response.getWriter();
     response.setContentType("text/xml");
     while ((inputLine = brin.readLine()) != null)
         sBuf.append(inputLine);
           out.println(sBuf.toString());
          brin.close();
         out.flush();
Where i went wrong please help me,
<i><b>NOTE: I want to know how XI sends XML file to my J2EE appl. I suppose my servlet receives it in request object.</b></i> If so can i use like:
response.setContentType("text/xml");
  String xmlFile = request.getParameter("myXMLFile");
  PrintWriter out = response.getWriter();
  out.write(xmlFile);
  out.flush();
  out.close();
All good answers are rewarded
Thanks a lot!

Hi all!
I have a secnario file->XI->J2EE appl.
I am using sender file adapter and HTTP Receiver adapter.
I placed XML file in D:\somedir of my machine, it is picking up well by XI, <b>all i want to know is how XI sends this XML file to my J2EE Appl.</b> Because my servlet should display the same XML file in browser. I deployed my J2EE appl on weblogic application server9.0 I am getting the following error:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource 'http://localhost:7001/Invoke/DisplayRes'.
These are params that i have given in my Receiver HTTP adapter:
Aadapter Type: HTTP
                   Receiver
Transport Protocol:  HTTP1.0
Message Protocol:    XI payload in HTTP body
Adapter Engine:      Integration Server
Addressing Type:     URL address
Target host:         localhost
Service Number:      7001(Port number of Weblogic appl server--where my J2EE appl is deployed).
Path     :  /Invoke/DisplayRes/
Authentication Type:Use Logon Data for SAP System
Content Type: text/xml
Username:   xiappluser
password:   xx
XML code:   UTF-8
This is my Servlet code:
public class DisplayRes extends HttpServlet {
     public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
     doPost(request,response);
     public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
     BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
     String inputLine;
     StringBuffer sBuf = new StringBuffer();
     PrintWriter out = response.getWriter();
     response.setContentType("text/xml");
     while ((inputLine = brin.readLine()) != null)
         sBuf.append(inputLine);
           out.println(sBuf.toString());
          brin.close();
         out.flush();
Where i went wrong please help me,
<i><b>NOTE: I want to know how XI sends XML file to my J2EE appl. I suppose my servlet receives it in request object.</b></i> If so can i use like:
response.setContentType("text/xml");
  String xmlFile = request.getParameter("myXMLFile");
  PrintWriter out = response.getWriter();
  out.write(xmlFile);
  out.flush();
  out.close();
All good answers are rewarded
Thanks a lot!

Similar Messages

  • HT202157 How can itv from my iPad to Apple TV I only get the sound and no picture

    How can itv from my iPad to Apple TV I only get the sound and no picture

    Welcome to the Apple Community.
    If you mean from the iTV player app, that's because iTV block AirPlay from working with their app.

  • How to verification from ipad to make apple id

    How to perification from ipad to make apple id

    What are you trying to do?  Verify your Apple ID from your iPad?  You can do that only if you have the email account used to verify the Apple ID set up on your iPad.
    B-rock

  • How do stream from your Mac to apple tv?  Want to watch a showtime anytime program on tv, How do stream from your Mac to apple tv?  Want to watch a showtime anytime program on tv

    I have apple tv and just got mountain lion.  It's says I can watch what's on my Mac on apple tv.  I would like to watch Dexter from showtime I can watch on Mac would love to stream it to tv if I can

    Figured it out!  How cool is this!
    there is an icon at the top of my laptop---a blue rectangle with a triangle pointing up...
    clicked it and was able to "turn on" air play! 
    We are set......

  • PCA - Value flow from other modules

    HI All,
    Can somebody explain how values flow from MM, SD, AR & AP into PCA. How are the account assignments derived and where value flow is done manually??
    Thanks, Ashok

    Hello
    The following data is transferred to Profit Center Accounting:
    ·        Revenues and sales input - through assignment of sales document items
    ·        Direct costs - through assignment of production orders and cost objects
    ·        Overhead costs - through assignment of account assignment objects from Overhead Cost Controlling (cost centers, orders etc.)
    FI
    When you post data directly in Financial Accounting, all primary data requires an additional assignment to a CO object.
    The assignment of this CO object (cost center, order, and so on) to a profit center ensures that the data is passed on to Profit Center Accounting. The profit center cannot, however, be entered directly when the FI posting is made.
    It is recommended that you define your cost elements so that the profit center field appears on the account assignment screen in Financial Accounting. This makes it possible for you to verify the assignment. You can do this in Customizing via the basis parameters for business transactions.
    SD
    The assignment of a sales order to a profit center is passed from the sales order to the delivery note and then on to the billing document. The change in stock if posted to the profit center upon goods issue.
    The following data is transferred from bills and debit and credit memos to Profit Center Accounting.
    Revenues
    Sales deductions (shipping, discounts etc.)
    Accruals (e.g. from rebate agreements)
    The profit center is assigned at the item level of the sales order. As a default, the system proposes the profit center of the material in the supplier plant. If you require a different assignment, you have the following choices:
    ·        You can define your own substitution rules for profit center determination
    ·        You can enter the profit center manually
    MM
    All the goods movements are created in Materials Management and, where necessary, reflected from a Profit Center Accounting point of view via a special account determination.
    The profit center to which the data should be posted depends on which materials and which CO objects are involved.
    The following MM activities are reflected in EC-PCA.
    Example: Goods Receipt for Purchase Orders
    Example: Goods Receipt for Production Orders
    Example: Invoice Receipt
    Example: Goods Issue for Delivery Note
    Example: Change in Material Prices/Revaluation
    Example: Inventory Differences
    CO
    All the secondary transfers between CO objects are selected and represented in the assigned profit centers.
    You can represent the data in Profit Center Accounting by reflecting the original document directly, since only credits and debits arise on the CO objects involved in the transfers.
    Also, The system can transfer the following activities from CO:
    Example: Order Settlement
    Example: Assessment/Distribution
    Example: Assessment to Profitability Analysis
    Example: Internal Cost Allocation
    Example: Transfer Postings
    Example: Calculation of Imputed Costs
    Example: Transfer Price Allocation Between Partial Projects
    Example: Settlement of Work in Process
    Example: Production Variances
    AA
    The system selects all the profit&#8209;related data from Investment Management and Asset Management from the creation, use and sale of assets.
    When a new asset is constructed, the data of the capital investment measure is transferred to the profit center of the order or project on which it is based.
    Imputed depreciation is transferred to the profit center to which the cost center of the asset is assigned. Likewise, profits or losses from the sale of assets are also transferred to the profit center of the cost center.
    In Customizing for Asset Management, one depreciation area is assigned to Controlling. The data of this depreciation area is transferred to Profit Center Accounting.
    Hope this gives an idea.
    Reg
    *Assign points if useful

  • How to display an XML file as it is in browser that XI sent to my J2EE appl

    Hi all!
    I have a scenario like File->XI->J2EE appl.
    The file is getting picked up from my machine by XI.
    Now XI should send that XML file to my J2EE appl.
    My servlet receives that XML and displays as it is in browser. But am getting some error like:
    XML page cannot be displayed.
    XML document must have a top level element. Error processing resource 'http://localhost:7001/Invoke/DisplayRes'.
    I deployed my .ear file on BEA Weblogic application server9.0
    I found no error when i tested in SXI_MONI and RWB->Message monitor as well.
    This is my servlet code:
    public class DisplayRes extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    doPost(request,response);
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
    String inputLine;
    StringBuffer sBuf = new StringBuffer();
    PrintWriter out = response.getWriter();
    response.setContentType("text/xml");
    while ((inputLine = brin.readLine()) != null)
    sBuf.append(inputLine);
    //out.setContentType("text/xml");
    //out.println(sBuf.toString());
    out.write(sBuf.toString());
    brin.close();
    out.flush();
    what went  wrong? Help me
    Thanks

    Hi
    Can anyone tell me how XI sends messages to applications like J2EE. In REceiver comm channel, I think we specify about the target system like J2EE appl.
    Aadapter Type: HTTP
                   Receiver
    Transport Protocol:  HTTP1.0
    Message Protocol:    XI payload in HTTP body
    Adapter Engine:      Integration Server
    Addressing Type:     URL address
    Target host:         localhost
    Service Number:      7001(Port number of Weblogic appl server--where my J2EE appl is deployed).
    Path     :  /Invoke/DisplayRes/
    Authentication Type:Use Logon Data for SAP System
    Content Type: text/xml
    Username:   xiappluser
    password:   xx
    XML code:   UTF-8
    I suppose XI sends msgs to http://localhost:7001/Invoke/DisplayRes/........
    in this example if am correct?
    Then I have given all tyhe necessary setting but my servlet is not able to display XML msg in browser?
    This is my servlet code:
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         PrintWriter out = response.getWriter();
         BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
         String inputLine;
         StringBuffer sBuf = new StringBuffer();
            response.setContentType("text/xml");
         while ((inputLine = brin.readLine()) != null)
             sBuf.append(inputLine);
             out.println("hi");            
                out.println(sBuf.toString());
             brin.close();
             out.flush();
    What went wrong?
    Help me, all helpful answers are highly rewarded.
    Thanks

  • How do I stop cover flow from rotating????

    How do I stop cover flow from rotating, I have switched it off but it still rotates.
    Phil

    Any idea why that is?
    Probably because it is a visually oriented feature that requires the full width of the screen to show the prior & next albums in the right/left "flow" at a useful resolution on the small screen. I suppose it could be reworked for a top/bottom flow but that would require something other than the rotation of the Nano itself to invoke. Apple's engineers probably thought that would be a needless complication.

  • How to connect text boxes so that text flows from different boxes to others, on same page or other pages?

    How do you connect Text Boxes?  So that text flows from one to the other, on same page or following pages?

    I am paying for Serif's Affinity Designer, which I don't need, so Serif has seed money for Affinity Publisher, which I am hoping will prove just as good as A.D.
    I like Serif's attitude to its customers.
    They acknowledge that their customers actually have jobs, and just want tools that don't stop them doing their work.
    Apple sells tools for Selfies, but I've yet to meet anyone who makes a living out of taking and distributing them.
    Peter

  • Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it?

    Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it? Because i've made lot of paid purchases using this apple id. In my game center account i have so many games data that i'd never installed.i wanna  stop sharing  friends and games with this xxx apple id in my old ipad version ios 4.2. and i can still keep using this apple id in my new ipad 3rd gen version ios 6 without sharing game and friends with this xxx apple id? and how to remove the games data that i never downloaded in my ipad but still registered at my game center account.i wanna keep using this apple id coz so many fav application i've purchased from this id. the answer as soon as possible if there is some one can help me to solve it.thank u for reading my question and very big thanks for anyone who  can give me a helpful answer.                 

    Why do you ask in the iWeb forum?

  • How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk

    How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk.i did try all the options but I can not find the phone number to call from Croatia,
    I can not change my Apple ID to the old mail (not possible!)
    The old mail don't accept the new password..
    I can not delete the Icloud all the time asking my the password of the old mail!
    I realy need help

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • My AppStore id is my apple id n password which is good when purchasing. But when I am updating from update option it ask for a password. The user id I see there is not mine, it's different. How do I change that to my apple Id? Please help me resolve .....

    My AppStore id is my apple id n password which is good when purchasing. But when I am updating from update option it ask for a password. The user id I see there is not mine, it's different. How do I change that to my apple Id? Please help me resolve  this issue. I have tried resetting it but nothing... Either I'm doing something wrong or....

    I believe the issue is with the Apple ID that was used to purchase the App. If you download an App that was purchased under a different Appple ID then all updates will also be linked to the original purchaser's Apple ID. Your Apple ID is the the same ID as your iTunes, iCloud, etc. Some folks use different ID for the different Apple sites. No need for that One ID for all Apple Sites, and if someone else buys an App using their ID and they(you) download that App onto your device and that App requires an update it will ask for the purchasers Apple ID. This happens a lot when folks sell their iPad or give it to someone else and leave some purchased(free) Apps on the iOS device. You cannot change the original ID the App was purchased under. A suggestion would be if someone else has an App that you like but do not want to pay for use their ID or in the future have them gift the App to you.

  • HT5100 I downloaded a video course from iTunes U to my iMac. How do I transfer the video to Apple TV to watch on my big screen TV?

    I downloaded a video course from iTunes U to my iMac. How do I transfer the video to Apple TV to watch on my big screen TV?

    I do something like that, and can confirm 20 feet won't be a problem. More than 30 or so might be.

  • HT1918 hee guys how do u delete a creditcard from your apple id? in the summer a friend of mine connected his own creditcard details to my apple id now i want to disconnect that again but i have no idea how? i just want my own apple id without a creditcar

    hee guys how do u delete a creditcard from your apple id? in the summer a friend of mine connected his own creditcard details to my apple id now i want to disconnect that again but i have no idea how? i just want my own apple id without a creditcard connected to it

    I own the movies and I want them to stay in my iTunes library basically forever.
    But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.
    iTunes prefs > Store > Show iTunes in the Cloud purchases.
    This will show all your iTunes purchases in your library with a cloud icon down arrow. Click the icon to redownload or click on Play to stream without downloading.
    Also see this , -> Download past purchases
    and techncially, you don't "own" the movie, You simply have a license to use it.
    Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.
    Actually, no it does not tell you that.
    FYI: You should keep copies of all yoru iTnue spurahses as the labels/movie studios/copyright owners can pull their product at anytime and it won't be available to redownload.
    Suggestions here -> http://www.apple.com/feedback/

  • Since upgrading to IOS 8.1.2, I cannot send/receive emails from either of my Apple or Verizon email accounts.  Does anyone know how to fix this problem or how to go back to IOS 8.1.1?

    Since upgrading to IOS 8.1.2 on my iPad3, I cannot send/receive emails from either of my Apple or Verizon email accounts.  I confirmed that my internet connection is working. Does anyone know how to fix this problem or how to go back to IOS 8.1.1?

    Hi Milrclan,
    Thanks for contributing to the Apple Support Communities. 
    If you're not able to send or receive email from the mail accounts on your iPad after updating iOS, start with these troubleshooting tips:
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Best Regards,
    Jeremy 

  • How do I get text to flow from one page to the next in Pages 5?

    How do I get text to flow from one page to the next in Pages 5 with the Maverick system?

    What may be overlooked in Pages v5 is the notion of combining Text Boxes via the Menu > View > Show Arrange Tools. When you select two Text Boxes, an extra panel unfolds at the bottom of the Arrange Tools window. Uncheck one Text Box and this panel abruptly disappears.
    One can achieve text flow effects between Text Boxes differently based on how one positions the Text Box overlap, and choice of effect above. Though not the accustomed flow found in Pages ’09 v4.3, flow does occur. Consider the possibilities of combining a Shape and a Text box to cut an irregular Text box.
    If I create two Text Boxes and position them side by side with outline touching and choose Unite, this creates one larger Text Box and text flows across and down. On the otherhand, if I overlap the upper left corner of a lower Text Box over one above and to the left, then choose Union, pasted text fills the first Text Box and then flows across and down into the other box. Here is a Union example:
    Intersect will leave a small Text Box where the two overlap, so not much value there. Subtract will cut a chunk out of one Text Box that is the size of the overlapping piece of the second Text Box:
    And Intersect will leave an island in the center where the two Text Box overlap, with flow jumping over this bridge.
    Clearly, this is not what we were accustomed to in the past, but with imagination, style, and layout tuning, it does offer alternative Text Box creativity and layout. Of course, there is the option of simply returning to the previous Pages version for true Text Box linking that most will want to use.

Maybe you are looking for

  • EXCISE INVOICE FROM PLANT

    Hi Gurus We have New Scenerio that we import the Goods by paying CVD. , ED-CESS , sec -cess in advance and need to update the RG23D and we have to pass the duty to customer during the sales from that particular plant . can anyone tell the procedure a

  • Smart Media Card

    Is there anyway that I can use a Smart Media Card with a PB 1.67? Any adaptors out there? Thanks in advance. Kev

  • How much hard drive space in needed for a Software upadate server

    I'm buying a new Mac Mini and wanted to know if the 256 GB SSD would be large enough to support running a software update server. I'm currently running a an older Mac Mini with a 500 GB drive.

  • Playhead won't  show and songs repeat

    Playhead won't show and songs repeat. I've turned off phone and tried to tap artwork but it still doesn't show. I just get a place to select stars for the song and it continues to play the same song over

  • FM for Cube Rows

    Hello Gurus!!! I am needing via ABAP check the quantity of LOGICAL registers in cube... something like transaction LISTCUBE performs when we check "Output number of hits" and summarize. I do not want physical registers in dimensions nor fact tables.