Hi,
I am consuming a java web service that has a complex type node with an equivalent value like this:
< xs:complexType name =” Item “ >
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” codigo “ type =” xs:string “ />
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” descricao “ type =” xs:string “ />
</ xs:sequence > </ xs:complexType >
< xs:complexType name =” Produto “ >
– < xs:complexContent mixed =” false “ >
– < xs:extension base =” tns:Item “ >
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” EAN “ type =” xs:string “ />
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” NBM “ type =” xs:string “ />
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” NCM “ type =” xs:string “ />
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” aplicacao “ type =” xs:string “ />
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” cdOrigem “ type =” xs:string “ />
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” exNCM “ type =” xs:string “ />
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” exTIPI “ type =” xs:string “ />
< xs:element minOccurs =” 0 “ maxOccurs =” 1 “ name =” finalidade “ type =” xs:string “ />
< xs:element minOccurs =” 1 “ maxOccurs =” 1 “ name =” genero “ nillable =” true “ type =” xs:decimal “ />
</ xs:sequence >
</ xs:extension >
</ xs:complexContent >
</ xs:complexType >
In my mapping I have choose eather to inform the “produto” node or the
“item” node but when I inform the produto node I got this error:
Failed to serialize the message part “docFiscal” into the type
“DocFiscal” using namespace “http://www.mcfox.com.br”. Please ensure
that the message part stream is created properly.
Can anyone help me?
Ps: The XML generated works if I use the soapUI tool to consume the web service.
Thanks