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[]
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