[Xml-compile] Checking XML - simple tool
Patrick Powell
papowell at astart.com
Thu Jan 16 16:17:25 GMT 2014
I have a set of XML SOAP exchanges. One toolset is saying that there
is an error when it receives
the XML generated by the XML::compile toolset. For example:
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmdd="http://www.tmdd.org/3/messages"
xmlns:lds="http://www.specsol.com/lds"
xmlns:ldsservice="http://center-services"
xmlns:ldsdata="http://www.specsol.com/ldsdata">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Validation constraint violation: occurrence
violation in element \'SOAP-ENV:Body\'</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I have the HTTP exchange and XML that caused this error.
Question: is there a simple way to create an utility that I can give
the request XML
and have it parse it? i.e. - as the XML::Compile server does, parse
the input string
and then, instead of calling a callback, return a 'trace' element and
the Perl Hash
for the XML content?
I was thinking that this would be similar to the 'example.pl' script
that you sent me.
I think that this would make a GREAT debugging tool for other users as
well...
More information about the Xml-compile
mailing list