Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Axis generated WSDL has compile errors but works?
Axis generated WSDL has compile errors but works? [message #125200] Sat, 23 July 2005 12:32
Eclipse UserFriend
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>
Previous Topic:WTP RC2 and JbossWS 4.0.3RC3
Next Topic:JDKjdk-6_0-ea-bin-b43-windows-i586-14_jul_2005
Goto Forum:
  


Current Time: Wed Jul 16 12:02:05 EDT 2025

Powered by FUDForum. Page generated in 0.04415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top