Well, thank you for the reply. But my problem, has stated, is that I
want to make available my WSDL to my clients in a specified host and
port. Then, they (the clients) by dynamic wsdl generation ( with
?wsdl) get the wsdl of the service I've made available. It is in that
moment, that the arrayof_soapenc_int array gets correctly generated,
but for some reason the type changes, without my intervention, to
arrayof_xsd_int, and for my unfortune, the types changes the precise
moment my client wants to generate the axis client stubs... Still,
struggling to find a solution...
And the solution you provided, seems correct, but the problem is that
the type I am currently speaking of is a primitive one, more precisely
is an Integer[] that I want to be mapped to arrayof_soapenc_int, not
to, arrayof_xsd_int, because the last one doesn't allow
me to pass null values.
Meanwhile, I've forced the TypeMappingImpl.dotnet_soapenc_bugfix =
false; in my handler with the following method:
public void initServiceDesc(SOAPService service, MessageContext msgContext)
throws AxisFault {
(....)
((TypeMappingRegistryImpl)tmr).doRegisterFromVersion("1.0");
(....)
}
The doRegisterFromVersion("1.0") sets the dotnet_soapenc_bugfix to
false, and install's a default soapencoding mapping. But
still, doesn't work...
Does anyone know another solution?
On 12/7/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
If you want to use soapenc types, you should not use the dotNet SOAP
Encoding bug fix. You might try defining your own type and explicitly
specify nillable="true".
On 12/7/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote:
> Nobody knows the answer for this? ...
>
> On 12/6/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote:
> > Hi you all,
> >
> > I'm getting all stressed out with a strange behaviour in Axis version 1.4.
> > When I deploy a webservice, with my own custom handler, the wsdl gets
> > generated. One of the methods, has a parameter of the type
> > ArrayOf_soapenc_int. That is fine, because what I want to do, when I
> > generated my client stubs, is to get an array of Integer's, that is:
> > Integer[] corresponding to the ArrayOf_soapenc_int.
> >
> > But now, the freaky thing... The same webservice, without even
> > stopping it, magically changes ArrayOf_soapenc_int to ArrayOf_xsd_int
> > when I generate the wsdl again (changes it randomly , without any
> > cause) and when I generate the client stubs again, I get of course, an
> > int[] array. And that is not fine, because I want to be able to send
> > nulls.
> >
> > Now, why does Axis, all the sudden changes the type to
> > ArrayOf_soapenc_int, to ArrayOf_xsd_int?? I've searched the web
> > forums, and one person said that the parameter dotnet_soapenc_bugfix,
> > is not reliable, because it can change at any time...Is this true? Is
> > the parameter dotnet_soapenc_bugfix causing this strange behaviour?
> > Because I repeat, Axis changes the parameter type in the wsdl, without
> > even stopping...And only happens to array types...
> >
> > I appreciate any help. Because this is very strange indeed...
> > Thanks,
> > Miguel Ricardo
> >
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]