Title: .NET does not take WSDL generated by Axis
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/"/>
   <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?
 
Thanks.
Naresh
-----Original Message-----
From: Naresh Bhatia [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 6:33 PM
To: '[EMAIL PROTECTED]'
Subject: RE: .NET does not take WSDL generated by Axis

Thanks Dan.
 
So I ran my wsdl using VisutalStudio's WSDL tool and it gives me the following error:
 
Error: Unable to import binding 'ossSoapBinding' from namespace 'http://www.oss.org/oss'.
  - Unable to import operation 'echoTransaction'.
  - Object reference not set to an instance of an object.
 
Here are the relavant portions of my WSDL generated by Java2WSDL. By any chance can you spot the problem?
 
   <wsdl:message name="echoTransactionRequest">
      <wsdl:part name="transaction" type="tns1:Transaction"/>
   </wsdl:message>
   <wsdl:message name="echoTransactionResponse">
      <wsdl:part name="return" type="tns1:Transaction"/>
   </wsdl:message>

      <wsdl:operation name="echoTransaction" parameterOrder="transaction">
         <wsdl:input message="intf:echoTransactionRequest" name="echoTransactionRequest"/>
         <wsdl:output message="intf:echoTransactionResponse" name="echoTransactionResponse"/>
      </wsdl:operation>
      <wsdl:operation name="echoTransaction">
         <wsdlsoap:operation soapAction=""/>
         <wsdl:input name="echoTransactionRequest">
            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.oss.org/oss" use="encoded"/>
         </wsdl:input>
         <wsdl:output name="echoTransactionResponse">
            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.oss.org/oss" use="encoded"/>
         </wsdl:output>
      </wsdl:operation>
Thanks
Naresh
-----Original Message-----
From: Dan Stone [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 5:33 PM
To: '[EMAIL PROTECTED]'
Subject: RE: .NET does not take WSDL generated by Axis

You may want to try using the WSDL tool (wsdl.exe in  Microsoft.NET\FrameworkSDK\Bin)
outside of VisualStudio and then add the created resources to your project if this is successful.
type the command only for a list of options.
 
Dan
 
 
 
 
 -----Original Message-----
From: Naresh Bhatia [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 1:09 PM
To: '[EMAIL PROTECTED]'
Subject: .NET does not take WSDL generated by Axis

I am trying to load a WSDL generated by Axis (Java2WSDL) into Visual Studio .NET. Visual Studio loads it without any complains. A web reference is created for the service but the associated classes are not created. Any idea where I could look for the problem?

Thanks.
Naresh Bhatia

Reply via email to