users@jax-rpc.java.net

Re: wsompile: WSI + DocumentLiteral + unwrap and C# .NET parameter names or?

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Mon, 15 Nov 2004 09:22:09 -0800

Phillip Lindsay wrote:

> When I have interface like this:
>
> public Event[] listEventsByDateRange(
> Calendar fromDate, Calendar toDate, int recordOffset,
> int recordCount) throws RemoteException
>
> And wscompile it via -f wsi -f documentliteral -f unwrap
>
> I get a wsdl interface which uses this type for interface parameter:
>
> <complexType name="listEventsByDateRange">
> <sequence>
> <element name="Calendar_1" type="dateTime" nillable="true"/>
> <element name="Calendar_2" type="dateTime" nillable="true"/>
> <element name="int_3" type="int"/>
> <element name="int_4" type="int"/>
> </sequence>
> </complexType>
>
> So in .NET C# generated web reference I deal with this construct:
>
> EventService.listEventsByDateRange listEve =
> new EventService.listEventsByDateRange();
> listEve.Calendar_1 = new DateTime();
> listEve.Calendar_2 = new DateTime();
> listEve.int_3 = 0;
> listEve.int_4 = 10;
> EventService.Event[] eves =
> eventService.listEventsByDateRange(listEve);
>
> Is there anyway to pass the parameters names into WSDL generation?

Not in JAXRPC 1.1. JAXRPC 2.0 will have such capability.

> Suggestions for best wscompile options for C#.NET? (when going from
> java to wsdl)
>
> Thanks,
> -phil
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net