Axis generated WSDL has compile errors but works? [message #125200] |
Sat, 23 July 2005 12:32 |
Eclipse User |
|
|
|
Thanks to the wonderful work to get RC2 have Axis 1.2 and getting those
other NullPointerException bugs worked out. Now I can successfully create my
web service.
I noticed that when I have arrays in the Java class and create the web
service from top down Java, the wsdl generated Axis code works great, and
yet eclipse says there are compile errors. Is there something I can do about
this?
Take this simple example:
package wst;
public class Food
{
public void takesArrayOfString(String[] array)
{
}
}
The generated wsdl has two "errors" but still works:
The fourth line of this snippet generates the following compile error
The prefix "wsdl" for attribute "wsdl:arrayType" associated with an element
type "attribute" is not bound.
<complexType name="ArrayOf_xsd_string">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
<--- This line
</restriction>
</complexContent>
The second line of this code snippet generates the following compile error
The part 'array' has an invalid value 'ArrayOf_xsd_string' defined for its
type. Type declarations must refer to valid values defined in a schema.
<wsdl:message name="takesArrayOfStringRequest">
<wsdl:part name="array" type="impl:ArrayOf_xsd_string"/> <--- This
line
</wsdl:message>
|
|
|
Powered by
FUDForum. Page generated in 0.04415 seconds