So I just determined after some experimenting with different version of JDKs for building each project the following:
If I build the generated client classes with jaxws-maven-plugin with JDK 6 or JDK 7 that's ok. If I build the server (WSDL) with cxf-java2ws-plugin JDK 6 it's ok, JDK 7 it's not (exception will reproduce). So the issue is that the differences b/n the JDK 6 WSDL and the JDK 7 WSDL are making a difference for this exception to reproduce or not (and I think it's specifically the first diff below). Here are the diffs: <xs:element minOccurs="0" name="predefinedSearchCriteria" type="tns:predefinedSearchCriteria"/> //JDK6 <xs:element minOccurs="0" ref="tns:predefinedSearchCriteria"/> //JDK7 <xs:element minOccurs="0" name="caseCreationConfig" type="tns:caseCreationConfig"/> //JDK6 <xs:element minOccurs="0" ref="tns:caseCreationConfig"/> //JDK7 <xs:element minOccurs="0" name="caseCreationConfig" type="tns:caseCreationConfig"/> //JDK6 <xs:element minOccurs="0" ref="tns:caseCreationConfig"/> //JDK7 -- View this message in context: http://cxf.547215.n5.nabble.com/javax-xml-ws-soap-SOAPFaultException-Unmarshalling-Error-unexpected-element-tp5743794p5743975.html Sent from the cxf-user mailing list archive at Nabble.com.
