我總是得到錯誤Spring ws org.springframework.ws.soap.saaj.SaajSoapEnvelopeException XSD?
HTTP Status 500 - Request processing failed; nested exception is org.springframework.ws.soap.saaj.SaajSoapEnvelopeException: Could not access envelope: Unable to create envelope from given source: ; nested exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
當我嘗試用兩個複雜類型,如運行在SOAPRequest:
<xs:element name="blub">
<xs:complexType>
<xs:sequence>
<xs:element name="mainheader" type="header" />
<xs:element name="mainbody" type="body" />
</xs:sequence>
</xs:complexType>
</xs:element>
我用org.springframework.oxm.jaxb.Jaxb2Marshaller作爲的Marshaller和org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection爲xsd。
任何人有想法?