users@jax-rpc.java.net

Re: Dynamically creating services

From: kathy walsh <Kathleen.Walsh_at_Sun.COM>
Date: Wed, 06 Oct 2004 13:05:00 -0400

Sorry-
Didn't catch the server side reference-
The answer is with JAXRPC 1.1 not at this time-
Kathy

Derek Richardson wrote:

>Hmm, yes, it is the server equivalent of a DII client - I want to
>dynamically expose services at runtime, not consume them. The client
>might actually be static stub, but the server is dynamic. But this is
>not covered (AFAIK) by the tutorial or any documentation. A specific
>reference is appreciated.
>
>Thanks,
>
>Derek
>
>
>
>>-----Original Message-----
>>From: kathy walsh [mailto:Kathleen.Walsh_at_Sun.COM]
>>Sent: Wednesday, October 06, 2004 12:16 PM
>>To: users_at_jax-rpc.dev.java.net
>>Subject: Re: Dynamically creating services
>>
>>Derek-
>>If I understand correctly what you are asking, a jaxrpc dii
>>client seems
>>like
>>what you are looking for- The catch with dii, is that Object
>>parameters
>>and return
>>types need to be very simple unless you register serializers in the
>>serializer registry-
>>
>>Object return = call.invoke(Object[] params)
>>
>>Please see the jwsdp 1.4 tutorial that is available on
>>java.sun.com/webservices
>>ant the jwsdp 1.4 developer pack also downloadable.
>>
>>If you have more questions after this, please be in touch-
>>Kathy
>>
>>
>>Derek Richardson wrote:
>>
>>
>>
>>>Flip side of my last question: now I want to dynamically create
>>>services. I can write an implementation like this:
>>>
>>>Class Impl {
>>> public boolean doSomething(Object[] params) {
>>> ...
>>> }
>>>}
>>>
>>>Now, I want to expose this implementation as different
>>>
>>>
>>operations to end
>>
>>
>>>users, each with a unique name and potentially different parameters
>>>(declared explicitly, not as an Object[]), though it will
>>>
>>>
>>always return
>>
>>
>>>boolean. And I want to do this dynamically, at runtime.
>>>
>>>Any advice on how to do this?
>>>
>>>Thanks,
>>>
>>>Derek Richardson
>>>
>>>---------------------------------------------------------------------
>>>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
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>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
>
>
>