Unmarshall erro

0 respostas
T

Pessoal estou tentando fazendo um request pelo soap mas esta disparando esse exception quando vou fazer o unmarshall.
ATT

GRAVE: JAXB unmarshalling exception; nested exception is javax.xml.bind.UnmarshalException: unexpected element (uri:"http://wwwasdf.pt/qntintegration/mii", local:"customer_facing_service_specifications"). Expected elements are <{}component>,<{}customer_facing_service_specifications>,<{}parameter>,<{}parameters>,<{}product_offer>,<{}product_offers>
org.springframework.oxm.UnmarshallingFailureException: JAXB unmarshalling exception; nested exception is javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.asdf.pt/qntintegration/mii", local:"customer_facing_service_specifications"). Expected elements are <{}component>,<{}customer_facing_service_specifications>,<{}parameter>,<{}parameters>,<{}product_offer>,<{}product_offers>
	at org.springframework.oxm.jaxb.Jaxb2Marshaller.convertJaxbException(Jaxb2Marshaller.java:575)
Meu XSD
<?xml version="1.0"?>
<xs:schema 
	id="customer_facing_service_specifications" 
	xmlns="" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:mii="http://www.asdf.pt/qntintegration/mii" 
	xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="component">
    <xs:complexType>
      	<xs:sequence>
	   	  <xs:element name="validity" minOccurs="0" maxOccurs="1">
	        <xs:complexType>
	          <xs:attribute name="start_date" type="xs:string" />
	          <xs:attribute name="end_date" type="xs:string" />
	        </xs:complexType>
	      </xs:element>
	      
	      <xs:element name="name" type="xs:string"></xs:element>
	      <xs:element name="description" type="xs:string"></xs:element>	      
	      <xs:element name="instance_parameters" type="xs:string" minOccurs="0"></xs:element>
	      <xs:element name="intrinsic_parameters" type="xs:string" minOccurs="0"></xs:element>
	      
        </xs:sequence>   
        <xs:attribute name="external_code" type="xs:string"  />        
        <xs:attribute name="owner" type="xs:string"  />
        <xs:attribute name="entity_type" type="xs:string"  />
    </xs:complexType>
  </xs:element>
  <xs:element name="customer_facing_service_specifications">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="component" />
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>
Criado 6 de dezembro de 2012
Respostas 0
Participantes 1