You have to use qualified attribute names and values refer followings. http://zvon.org/xxl/XMLSchemaTutorial/Output/ser_over_st1.html http://ssagara.blogspot.com/2011/07/how-to-get-best-use-of-axis2-object.html
Thanks ! On Thu, Feb 23, 2012 at 8:42 PM, Giovanni Formenti < giovanni.forme...@gmail.com> wrote: > Thank you for your response. > > Did you mean something like this: > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:ns="http://soa.company.com/App/xsd/ni/NiMessages/1.0" xmlns:ns1=" > http://soa.company.com/App/xsd/ni/CommonNi/1.0"> > <soapenv:Header/> > <soapenv:Body> > <ns:responseMessageXxxx> > <ns1:attrib1>1</ns1:attrib1> > <ns1:attrib2>111</ns1:attrib2> > <ns1:anytypeelement> > <ns1:innerattribute xsi:type="CodeType1">1</ns1:innerattribute> > </ns1:anytypeelement> > </ns:responseMessageXxx> > </soapenv:Body> > </soapenv:Envelope> > > I get another exception: > The prefix "xsi" for attribute "xsi:type" associated with an element type > "ns1:innerattribute" is not bound. > > Regards > > 2012/2/23 Sagara Gunathunga <sagara.gunathu...@gmail.com> > >> If you have an AnyType in XSD schema you should have "xsi:type" attribute >> on corresponding XML element of payload. Client will use above attribute >> value for serialization/deserialization. >> >> Thanks ! >> >> On Thu, Feb 23, 2012 at 1:21 PM, Giovanni Formenti < >> giovanni.forme...@gmail.com> wrote: >> >>> Hi, >>> I have a WebService returning an AnyType element that can contains other >>> custom XSD elements inside. >>> When I try to execute a get an exceltion "No deserializer for { >>> http://www.w3.org/2001/XMLSchema}anyType" >>> Is it possible to provide some serialization-deserialization rules to >>> that XML part? I saw that the Client consider the anyType field an Object. >>> Thank you for any suggestion on that >>> >>> -- >>> Giovanni >>> >> >> >> >> -- >> Sagara Gunathunga >> >> Blog - http://ssagara.blogspot.com >> Web - http://people.apache.org/~sagara/ >> LinkedIn - http://www.linkedin.com/in/ssagara >> > > > > -- > Giovanni Formenti > -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://people.apache.org/~sagara/ LinkedIn - http://www.linkedin.com/in/ssagara