After playing around a bit more.. I found that the root of the problem
is I cant get wsdl2java working with the StringArray type...
I get the following error..
[exec] at java.lang.reflect.Method.invoke(Method.java:597)
[exec] at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.eng
age(SimpleDBExtension.java:50)
[exec] ... 3 more
[exec] Caused by:
org.apache.axis2.schema.SchemaCompilationException: Attri
bute QName reference refer to an invalid attribute
{http://schemas.xmlsoap.org/s
oap/encoding/}arrayType
Although arrayType is defined in the schema so I'm not sure what the
problem is..
..Chris
-----Original Message-----
From: Johnson, Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 9:36 AM
To: [email protected]
Subject: Axis2 and arrayTypes
All -
I have a wsdl that's defined a string array as the following..
<!-- StringArray Type -->
<xsd:complexType name="StringArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd:string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
Later in the WSDL I use the string array in an element by doing
something like the following as part of another complexType
<xsd:complexType name="MyComplexType">
<xsd:all>
<xsd:element name="name" wsdl:arrayType="xsd:string"/
<xsd:element name="array" wsdl:arrayType="typens:StringArray"/>
</xsd:all>
</xsd:complexType>
After running wsdl2java and working in the generated code I don't see
how I can get the 'StringArray' type out of the 'MyComplexType' I would
expect to see something like this..
MyComplexType.getArray() to return String[]
Just as MyComplexType.getName() returns a String.
This was never a problem with Axis1, how do I go about this in Axis2?
Thanks.
..Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]