Hi,
I'm having a small problem when making a SOAP call and I'm getting this
exception:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Invalid element in
uk.co.caps_solutions.www.schema.uniform._72b.common.connectortypes.UniformLoginRequestType
- DatabaseID
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
Invalid element in
uk.co.caps_solutions.www.schema.uniform._72b.common.connectortypes.UniformLoginRequestType
- DatabaseID
at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:255)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
The SOAP request is as follows:
<?xml 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><LogonToConnector
xmlns="http://www.xxx.co.uk/webservices/connectors/common/messagetypes"
xmlns:ns1="http://www.xxx.co.uk/schema/uniform/72b/common/connectortypes"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns1:UniformLoginCredentials>
<ns1:DatabaseID>dbVal</ns1:DatabaseID>
<ns1:UniformUserName>userVal</ns1:UniformUserName>
<ns1:UniformPassword>passVal</ns1:UniformPassword>
</ns1:UniformLoginCredentials>
</LogonToConnector>
</soapenv:Body></soapenv:Envelope>
And the deploy.wsdd refers to DatabaseID as follows:
<typeMapping
xmlns:ns="http://www.xxx.co.uk/schema/uniform/72b/common/connectortypes"
qname="ns:>UniformLoginCredentialsType>DatabaseID"
type="java:java.lang.String"
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
encodingStyle=""
/>
Could someone point me in roughly the right direction? Is the SOAP request
badly formed? Why has it failed to look up a method of deserialising the
DatabaseID element?
Thanks,
John