Hi,
 
it may not be an option for you, but what I do is I still use WSDL2Java from axis 1.2-RC3 and then use axis 1.4 in my code. So far that combination is working fine, the java classes get generated as they are defined ni the wsdl (I get classes generated for the wrapping array), but it means some extra steps in the code.
 
ie: My function will return a StringArray custom object instead of String[]. I have to create the StringArray object, set the String[] in it and return it. Same thing for input parameters. Not a big deal though.
 
I found out that using any other version of axis was altering my WSDL once it is deployed compared to my original one, so I sticked with 1.2-RC3. (Didn't really test 1.4 as I was lacking time, but seeing this post I am not in a hurry to do so).
 
Daniel

 
On 8/2/06, Amit Andhale <[EMAIL PROTECTED]> wrote:
Hi Pradeep,
I faced same problem as you.
I have an workaround for this problem.
Instead of returning Array directly from a Function you can Wrap that array inside Class and return object of that class from your function.
You will get both Array and Array inside this Array.
 
Amit


 
On 8/1/06, Anne Thomas Manes <[EMAIL PROTECTED] > wrote:
I thought it was fixed in 1.4, but recent postings to the list make
think that it wasn't.
The bug is that Axis uses the same element name for both the array
wrapping element and the array items. e.g.,

<arrayofFoo>
<arrayofFoo>...</arrayofFoo>
<arrayofFoo>...</arrayofFoo>
</arraryofFoo>

instead of

<arrayofFoo>
  <foo>...</foo>
  <foo>...</foo>
</arrayofFoo>

One way to work around this problem is to use unwrapped arrays.

Anne

On 7/31/06, Pradeep Reddy < [EMAIL PROTECTED]> wrote:
> Anne,
>
> Thanks for your quick reply.
>
> I looked up JIRA and found this issue.
> http://issues.apache.org/jira/browse/AXIS-2267
> PublishedAsset is a subclass but I don't have any mixed type arrays. So this
> might not be the bug that you are referring to.
> I applied the patch to this issue to the
> org.apache.axis.encoding.SerializationContext and ran into
> the same issue again.
>
> Was this bug fixed in axis 1.4?
>
> Regards,
> Pradeep
>
>
>  On 7/31/06, Anne Thomas Manes < [EMAIL PROTECTED]> wrote:
> >
>  This is a bug in the way Axis 1.3 manages arrays.
>
>
> On 7/31/06, Pradeep Reddy <[EMAIL PROTECTED]> wrote:
> > Hi all,
> > I am using Axis 1.3.
> >
> > My webservice is sending back a response that is similar to this for
> couple
> > of contained objects.
> > ....
> > <iv_contactInfo>
> > ...
> > <iv_contactInfo>
> > ...
> >
> > However, .NET is expecting
> > ..
> > <ContactInfo>
> > <iv_contactInfo>
> > ....
> > <iv_contactInfo>
> > <ContactInfo>
> > ..
> > and returns null values for ContactInfo objects.
> >
> > ContactInfo is the type of object that client builds after recieving the
> > response.
> > Please note that Contactinfo is returned as part of a larger object
> > PublishedAsset.
> >
> > PublishedAsset
> >    -- ArrayOfAssetContact
> >           --AssetContact
> >               ---ContactInfo
> >
> > Has anyone seen this issue before?  Any help would be greatly appreciated.
> >
> > Thanks,
> > Pradeep
> >
> >
>
> ---------------------------------------------------------------------
> 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