views:

111

answers:

0

I'm calling a SOAP webservice using Apache AXIS2 with ADB. Never mind the 64.000 line stub generated to send over two parameters + auth, I'm getting an obscure XML validation error.

I'm sending this (username and password redacted):

2010-03-26 00:28:59,982 DEBUG httpclient.wire.content - >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soapenv:Body&gt;&lt;ns13:GetLegalUnitRequest xmlns:ns13="http://rep.oio.dk/eogs/xml.wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns13:GetLegalUnitRequestType" level="1"><ns13:UserId>[email protected]</ns13:UserId><ns13:Password>redacted</ns13:Password><ns1:LegalUnitIdentifier xmlns:ns1="http://rep.oio.dk/eogs/xml.schema/"&gt;26266637&lt;/ns1:LegalUnitIdentifier&gt;&lt;/ns13:GetLegalUnitRequest&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;"

.. and getting this response:

2010-03-26 00:29:00,153 DEBUG httpclient.wire.content - << "<?xm"
2010-03-26 00:29:00,176 DEBUG httpclient.wire.content - << "l version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;soapenv:Body&gt;&lt;soapenv:Fault&gt;&lt;faultcode&gt;soapenv:Server.userException&lt;/faultcode&gt;&lt;faultstring&gt;java.lang.reflect.UndeclaredThrowableException&lt;/faultstring&gt;&lt;detail&gt;&lt;faultData xsi:type="ns1:UndeclaredThrowableException" xmlns:ns1="http://reflect.lang.java"&gt;&lt;cause xsi:type="ns2:Exception" xmlns:ns2="http://lang.java"/&gt;&lt;undeclaredThrowable xsi:type="ns3:Exception" xmlns:ns3="http://lang.java"/&gt;&lt;/faultData&gt;&lt;ns4:stackTrace xmlns:ns4="http://xml.apache.org/axis/"&gt;java.lang.reflect.UndeclaredThrowableException[\n]"
2010-03-26 00:29:00,176 DEBUG httpclient.wire.content - << "[0x9]at $Proxy56.process(Unknown Source)[\n]"

(...)

2010-03-26 00:29:00,263 DEBUG httpclient.wire.content - << "Caused by: org.mule.umo.MessagingException: XML Request does not validate against the XML Schema. Message payload is of type: DeferredDocumentImpl[\n]"
2010-03-26 00:29:00,263 DEBUG httpclient.wire.content - << "[0x9]at com.eogs.esb.mule.xmlvalidation.XMLValidatorInterceptor.intercept(XMLValidatorInterceptor.java:62)[\n]"

The webservice is described here, including WSDL: http://archprod.service.eogs.dk/cvronline/metacvronline/urls.htm - I'm trying to call LegalUnitGet.

Am I doing anything obviously wrong? I can't find anything not-valid in my XML. Wouldn't AXIS2 tell me if what I was sending didn't validate against the WSDL?

Thanks.