Re: String Arrays Inside of Java Bean & JSDP (JAX-RPC)

From: Kathy Walsh <Kathleen.Walsh_at_Sun.COM>
Date: Mon, 17 Oct 2005 11:33:19 -0400


It sounds like you must be using a DII client or a Dynamic Proxy client
for jaxrpc 1.X. Is this correct? In Jaxrpc 1.X, DII and Dynamic Proxy
invocations were intended for use with very simple types. To use
them with more complex types then the developer will have to register
serializer/deserializers in the TypeMappingRegistry as you have found.

If you used a static stub client with jaxrpc 1.X you should have no problems
with an array of strings.


tony anecito wrote:

> Hi,
> I was asked to leave my question here on this mailing list.
> The question is why does JWSDP ask for registration of array of
> strings? I have read that this should not happen and I am using 1.6
> with JDK
> 1.5 update 4 where I have an array of strings inside an java bean. I
> return the java bean from a web service method. After creating
> the client (using jwsdp wscompile) app and using the static stub
> approach when invoking the method at runtime I get the exception
> arrayOf_xsd_string is not registered. I tried registering the array of
> strings on
> the client side using the TypeMappingRegistry and I still get the error.
> It seems as if perhaps JWSDP (JAX-RPC) does not read the registry on
> the client side.
> I have seen examples on the web that where array of strings works but
> they are where an array of strings is returned but not from inside an
> java bean. I have followed the java bean standards rega! rding
> getter/setter and constructor when creating the bean class.
> Does anyone have a working example of an array inside a java bean
> that works or does not require registration?
> I have also had the same issue with array of objects or a vector in
> place of the array of strings.
> I am sure it must be something I do not understand.
> Any thoughts or simular experiences appreciated.
> Thanks
> ------------------------------------------------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> <**>