Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Process XML from MQ

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Process XML from MQ

    Hi All,
    A newbie to this fourm hoping for some help. Below is the scenario I have and should implement in Java would be a eaiser way. Therefore please help me. Helping with the Code would be much helpful since I'm a novice to Java. By the way the JDK ver is 1.2

    1) We get a XML data into the Websphere MQ.
    2) Our program (preferrably Java) pools the MQ and reads the XML.
    3) Parse the XML and Insert into a Staging table in Oracle.

    The XML data will be as below
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
       xmlns="http://application/StatusNotification">
    <SOAP-ENV:Body>
    <StatusNotification>
        <StatusNotificationMessage>
            <sourceSystem>
                <sourceSystemType>Somewhere</sourceSystemType>
                <sourceSystemId>MySystem</sourceSystemId>
            </sourceSystem>
            <alternativeIdentifiers>
                <alternativeIdentifier>
                    <name>employeeNumber</name>
                    <value>1234567890</value>
                </alternativeIdentifier>
                <alternativeIdentifier>
                    <name>departmentNumber</name>
                    <value>12345678</value>
                </alternativeIdentifier>
            </alternativeIdentifiers>
            <characteristics>
                <characteristic>
                    <name>swipeDateTime</name>
                    <value>20120613123625</value>
                </characteristic>
                <characteristic>
                    <name>role</name>
                    <value>MAN</value>
                </characteristic>
            </characteristics>
        </StatusNotificationMessage>
    </StatusNotification>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    The Data that should be inserted into Staging table should be:

    employeeNumber      departmentNumber     swipeDate       role
    --------------         ----------------       ------------    -----
        1234567890         12345678                13-JUN-12       MAN


  2. #2
    Member
    Join Date
    Apr 2012
    Location
    Superior, CO, USA
    Posts
    80
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default Re: Process XML from MQ

    Quote Originally Posted by r15 View Post
    By the way the JDK ver is 1.2
    I doubt that this will be very simple. Java has dramatically improved XML support since 1.2. Please understand that Java 1.2 hasn't been supported as a production environment in many years.

    The first thing you should tell your employer is that they need to upgrade to something from this decade.
    Need Java help? Check out the HotJoe Java Help forums!

Similar Threads

  1. Process conversation within an app
    By daniel.j2ee in forum Android Development
    Replies: 0
    Last Post: November 1st, 2011, 07:11 AM
  2. Hello.. need help in encryption process
    By apisz8701 in forum Member Introductions
    Replies: 0
    Last Post: February 13th, 2011, 05:03 AM
  3. Kill a process
    By subhvi in forum Java Theory & Questions
    Replies: 5
    Last Post: January 14th, 2010, 09:11 PM
  4. process control
    By ttsdinesh in forum Java Native Interface
    Replies: 6
    Last Post: October 27th, 2009, 06:29 PM
  5. Patch Process
    By Drakenmul in forum Java Theory & Questions
    Replies: 3
    Last Post: August 2nd, 2009, 03:09 AM

Tags for this Thread