axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20452] New: - style="document", reference but not defined problem. Also duplicate element name.
Date Tue, 03 Jun 2003 15:35:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20452>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20452

style="document", reference but not defined problem.  Also duplicate element name.

           Summary: style="document", reference but not defined problem.
                    Also duplicate element name.
           Product: Axis
           Version: 1.1rc2
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: kmb@mssl.ucl.ac.uk


I have created a very very simple class that has one string variable, one set 
method that takes a string and one get method to return a string file.  The 
wsdd file I made is very simple with a style="document".  After I deploy it in 
axis and try to run WSDL2Java I get a:
C:\test>java org.apache.axis.wsdl.WSDL2Java 
http://localhost:8080/axis/services/AgainTestDoc?wsdl
java.io.IOException: Element {http://schemas.xmlsoap.org/wsdl/}in0 is 
referenced but not defined.
I have also tried saving the wsdl from my browser as a seperate file and got 
the same result.
wsdd file:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <service name="AgainTestDoc" provider="java:RPC" style="document">
  <parameter name="className" value="test.AgainTestDoc"/>
  <parameter name="allowedMethods" value="*"/>
 </service>
</deployment>

One other thing is another Test class I made that had 2 int variables (a1,a2) 
their set and get methods along with an addThem method that returned an int. I 
got the same error as above plus error saying duplicate element.  Here is a 
snippet of the wsdl:types:
<wsdl:types>
- <schema targetNamespace="" xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> 
  <element name="in0" type="xsd:int" /> 
  <element name="getA1Return" type="xsd:int" /> 
  <element name="in0" type="xsd:int" /> 
  <element name="getA2Return" type="xsd:int" /> 
  <element name="addThemReturn" type="xsd:int" /> 
  </schema>
  </wsdl:types>

Okay thanks, hope this is an actual bug and that I didn't waste time because I 
did not know how something worked.  
Oh later on just to see if I would get the same results I made these small 
interfaces and used the Java2WSDL to make a wsdl file and then WSDL2Java sure 
enough same errors.

Mime
View raw message