Apache SOAP has intrinsic support for [de-]serialization of byte[] and String[]. You do not need to add any type mappings to get these to work. SOAPMappingRegistry maps byte[] to Base64Serializer, while String[] is handled by ArraySerializer working with the built-in serialization of String.
Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Serkan Oktar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 11, 2003 12:05 PM Subject: byte[] and T [] arrays unsupported ?! > > Hi folks, > > I am struggling with my first web service project on WSAD 5.01. > (J2EE1.2) > > I can create a web service from java bean and ejb without any problem, > if I don't use any method taking byte[] or String[] type parameter. I > couldn't understand why byte[] and String[] type arrays are unsupported. > I should use them. > > While creating web service via WSAD 5, on the java to xml page of web > service creation process, default java bean mapping settings for > String[] are as shown below. > > Encoding style: http://schemas.xmlsoap.org/soap/encoding/ > XML type schema name: http://schemas.xmlsoap.org/soap/encoding/ > XML type name: ArrayOfJava.lang.String > XSD location url: http://schemas.xmlsoap.org/soap/encoding/ > Bean class :String[] > > Why am I getting an error mesage indicating that i am using an > unsupported > array type. > > A more interesting point (for me!) is that I can use byte type array as > a return type in a method. I can get on client side the byte array, but > when > I want to send it back, the problem occurs. I can't write a method > taking a byte[] as a parameter. What am I missing? Is it a WSAD specific > problem or do I have a lack of knowledge about Array serialization. > > Any help will really be appreciated. > > Best Regards, > > Serkan Oktar > > >