How can i transfer the xml files between different systems?

hello
the appearance of xml enable the inter-communication between differences systems.but
i don't know how,such as following scinario:
in the client side,we use the console that is written by using c#,if i finish
filling the text boxes that are within the console,click the submit button,the
console will generate a xml format document.i want the other application that
is written by using jsp and servlet and deployed in weblogic server to receive
the xml document,then process the document.
but i don't know how i can transfer the xml files between the two applications
that is written in different languages? can i use http protocol?
thanks for any helps!

Yes, you can use the HTTP protocol as a transport for the XML message, this
is basically what the HTTP binding for SOAP does. The key is using a
packaging mechanism that different applications will understand, otherwise
only your own applications will know how to extract and process the XML
messages you send between them.
"zbcong" <[email protected]> wrote in message
news:3e68318e$[email protected]..
>
hello
the appearance of xml enable the inter-communication between differencessystems.but
i don't know how,such as following scinario:
in the client side,we use the console that is written by using c#,if ifinish
filling the text boxes that are within the console,click the submitbutton,the
console will generate a xml format document.i want the other applicationthat
is written by using jsp and servlet and deployed in weblogic server toreceive
the xml document,then process the document.
but i don't know how i can transfer the xml files between the twoapplications
that is written in different languages? can i use http protocol?
thanks for any helps!

