In wsdl file that you attached some complex types are subset of SOAP-ENC:Array, so not ALL the elements belong to standard XSD name space ("http://www.w3.org/2001/XMLSchema";). You should get rid of them. Here is an example:

<xsd:complexType name="ArrayOfSoapItems">
<xsd:complexContent>
<xsd:restriction base="soap-enc:Array">
<xsd:attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:Item[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>


<xs:complexType name="ArrayOfItems">
<xs:sequence>
<xs:element name="Item" type="tns:Item" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>

On 11/06/11 20:38, fire fox wrote:
Thanks for your reply.

I'm a bit confused. All the elements are already xsd in my WSDL. Could
you please give me a clear idea on changing ?

On Fri, Jun 3, 2011 at 9:57 AM, Dmitry Ruban<[email protected]>  wrote:
Hi there,

You have to rewrite your schema as well. Here is a good article
http://axis.apache.org/axis2/java/core/docs/Axis2-rpc-support.html

Axis2 doesn't  support "SOAP-ENC" name space, you need to move everything to
"xsd"


On 26/05/11 19:04, fire fox wrote:

Hi all,
       I'm trying to edit wsdl file since Axis2 does not support rpc/encoded
transport style.
After I replaced the encoded element with 'literal', I'm still getting some
errors.
Like :
Exception in thread "main" org.apache.axis2.AxisFault:
org.apache.axis2.databinding.ADBException: Unsupported type
http://schemas.xmlsoap.org/soap/encoding/ Array
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

I'm suspicious about following element presence.
---<xsd:restriction base="SOAP-ENC:Array">
--- Also, two imports.
  <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/";
schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
  <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/";
schemaLocation="http://schemas.xmlsoap.org/wsdl/"/>
I've attached the original wsdl file from their website. Please help me
editing WSDL so that I consume it using Axis2.
Please help.


---------------------------------------------------------------------
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]

Reply via email to