Hello,
I created a simple
web service with Axis and am trying to access it from a .NET client. This web
service has a method that returns a java.util.Collection (which is the one
giving problems).
Generating the c# proxy class using wsdl.exe gives the
following error message:
---
Schema validation
warning: Type 'http://schemas.xmlsoap.org/soap/encoding/:Array' is not
declared.
Warning: Schema
could not be validated. Class generation may fail or may produce incorrect
results.
Error: Unable to
import binding 'axisserverSoapBinding' from namespace
'http://localhost:8080/axis/
ervices/axisserver'.
- Unable to import operation 'getDashboards'.
- The datatype 'Array' is missing.
ervices/axisserver'.
- Unable to import operation 'getDashboards'.
- The datatype 'Array' is missing.
----
I've been reading a
lot of articles on interopability, but i cannot figure out how to work around
this.
Next, Axis is
probably not capable of generating type info of the array-elements.
Any
suggestions?
I appended part of
the WSDL below,
cheers,
Stephan
---
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://localhost:8080/axis/services/axisserver"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:impl="http://localhost:8080/axis/services/axisserver-impl"
xmlns:intf="http://localhost:8080/axis/services/axisserver"
xmlns:tns1="axisserver"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<schema
targetNamespace="http://schemas.xmlsoap.org/soap/encoding/"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="Array" nillable="true" type="SOAP-ENC:Array"/>
</schema>
<schema targetNamespace="axisserver" xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="Dashboard">
<sequence>
<element name="Name" nillable="true" type="xsd:string"/>
<element name="Indicator" nillable="true" type="tns1:Indicator"/>
</sequence>
</complexType>
<complexType name="Indicator">
<sequence>
<element name="Name" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<element name="Dashboard" nillable="true" type="tns1:Dashboard"/>
</schema>
</types>
...
