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/"><soapenv:Body><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/">26266637</ns1:LegalUnitIdentifier></ns13:GetLegalUnitRequest></soapenv:Body></soapenv:Envelope>"
.. 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"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.reflect.UndeclaredThrowableException</faultstring><detail><faultData xsi:type="ns1:UndeclaredThrowableException" xmlns:ns1="http://reflect.lang.java"><cause xsi:type="ns2:Exception" xmlns:ns2="http://lang.java"/><undeclaredThrowable xsi:type="ns3:Exception" xmlns:ns3="http://lang.java"/></faultData><ns4:stackTrace xmlns:ns4="http://xml.apache.org/axis/">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.