Validating SOAP response messages fails with E cvc-elt.1:
Posted: Mon Sep 05, 2005 4:58 pm
Hi,
I'm trying to develop a set of code to use XSLT to transform SOAP responses from a WebSphere Application Server V5.1 into HTML so that we can look for data quality problems.
Using IBM's TCP/IP monitor I can capture the SOAP XML as it is returned to the client. When I try to validate the message in oXygen I get the following message:
SystemID: C:\OxygenProjects\WebServicesXML\XMLFiles\AuthorizationResponse.xml
Location: 2:234
Description: E cvc-elt.1: Cannot find the declaration of element 'soapenv:Envelope'.
URL: http://www.w3.org/TR/xmlschema-1/#cvc-elt
[b]Below is a sample of the overall message:[/b]
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getAuthorizationByVOResponse xmlns="http://webservices.authorization.oxhp.com">
<getAuthorizationByVOReturn>
<statusAction xsi:nil="true" xmlns="http://valueobjects.commons.oxhp.com" />
<statusError xmlns="http://valueobjects.commons.oxhp.com">NO_ERROR</statusError>
<statusMessage xmlns="http://valueobjects.commons.oxhp.com">No error.</statusMessage>
<statusTrace xsi:nil="true" xmlns="http://valueobjects.commons.oxhp.com" />
<lnkAuthorizationDetailResponseVO xmlns="http://valueobjects.authorization.oxhp.com">
</lnkAuthorizationDetailResponseVO>
</getAuthorizationByVOReturn>
</getAuthorizationByVOResponse>
</soapenv:Body>
</soapenv:Envelope>
The goal is to accept the TCP/IP trace output as sent by the server and then transform it for the end-user to examine for data inconsistencies.
Is there any solution to this error, [b]without[/b] modifying the SOAP output message???
Thanks,
Bob
I'm trying to develop a set of code to use XSLT to transform SOAP responses from a WebSphere Application Server V5.1 into HTML so that we can look for data quality problems.
Using IBM's TCP/IP monitor I can capture the SOAP XML as it is returned to the client. When I try to validate the message in oXygen I get the following message:
SystemID: C:\OxygenProjects\WebServicesXML\XMLFiles\AuthorizationResponse.xml
Location: 2:234
Description: E cvc-elt.1: Cannot find the declaration of element 'soapenv:Envelope'.
URL: http://www.w3.org/TR/xmlschema-1/#cvc-elt
[b]Below is a sample of the overall message:[/b]
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getAuthorizationByVOResponse xmlns="http://webservices.authorization.oxhp.com">
<getAuthorizationByVOReturn>
<statusAction xsi:nil="true" xmlns="http://valueobjects.commons.oxhp.com" />
<statusError xmlns="http://valueobjects.commons.oxhp.com">NO_ERROR</statusError>
<statusMessage xmlns="http://valueobjects.commons.oxhp.com">No error.</statusMessage>
<statusTrace xsi:nil="true" xmlns="http://valueobjects.commons.oxhp.com" />
<lnkAuthorizationDetailResponseVO xmlns="http://valueobjects.authorization.oxhp.com">
</lnkAuthorizationDetailResponseVO>
</getAuthorizationByVOReturn>
</getAuthorizationByVOResponse>
</soapenv:Body>
</soapenv:Envelope>
The goal is to accept the TCP/IP trace output as sent by the server and then transform it for the end-user to examine for data inconsistencies.
Is there any solution to this error, [b]without[/b] modifying the SOAP output message???
Thanks,
Bob
