axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <robertlazar...@gmail.com>
Subject Re: Array is not supported
Date Wed, 17 Jan 2007 16:30:31 GMT
RPC/encoded is legacy and axis2 doesn't support it. Take a look at
this article for your other options:

http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/

HTH,
Robert

On 1/17/07, Jon Horsman <horshaq@gmail.com> wrote:
> Hey All,
>
> I'm new to SOAP and axis, and am trying to come up to speed.  I have
> been given a wsdl file at work and have been told to investigate how
> we could build a web service around it with axis/java.
>
> So far everything is going ok until one of the wsdl files had an array
> in it.  I got the following error when trying to use wsdl2java
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> .
> .
> .
> Caused by: org.apache.axis2.schema.SchemaCompilationException:
> {http://schemas.xmlsoap.org/soap/encoding/}Array is not supported.
>
>
> I've done some googling and found "This is not a bug but a known
> restriction- we don't support SOAP Encoding style arrays."  Being new
> to SOAP i'm not sure exactly what this means.  The wsdl file i was
> given has lines like
>
>   <complexType name="ArrayOfFieldIn">
>    <complexContent>
>     <restriction base="SOAP-ENC:Array">
>      <sequence>
>       <element name="item" type="ma:FieldIn" minOccurs="0"
> maxOccurs="unbounded"/>
>      </sequence>
>      <attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ma:FieldIn[]"/>
>     </restriction>
>    </complexContent>
>   </complexType>
>
> Its obvious its the "SOAP-ENC:Array" that is causing this problem.
> This probably a stupid question, but is there another way to use
> arrays with axis, perhaps a non SOAP-ENC type?  How do people work
> around the need to use arrays?  I'm being pressed for time to give an
> an answer to "can we make this work?" and i'm not sure what that
> answer should be.
>
> Any help would be much appreciated.
>
> Jon.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message