Similar Messages

  • How can I transfer a XML file content to a MS SQL database by stored procedure using LabWindows/CVI SQL Toolkit?

    Hi,
    I have a problem to transfer a XML file content to a MS SQL database by a given/fixed stored procedure. I'm able to transfer the content of the file by using following method ...
    hstmt = DBPrepareSQL (hdbc, EXEC usp_InsertReport '<Report> ..... </Report>');
    resCode = DBExecutePreparedSQL (hstmt);
    resCode = DBClosePreparedSQL (hstmt);
    ... but in this case I'm not able to fetch the return value of the stored procedure! 
    I have tried to follow the example of the stored procedure in the help documentation (DBPrepareSQL) but I miss a datatype for xml?!?
    Any idea how to solve my problem?
    KR Cake  
    Solved!
    Go to Solution.

    After some additional trials I found a solution by calling the stored procedure in this way
    DBSetAttributeDefault (hdbc, ATTR_DB_COMMAND_TYPE, DB_COMMAND_STORED_PROC);
    DBPrepareSQL (hdbc, "usp_InsertReport");
    DBCreateParamInt (hstmt, "", DB_PARAM_RETURN_VALUE, -1);
    DBCreateParamChar (hstmt, "XMLCONTENT", DB_PARAM_INPUT, sz_Buffer, (int) strlen(sz_Buffer) + 1 );
    DBExecutePreparedSQL (hstmt);
    DBClosePreparedSQL (hstmt);
    DBGetParamInt (hstmt, 1, &s32_TestId);
    where sz_Buffer is my xml file content and s32_TestID the return value of the stored procdure (usp_InsertReport(@XMLCONTENT XML))
    Now I face the problem, that DBCreateParamChar limits the buffer size to 8000 Bytes.
    Any idea to by-pass this shortage??

  • How can I skip the XML file's space & "\n" when using a DOM?

    This is my xml file below:
    <?xml version="1.0" encoding="UTF-8"?>
    <inventory>
      <item>
        <sku>3965</sku>
        <describtion>widget</describtion>
        <quality>108</quality>
      </item>
      <item>
        <sku>5478</sku>
        <describtion>gadget</describtion>
        <quality>101</quality>
      </item>
      <item>
        <sku>4575</sku>
        <describtion>sprocket</describtion>
        <quality>106</quality>
      </item>
    </inventory>between the <inventory> and the<item>,there is one "\n" and tow "space" ,
    then between the <item> and the <sku>,there is ...
    on and on...
    and this is my java code:
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    public class DomDemo {
      DocumentBuilderFactory dbf = null;
      DocumentBuilder df = null;
      Document doc = null;
      public DomDemo() {
        try {
          dbf = DocumentBuilderFactory.newInstance();
          dbf.setIgnoringElementContentWhitespace(true);
        catch(FactoryConfigurationError fce) {
          fce.printStackTrace();
        try { 
          df = dbf.newDocumentBuilder();
        catch(ParserConfigurationException pce) {
          pce.printStackTrace();
      public void printXML(Node node) {
        short nodeTypeValue;
        String nodeType = null;
        Node currentNode = null;
        nodeTypeValue = node.getNodeType();
        nodeType = getNodeType(nodeTypeValue);
        System.out.println("NodeType:" + nodeType);
        System.out.println("NodeName:" + node.getNodeName());
        System.out.println("NodeValue:" + node.getNodeValue());
        for(currentNode = node.getFirstChild(); currentNode != null; currentNode = currentNode.getNextSibling()) { 
          printXML(currentNode);
      public String getNodeType(short nodeTypeValue) {
        String nodeType = null;
        switch(nodeTypeValue) {
          case Node.DOCUMENT_NODE: 
            nodeType = "DocumentNode";
            break;
          case Node.ELEMENT_NODE:
            nodeType = "ElementNode";
            break;
          case Node.ATTRIBUTE_NODE:
            nodeType = "AttributeNode";
            break;
          case Node.TEXT_NODE:
            nodeType = "TextNode";
            break;
          default:
            nodeType = "OtherNode";
        return nodeType;
      public static void main(String[] args) {
        if(args.length == 0) {
         System.out.println("Usage:java DomDemo filename");
         System.exit(1);
        String file = args[0];
        DomDemo dd = new DomDemo();
        Document doc = null;
        try {
          doc = dd.df.parse(file);
        catch(Exception e) {
          e.printStackTrace();
        dd.printXML(doc);
    }when run the class, the result is below:
    NodeType:DocumentNode
    NodeName:#document
    NodeValue:null
    NodeType:ElementNode
    NodeName:inventory
    NodeValue:null
    NodeType:TextNode
    NodeName:#text
    NodeValue:
    NodeType:ElementNode
    NodeName:item
    NodeValue:null
    NodeType:TextNode
    NodeName:#text
    NodeValue:
    It contains a TextNode and its value is " " and a "\n".
    I used setIgnoringElementContentWhitespace feature, but it seems didn't work.
    How can i solve it?

    I used setIgnoringElementContentWhitespace feature, but it seems didn't work.
    Add a DTD to the XML document for setIgnoringElementContentWhitespace feature.

  • How can I transfer the music files from my iTunes ver: 9.0.? on my external hard drive to my new laptop with the latest version of iTunes?

    A few years ago I had copied my iTunes, ver:9.0.?, from my old laptop tom my external hard drive. The music on it was already loaded onto my other devices. My old computer crashed andI bought a new one, put iTunes on it and kept it updated. The problem is I forgot to keep the iTunes on my ecternal hatd drive updated. I tried to open the external hard drive iTunes but received a error with something to the effect that there was a newwerversion of iTune. I was hoping to either put the external Itunes music on my device. How can I go about that now?

    Type "move itunes library" into the google search bar.

  • How can I Split the PDF File into different pages?

    Hi,
    My requirment is to split the pdf file , which is obtained by using FM "convert_otf" , into seperate PDF file for each employee data(PERNR).
    Please suggest me the way to slipt the PDF file that has to be downloaded into the presentation server.

    Hi,
    Ok, looking at that programm didn't actually help me very much to understand what's going on, or where you have the CONVERT_OTF call... Regardless, if the suggestion by Raymond is not feasible in your scenario, the thing I'd try to do is - splitting the spool (OTF) contents before calling CONVERT_OTF into individual documents (feeding it to convert FM piecemeal)... The link to OTF format and commands documentation is here.
    Again, it's difficult to give a good algorithm without knowing the exact OTF contents (could you perhaps somehow export the display of spool in RAW format and attach here?) but it would boil down to approximately following:
    1) set the &first_page per PERNR = 1;
    2) run through OTF lines until the &end_page for PERNR has been identified somehow (hopefully there are Begin/End Form OTF commands '//' in that spool... and they correspond to the split of spool you need...);
    3) extract the otf contents from &first_page to the EP command of &end_page into separate OTF itab and, if necessary, add // (End of form) command at the end of itab;
    4) call CONVERT_OTF on the table and download;
    5) set the &first_page per PERNR = &end page + 1;
    6) repeat from 2) until end of spool OTF data
    Something like that... Depending how the Sapscript translates into OTF, you may also need to prepend a few commands found at the very beginning of the spool to each extracted invividual OTF document...
    I Hope you can get the gist of what I'm suggesting... splitting OTF is definetly easier than trying to split PDF, I feel. It's not ideal solution, because - what if the structure of OTF contents you would be realying on changes for some reason..?
    cheers
    Janis

  • How can I pass a xml file to the webservice?

    Hello friends,
    How can I pass the XML file to any webservice API ?
    I have all the inputs of API in to the XML file.
    Please note:- I don't intend to do any .NET or Java coding to populate the data in the objects .Instead I plan to input the data to the webservice direcly from the XML file required schema.
    If necessary I can use Oracle Bpel process manager for it.
    Thanks and regards
    Ram Krishna Tripathi
    [email protected]

    Well, I've used it (or rather: tried it); did not/could not find the many options to export at a nearly lossless conversion for HD footage (hence my disclaimer "don't know"). Here is a screenshot of the Handbrake options:
    And here are the choices and settings from MPEG Streamclip:
    Maybe not empirical, but enough for me to have an opinion.

  • How can (parse) i use XML file with missing EndTag

    hi,
    i have an application which writes an "XML file".
    another application should read that XML file, build an DOM and
    access the nodes with xpath.
    my problem. if the first application is not finished there are tags
    missing. e.g. </xml>. but the seconds application cannot wait until the first application finishes it task.
    if i now read the XML file the parser cannot load it because the end tags are missing.
    my question:
    how can i deactivate the check or how can i read the XML file and access it via XPath (my application is using at the moment XPath to access the nodes and i dont want to change that)
    as parser i am using XERCES
    alex

    As far as I know, you can't do this - xml must be well formed (this is sort of a bedrock of xml). There may be some work around's, but I'm not aware of any - and they would most likely be hacks.

  • My laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    my laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    See this user tip for recovering the media from the iPhone: https://discussions.apple.com/docs/DOC-3991

  • How can i transfer the radio recording files from my Ipad to Computer

    how can i transfer the radio recording files from my Ipad to Computer ?

    I was hopeful I could use home sharing to sync my iTunes libraries,
    Unfortunately, you can only stream content to your iOS devices via home sharing (not sync it).
    I'd have a check through the following user tip instead:
    Recovering your iTunes library from your iPod or iOS device

  • My hard drive with all my actual music files died.  how can I transfer the music on my ipod classic to another drive?

    my hard drive with all my actual music files died.  how can I transfer the music on my ipod classic to another drive?

    If you purchased all of the songs through itunes store, please follow these steps:
    1. Open up Itunes and Click on Itunes Store
    2. Once you're in the Itunes Store look to right side of the screen and you should see the word "purchased". Click purchased and you'll be sent to a purchase screen.
    3. Click on "All Songs" and then it will show all the songs you've downloaded. From there you just hit the button that looks like a cloud with an arrow on it, and it will download all the songs all over again.
    If you didn't purchase them through Itunes, then you'll have to download software that will strip the songs from your iPod onto your computer. Here is a guide about how to copy iPod music. Hope it helps. Feel free to email me if you need further help.

  • I have a video that I created for my daughter's first birthday.  The hard drive on my computer crashed and I lost the video file.  The only place I have it is on my iPod Classic.  How can I transfer the video from my iPod to my new hard drive?

    I have a video that I created for my daughter's first birthday.  The hard drive on my computer crashed and I lost the video file.  The only place I have it is on my iPod Classic.  How can I transfer the video from my iPod to my new hard drive?

    You are in luck, Refer to this recent post by tt2, on recovering media using 3rd Party Software.
    He has made a comprehensive list, browse through them and decide which  suits your requirements.
    Have a nice day!

  • How can i transfer the entire itunes program (not the library,but the actual program itself) from one cpu to another? I have the older version that has the slide feature. I can't stand the new itunes.

    HOW CAN I TRANSFER THE ITUNES PROGRAM ( NOT THE LIBRARIES,BUT THE ACTUALLY EXE PROGRAM ) FROM ONE CPU TO ANOTHER. I CAN'T
    STAND THE NEW ITUNES. I WANT TO TRANSFER MY OLD ONE THAT STILL HAS THE SLIDER FEATURE. THANKS

    Sounds like you've already installed iTunes 11 and are now trying to downgrade. To do so successfully you will also need access to a pre-upgrade copy of your library as set out below...
    The main differences between iTunes 11 and earlier versions are the loss of coverflow and ability to have multiple windows open.
    In Windows, you can restore much of the look & feel of iTunes 10.7 with these shortcuts:
    ALT to temporarily display the menu bar
    CTRL+B to show or hide the menu bar
    CTRL+S to show or hide the sidebar
    CTRL+/ to show or hide the status bar (won't hide for me on Win XP)
    Click the magnifying glass top right and untick Search Entire Library to restore the old search behaviour
    Use View > Hide <Media Kind> in the cloud or Edit > Preferences > Store and untick Show iTunes in the cloud purchases to hide the cloud items. The second method eliminates the cloud status column (and may let iTunes start up more quickly)
    If you don't like having different coloured background & text in the Album (Grid) view use Edit > Preferences > General and untick Use custom colours for open albums, movies, etc.
    With iTunes 11.0.3 you can enable artwork in the Songs & List views from View > Show View Options (CTRL+J) making it more like the old Album List view.
    If you still feel the need to roll back to iTunes 10.7 first download a copy of the 32 bit installer or 64 bit installer as appropriate, uninstall iTunes and supporting software, i.e. Apple Application Support & Apple Mobile Device Support. Reboot. Restore the pre-upgrade version of your library database as per the diagram below, then install iTunes 10.7.
    See iTunes Folder Watch for a tool to scan the media folder and catch up with any changes made since the backup file was created.
    tt2

  • How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?

    How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?

    In iTunes with your iPhone connected, click on the iPhone device, select the Apps tab, scroll down to the File Sharing section and pick an app that plays Quicktimes ("Files Connect" works in this example, but I'm open to suggestions of better apps for playing transferred Quicktimes) and drag your Quicktime from Finder to the Documents pane for the File Sharing app.   Once the file transfer is complete, go to the app on your iPhone to play the Quicktime.

  • How can I get the XML structure from a flat structure?

    Hi all,
    in my XI SP 12 I use a JMS adapter to read information using the WebSphereMQ transport protocol.
    The structure that I receive have this format:
    <Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value>
    <NumberRecordType_B><NumberRecordType_c>
    <Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
    <Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
    <Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    <Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    the problem is that in this structure each line is not separated by a carriage return or a comma, I have all the information in a single line:
    <Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value><NumberRecordType_B><NumberRecordType_c><Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>...<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value><Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>...<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    and the customer don't want to insert a line separator.
    Then, the question is:
    How can I get the XML structure from this structure?
    If possible, I don't want to develop new Module and add it in the JMS Module Sequence.
    PS I have already read the article "How to Use the Content Conversion Module with the XI 3 J2EE JMS Adapter.pdf" and it doesn't seem to help me.
    Best Regards,
    Paolo

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

  • Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    Hello! I have one iTunes library on my iPod and one iTunes library on my computer. When I connect my iPod touch to my PC, however, I cannot find any files in my iPod except for pictures. How can I find the music files so I can add them to my iTunes?

    You can't do that.
    And before you decide to store any music that you own on a computer at work, talk to your IT department. Many organizations do not permit it for legal reasons. Standard policies are that anything stored on company owned computers is the property of the company. It could not be legally stored on their machines unless you transfer the licenses and all copies, physical and digital, to the company, meaning you no longer own the music. If they were to be audited and could not prove that they own the music, they would be subject to copyright violation penalties. Just use your iPod when you're at the office if you want to listen to music.

Maybe you are looking for

  • Modbus I/O Server at Run-time

    Hello everyone. I needed an software that communicates with a third part PLC (siemens) via Modbus (serial) protocol, and I'm getting some problems with stand-alone application. I did the following steps: 1- Created a new project; 2- Created a new lib

  • L412 BLACK SCREEN PROBLEM

    There was a power otuage and my laptop went black after the power outage. The battery was not inside the laptop when the power outage occured. When the power outage ended, I powered back on my laptop but it won't been nor will it boot onto the Lenovo

  • While moving the cursor on my laptop the page view got smaller and i cannot change it back to normal

    screen view has reduced in size it occurs for no apparent reason when i am navigating the cursor around the screen

  • Database Data Out Of Date

    The site was upgraded from ZFD 3 to 4. The inventory scan was run overnight but the data shown in the database is not the most up to date. There are str files created in zenworks\inv\scandir. I've tried stopping and restaring Zenworks on the server.

  • Converting Object Arrays?

    I have created a vector which adds various strings to it as it goes along. At the end of this I want to convert the vector into a String array. I've tried to use the vector .toArray() function but it converts it to an Object Array. Does anybody know