Hi,
I have following SOAP request.
When XmlBeans unmarshalling is called, only payload is passed in:Code:<soapenv:Envelope xmlns:ns="http://schemas.qqq.com/wsdl/spi/profile/1.0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <ns:getRights> <ns:customerCredential xsi:type="ns:CustomerCredentialMsisdn"> <ns:msisdn>420123456789</ns:msisdn> </ns:customerCredential> </ns:getRights> </soapenv:Body> </soapenv:Envelope>
The issue is, that XmlBeans can't find "ns" prefix definition and therefore they can't resolve xsi:type correctly. If I specify the prefix on getRights level instead of on Envelope element everything works fine.Code:<ns:getRights> <ns:customerCredential xsi:type="ns:CustomerCredentialMsisdn"> <ns:msisdn>420123456789</ns:msisdn> </ns:customerCredential> </ns:getRights>
Is there a way how to work around this issue? Thanks


Reply With Quote