Hi Eric,

I am not sure I fully understand your question.

Maybe something like

    Request123 req = new Request123();
    User user = new User();

    user.setId?(??)

    ArrayOfAnyType arrayType = ArrayOfAnyType.Factory.newInstance();
    arrayType.setSomeArrayIds(new SomeObjectIdType[] { user } );

    user.setAccounts(ArrayOfAnyType?????);
    req.setUser(user);
    Response321 response = stub.getSomething(req);

The hint is to let your IDE do the thinking, create the objects, looks at
the setters, and let the IDE create the variables needed.
Then cross reference with the WSDL to try and understand how its all
related.

Hope it helps
Andrew



On Thu, May 14, 2009 at 1:43 AM, <[email protected]> wrote:

>
> I have created and Axis 2 client using a WSDL from a .NET web service.
>
> I have encountered an object which utilizes the ArrayOfAnyType object.
>
> So the requesting code looks similar to this:
>
> Request123 req = new Request123();
> User user = new User();
> user.setAccounts(ArrayOfAnyType?????);
> req.setUser(user);
> Response321 response = stub.getSomething(req);
>
>
> On the .Net side of things it is simply an array of Objects (Object[]).
>  But from the Java WS client perspective, I'm not sure how to go about it?
> Do I have to create an array of OMElements?
>
> If someone can give me a quick sample, I'd appreciate it.
>
> Thanks!
>
> ------------------------------
> This message is intended only for the addressee. It may contain privileged
> or confidential information. Any unauthorized disclosure is strictly
> prohibited. If you have received this message in error, please notify us
> immediately so that we may correct our internal records. Please then delete
> the original email. Thank you. (Sent by Webgate1)
>

Reply via email to