If the type of the element is xs:anyType, WSDL2C will generate an axiom node for that element.
Possible solution is to change the "xs:anyType" to "tns:SomeResult" in your WSDL. Here the "tns" should be defined as a prefix for the target namespace of "SomeResult". Thanks Dimuthu On Thu, May 2, 2013 at 4:49 PM, Pavani J <jpavan...@gmail.com> wrote: > Hi, > > I have WSDL generated C stubs and using axis2c-1.7.0 to deploy web services. > I am on server side. > > I am stuck at generating axiom node for xs:anyType. Below is my WSDL for > that. > > > <xs:complexType name="SomeInfo" xmlns:ax213="http://data.some.abcd.com/xsd"> > <xs:sequence> > <xs:element minOccurs="0" name="name1" > type="xs:boolean"/> > <xs:element minOccurs="0" name="name2" > type="xs:boolean"/> > <xs:element minOccurs="0" name="error" nillable="true" > type="xs:anyType"/> > <xs:element minOccurs="0" name="name3" nillable="true" > type="xs:dateTime"/> > <xs:element minOccurs="0" name="name" nillable="true" > type="xs:string"/> > <xs:element minOccurs="0" name="progress" > type="xs:int"/> > <xs:element minOccurs="0" name="name4" > type="xs:boolean"/> > <xs:element minOccurs="0" name="result" nillable="true" > type="xs:anyType"/> <---- I am interested in result > <xs:element minOccurs="0" name="name5" nillable="true" > type="xs:dateTime"/> > <xs:element minOccurs="0" name="name6" nillable="true" > type="xs:string"/> > <xs:element minOccurs="0" name="name7" nillable="true" > type="xs:string"/> > </xs:sequence> > </xs:complexType> > > In C generated code, result is a node. In my code result could be a > structure like below or could be a list of some other structure. > > <xs:complexType name="SomeResult" > xmlns:ax213="http://data.some.abcd.com/xsd"> > <xs:sequence> > <xs:element minOccurs="0" name="pInfo" > nillable="true" type="ax211:VVInfo"/> > <xs:element minOccurs="0" name="pStats" > nillable="true" type="ax211:SStats"/> > <xs:element minOccurs="0" name="sId" nillable="true" > type="xs:string"/> > </xs:sequence> > </xs:complexType> > > Now my question is how to create a result node out of SomeResult structure? > If this kind of question is already answered, please point me the link. > > I greatly appreciate your help. > > Thanks is advance. > Pavani --------------------------------------------------------------------- To unsubscribe, e-mail: c-user-unsubscr...@axis.apache.org For additional commands, e-mail: c-user-h...@axis.apache.org