Hi i am using apache axis to write web services but when .net calls my service it gives the following error.

System.InvalidCastException: Cannot assign object of type SystemWebService.d31504.organisationdetails to an object of type SystemWebService.d31504.organisationdetails[].

 

here is the part of my wsdl

 

 

   <complexType name="OrganisationList">

     <sequence>

                        <element name="id" nillable="true" type="xsd:string"/>    

                        <!--<element name="arrayorganisationDetails" minOccurs="0" maxOccurs="1" nillable="true" type="tns1:arroyorganisationdetails" />  -->

                        <element name="arrayorganisationDetails" nillable="true" minOccurs="0" maxOccurs="1"  type="tns1:ArrayOfString1"/>     

                       

     </sequence>

   </complexType>

 

            <complexType name="ArrayOfString1">

            <sequence>

            <element minOccurs="0" maxOccurs="unbounded" name="orgstring"  nillable="true" type="becta:organisationdetails" />

            </sequence>

            </complexType>

 

i am not sure is this the right place to ask my question , any one help.

Reply via email to