How can we avoid self closing XML tags while we are getting data using SOAP webservices

I am using SOAP webservices to get data.

This SOAP web services generating data in XML format.

My application will read this XML file,Here i am facing problem.

If the column value is null SOAP services generating self closed tag as shown below.
<revIncorpDate attributeId=”1017″/>
But my application can able to read if it is open and closed tag as shown below
<revIncorpDate></revIncorpDate>

To get above output should i need to do any changes in SOAP request or in weblogic.

Please help me…..
Thanks in Advance…………….

Add Comment
1 Answer(s)

If you are processing the SOAP message via code, my recommendation is auto generate a wrapper/proxy against the WSDL and use the generated classes to access the SOAP based result, rather than trying to use XPATH or some string based processing.

As to determining if <name/> is empty or actually null, you will have to handle that in your processing code.

Agile Talent Answered on October 18, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.