Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8958813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:18:06+00:00 2026-06-15T15:18:06+00:00

Hi I am doing Integration with a webservice which takes in MessageElement[] and the

  • 0

Hi I am doing Integration with a webservice which takes in MessageElement[] and the sample input they have provided is given in XML format. Well am really confused how to convert the XML into MessageElement[].

The sample XML is :

'<DEBITS hasChanges="inserted" xmlns="">' .
'<DEBIT_ID>-1</DEBIT_ID>' .
'<EFFECTIVE_DATE>'.$FeeDate.'</EFFECTIVE_DATE>' .
'<DEBIT_AMOUNT>'. $Fee.'</DEBIT_AMOUNT>' .
'<MEMO><![CDATA['.$DEBIT_TYPE.']]></MEMO>' .
'<ACCOUNT_ID>'.$GCSAccountId .'</ACCOUNT_ID>' .
'<DEBIT_TYPE>'.$DEBIT_TYPE.'</DEBIT_TYPE>' .
'<DAY_OF_MONTH>'.$Feeday.'</DAY_OF_MONTH>' .
'<ACTIVE_FLAG>Y</ACTIVE_FLAG>' .
'<OCCURS_NUM>1</OCCURS_NUM>' .
'<CREATION_DATE></CREATION_DATE>' .
'<MODIFIED_DATE></MODIFIED_DATE>' .
'<MODIFIED_BY></MODIFIED_BY>' .
'<DEBIT_AUTHORIZED></DEBIT_AUTHORIZED>' .
'<DEBIT_AUTHORIZED_BY></DEBIT_AUTHORIZED_BY>' .
'<REMAINING_OCCURRENCES>0</REMAINING_OCCURRENCES></DEBITS>';

Just to add more context , the webservice proxy class that were generated using axis has a signature which accepts MessageElement[]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:18:07+00:00Added an answer on June 15, 2026 at 3:18 pm

    Well after going through lots of documents.
    I guess I figured out how to handle the conversion.
    Here is the method to convert the xml

    public static MessageElement[] convertXMLStringtoMessageElement(String xmlString) throws SAXException, IOException, ParserConfigurationException{
            MessageElement[] m = new MessageElement[1];
            Document XMLDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new InputSource(new StringReader(xmlString)));
            Element element = XMLDoc.getDocumentElement();
            m[0] = new MessageElement(element);
            return m;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class that creates a file. I am now doing integration tests
I'm currently doing facebook integration and have gone through this tutorial . So far,
Well I'm doing some Java - C integration, and throught C library werid type
I'm currently doing integration testing on a database and I have the following sql
I have two Projects; MVC 4 and JabbR (WebForms). I'm doing integration release, so
Well currently i'm doing a simple application using jsp, servlet, jstl with hibernate integration,
We are doing continuous integration at our company with TeamCity and we have unit
As part of an integration task I am doing, I have a column in
I have been given the task of calling a web service which returns an
I'm working with django and doing facebook integration for which is needed a test

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.