I have a question about transfering complex objects between client and server. if I just transfer primitive data type, any language of client side can consume this web service. but how about if I transfer complex object?
for example, in the server side, I use java to make a bean--bean1, in this bean, there is a variable bean2, it's also a java bean with primitive variables. though WSDL file, I know the complex data type is mapped to primitive data type at last. but I don't know if the client side can consume this web service if it's made by c language or perl language. also, supposing such kind of client side can consume this web service, can the client side transfer back this bean object to server and server can recognize it?
I really confused about this, from theory, web service is platform indepedent, does it mean language indepedent? or conditionally? does there any samples or articles about it?
Yes, ideally webservices is language independent as well. As for as your complex types is concerned, your clients should be able to consume it inspite of c or perl. Java based Webservices takes care converting input xml based complex objects to java objects and vice versa. If your client is based on c or perl, yes they can still convert the input xml(soap response consisting the complex objects) in to their own objects types.(ideally).
The best bet is to develop a sample using apache axis and try to consume it using .NET or soap:lite or apacheaxisforC.
I tried to transfer a java bean which has again java bean's as fields but I was not successfully and I keep on getting axis fault "java.io.IOException: No serializer found for class weather in registry org.apache.axis.encoding.TypeMappingImpl@4aa0ce"
Still trying my luck ...
Joined: Sep 17, 2001
Alas! I was successfull in (de)serializing a java bean that has a java bean as a field.
Joined: Nov 06, 2004
thank you very much, Balaji Loganathan! could you please tell me where I can find some examples or articles about this?
Dear Nritya Priya, what's your client language? Java or something else? if not java, could you please send me a copy of whole source code? my email address is: email@example.com
Joined: Sep 17, 2001
Both my client and server use Java language ...
author and deputy
Joined: Jul 13, 2001
Originally posted by sam wzm: thank you very much, Balaji Loganathan! could you please tell me where I can find some examples or articles about this?
You mean a sample example for complex types webserivces ?? if so there is a simple one available at axis sample pack