Convert Set to an array.
btw -- this is the Axis user list, not the Sun JAX-RPC user list. For questions about wscompile, you should query Sun's list.

Anne

On 1/9/06, Claudio Miranda <[EMAIL PROTECTED]> wrote:

    Well, though I should take a shot on document/literal, but received an error when tried to run wscompile tool.

~/javaSoftware/sjsas8/bin/wscompile -define -f:documentliteral -classpath bin/ -d etc/ -nd etc/ -mapping etc/mapping-usu-atu.xml config/config-interfaces-usu-atu.xml
error: Collection types are not supported in literal mode - Type: "java.util.Set"

    So, how can java.util.Set be used for document/literal ?

thanks


On Mon,  9 Jan 2006 12:36:39 -0200, "Claudio Miranda" <[EMAIL PROTECTED]> escreveu:
>
>
>    Thanks for your fast response:
>
>    At the moment I have no idea how to do that on wrapped document/literal, I have to do some reading before, but I don't have this time now.
>
>    As for the suggestion to add the parameter, is it configured at the server side ? If yes, I think it will not be possible, because the server side were developed with jax rpc (sun appserver 8).
>    So is there a way to do that on client side only ? btw, I tried to set that property on client side (call.setProperty("dotNetSoapEncFix", Boolean.TRUE);) but didn't work.
>
>    just to state clear, there are some ws operations that is working fine, other operations don't work. The difference between those operations, is the working operations has no arguments or have simple type arguments (java.lang.String or java.lang.Boolean), those that don't work, have complex objects as parameters.
>
> Thanks
>
> Claudio
>
> On 2006-01-07 20:42, Anne Thomas Manes wrote:
> >
> > My first recommendation is to not using SOAP encoding -- in other words, switch from rpc/encoded to wrapped document/literal.
> >
> > If for some reason that is not an option, then you need to tell Axis to use xsd types rather than soapenc types. You can do that
> > in your WSDD by adding this parameter:
> >
> > <parameter name="dotNetSoapEncFix" value="true"/>
> >
> > Anne
> >
> > On 1/6/06, Claudio Miranda <[EMAIL PROTECTED]> wrote:
> >
> >
> >         Forgot to write how the operations are invoked:
> >
> >         Another thing, on the implementation side, the object DominioDTO is received as parameter, some properties are
> > set (eg. dominioDTO.setName("kakak")), and returned back. Does this has something to do with ParameterMode ?
> >
> >     ##### this DOESN'T works
> >             Call call = CallUtil.createStandardCall(QNAME_SERVICE_NAME, QNAME_PORT_NAME, usuario, sei, senha);
> >             org.apache.axis.client.Call axisCall = (org.apache.axis.client.Call)call;
> >             axisCall.registerTypeMapping(DominioDTO.class, QNAME_DominioDTO, BeanSerializerFactory.class,
> > BeanDeserializerFactory.class);
> >             call.addParameter("DominioDTO_1", QNAME_DominioDTO, DominioDTO.class, ParameterMode.IN);
> >             call.setReturnType(QNAME_DominioDTO, DominioDTO.class);
> >             call.setOperationName(new QName(DOMINIO_CON_NAMESPACE_VALUE,"getDadosDominio"));
> >             DominioDTO[] params = new DominioDTO[]{ dominioDTO};
> >             return (DominioDTO) callGetDadosDominio.invoke(params);
>
>
> see complete thread at: http://www.nabble.com/-axis-unexpected-element-type-t867303.html
> --
--
  Claudio Miranda
_______________________________________________________________
  http://www.claudius.com.br/blog               http://www.summa-tech.com
  http://www.soujava.org.br


Reply via email to