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