Nishant Joshi wrote:
Hi All,
I am not sure if this issue is already raised, But i am getting following issue. I have defined complex type (bean) as parameter for the service. I can also see the generated WSDL via <URL>?wsdl. But when try to generated java from it using org.apache.axis.wsdl.WSDL2Java or eclipse WS client generation utility i am getting following error:
java.io.IOException: Type paramBean is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Unknown Source)
Auto generated WSDL is like blow
<xs:schema version="*1.0*" xmlns:xs="*http://www.w3.org/2001/XMLSchema*";>
 <xs:complexType name="*paramBean*">
<xs:sequence>
* * <xs:element minOccurs="*0*" name="*param*" type="*xs:string*" />
* * <xs:element minOccurs="*0*" name="*value*" type="*xs:string*" />
* * </xs:sequence>
* * </xs:complexType>
When i have changed WSDL manually like below it works
<xs:schema attributeFormDefault="qualified"
elementFormDefault="unqualified" targetNamespace="http://pojo.services.soa.core.my.com/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:complexType name="paramBean">
<xs:sequence>
<xs:element minOccurs="0" name="param" type="xs:string" />
<xs:element minOccurs="0" name="value" type="xs:string" />
</xs:sequence>
</xs:complexType>
So why autogenerated WSDL dont have this schema and it fails to generate java classes ? Thanks,
Nishant
Hi Nishant,
What does the Java code for paramBean look like?

  Simon

Reply via email to