Naresh Bhatia wrote:

> After a bit of experimentation with the WSDL generated by Java2WSDL, I 
> found that .NET does not like the declaration of a camplexType Map:
>
>  
>
>   <schema targetNamespace="http://xml.apache.org/xml-soap " 
> xmlns="http://www.w3.org/2001/XMLSchema ">
>    <import namespace=" http://schemas.xmlsoap.org/soap/encoding/"/ 
> <http://schemas.xmlsoap.org/soap/encoding/%22/> >
>    <complexType name="Map">
>     <sequence>
>      <element maxOccurs="unbounded" minOccurs="0" name="item">
>       <complexType>
>        <all>
>         <element name="key" type="xsd:anyType"/>
>         <element name="value" type="xsd:anyType"/>
>        </all>
>       </complexType>
>      </element>
>     </sequence>
>    </complexType>
>   </schema>
>
> As soon as I remove this section, .NET reads the WSDL successfully and 
> creates the associated classes. So the big question is, has anyone 
> been able to make the Map work with .NET?
>
  I used Java2WSDL to create the WSDL file, and .NET seemed to accept 
that. I just can't get it to return the complex types yet (though it 
accepts them as function parameters).

  I don't have maxOccurs or minOccurs, btw.

  I will also guess that "type=" is not anyType, but some definite type.


Reply via email to