There are a couple of web service frameworks out there, one by Sun (JWSDP) and one by Apache (Axis). After using both, I would say Axis is brilliant. Check out the JAX-RPC examples - this will let you publish a web service. And, yes, our web service is consumed by a client running .NET.
Sedj -
Any comments on limitations of data that can be passed back & forth? I would assume that you need to restrict yourself to simple datatypes, like strings, integers, etc. and not try and pass full objects.
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
The datatypes are pretty much the same as you would see in IDL, C, or Java - doubles, ints, strings, floats, longs etc. You may also send binary data as long as it is base64 encoded (I think frameworks usually do this for you if you return a byte[] array from a method, but I usually do it explicitly). So in theory, you could serialize any (Serializable) object into a byte[] array, convert it to base64, and send that over the network with no problems.
The only catch being ... the class on the distant end would need to know how to deserialize your base64 string, right?
I think this is what I was concerned about -- when both ends are using the same technology (whether Java or .NET), it's pretty easy because you can deploy a class to both ends that knows how to do it. But when you're in a mixed environment (Java on one end, .NET on the other), you have to write two classes, and the format of their serialized string has to be identical.
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
I'm not so sure Chip... we send base64 encoded map images via SOAP. The server is written in Java (using Axis) and the client is in ASP. They have no problems decoding the data (image) ... the WSDL describes the kind of data being sent ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.