hi
I need java service which will remove the XML element from a given XML String
any body having this service . please help me on this
Thanks in advance
Sagar
Labels
hi
I need java service which will remove the XML element from a given XML String
any body having this service . please help me on this
Thanks in advance
Sagar
3 Comments
Hide/Show CommentsFeb 04, 2010
Allan Linga
Hi Sagar, Can you provide specific example of what you want to achieve? Meaning…Hi Sagar,
Can you provide specific example of what you want to achieve? Meaning what the XML looks like before and after.
Regards,
Allan
Feb 11, 2010
sagar b
Input: <?xml version="1.0"?> <E-mail> <To>Rohan</…Input:
<?xml version="1.0"?>
<E-mail>
<To>Rohan</To>
<From>Amit</From>
<Subject>Surprise....</Subject>
<Body>Be ready for a cruise...</Body>
</E-mail>
Input 2:
To
Ouput:
<?xml version="1.0"?>
<E-mail>
<From>Amit</From>
<Subject>Surprise....</Subject>
<Body>Be ready for a cruise...</Body>
</E-mail>
I need to do this ,i want java service in webmethods.
Thanx
Sagar
Feb 11, 2010
Allan Linga
Hi Sagar, Based on your example, you will have to convert the XML into a docume…Hi Sagar,
Based on your example, you will have to convert the XML into a document first and then create a java service that calls the IDataUtil.remove() method. Here is a simplistic implementation for your example that would demonstrate the concept:
The input and output of the java service is just a document named E-Mail. Now you will still have to call pub.xml:documentToXMLString service to produce your XML string. You can invoke this from another flow service or use Service.doInvoke() method within your java service if you want the XML string as an output of your Java service.
Hope this helps.
Regards,
Allan