Make sure your @PayloadRoot initializers are correct. My definition of "localpart" did not match the element name in XSD. this is what my java class looks like:
@PayloadRoot(localPart = "GetLoginRequest", namespace = "<namespace>")
And here is the XSD:
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="<namespace>" elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="<namespace>"> <xsd:include schemaLocation="user-types.xsd"></xsd:include> <xsd:element name="GetLoginRequest" type="loginRequest"></xsd:element> <xsd:element name="GetLoginReply" type="loginReply"></xsd:element> </xsd:schema>
source share