[javax.xml.bind.UnmarshalException: unexpected element
问题 When invkoing a webservice, I get the following exception: [javax.xml.bind.UnmarshalException: unexpected element (uri:"urn:partner.soap.sforce.com", local:"metadataServerUrl"). Expected elements are <{}sessionId>,<{}sandbox>,<{}userId>,<{}passwordExpired>,<{}metadataServerUrl>,<{}userInfo>,<{}serverUrl>] The response expected is actually an object called LoginResult. But however I see the element names in the exception strace. The loginResult class is the expected output object from the