Re: SOAP Serialization problem

2002-09-10 Thread Scott Nichol
Axis will consider superclasses and interfaces when trying to find a serializer for a parameter. To me, though, the bottom line is that even if you want to serialize a group of classes using a common interface, you still want to be able to deserialize them to their correct concrete class. To do

RE: SOAP Serialization problem

2002-09-10 Thread Alexandros Panaretos
Hi Scott This has been very helpful. I will try it out and I will let you know if it worked. Out of curiosity do you know if Apache Axis handles this kind of situation better? Thanks again for your help! Alex -Original Message- From: Scott Nichol [mailto:[EMAIL PROTECTED]] Sent: Tue

Re: SOAP Serialization problem

2002-09-10 Thread Scott Nichol
For an interface, you can use the BeanSerializer to serialize, assuming the interface has getters for all the properties you want to serialize. You can use the BeanSerializer to deserialize, but you must specify a concrete class to which to deserialize. (Note: I have not tried this, but it seems

RE: SOAP Serialization problem

2002-09-10 Thread Alexandros Panaretos
Hi Scott, Thanks for the example.Would I have to use my own interface serializer? Is there a way of using the BeanSerializer without having to create my own serializer? The reason I would like to avoid writing my own serializer is because when I try to distribute my application then all the clie

Re: SOAP Serialization problem

2002-09-10 Thread Scott Nichol
You are allowed to map just the interface, but you must provide the interface as the data type for the parameter, not the class. For example, if class MyClass implements interface MyInterface, you can do MyClass c = new MyClass(); MyInterfaceSerializer s = new MyInterfaceSerializer(); SOAPMappin

RE: SOAP Serialization problem

2002-09-10 Thread Alexandros Panaretos
Hi Scott, Thank you again for your reply I got one of the problems sorted. In the case of the interface I would like to ask another detail if possible please: When my Soap Client methods have a Java Interface Object that is has various concrete implementations do I have to provide the type mappin

Re: SOAP Serialization problem

2002-09-10 Thread Scott Nichol
You can pass a JavaBean that has a property that is a Vector of another JavaBean, but you must supply a mapping for the other class. Basically, any type you want to serialize that is not a Java primitive (e.g. float, int), wrapper (e.g. Float, Integer) or one of the few others with built-in seria

Re: Reusing code

2002-09-10 Thread Scott Nichol
Owen, The presence of the IBM license is somewhat troubling. I note that this file is very similar to org.apache.axis.encoding.Base64. In fact, the Axis code appears to be the same as was originally checked into Soap, but with an Apache license. The Axis code appears to be missing the one updat

Reusing code

2002-09-10 Thread Owen D Burroughs
Hi, I'm currently working on a class for Apache WSIF that will use HTTP Proxy Authorization. This will require base64 encoding and I'd like to resuse the code from the org.apache.soap.encoding.soapenc.Base64 class. I have two questions regarding this: 1) WSIF does not have a dependency on Apache

RE: SOAP Serialization problem

2002-09-10 Thread Alexandros Panaretos
Hi Scott, Thanks for your e-mail. The problems I had before I managed to solve. I discovered that when you are passing JavaBeans through SOAP using the Bean Serializer despite the setters & getters you should and the empty constructor if you have any other methods that start with a get or set you

cvs commit: xml-soap/java/src/org/apache/soap/util Bean.java

2002-09-10 Thread snichol
snichol 2002/09/10 00:27:25 Modified:java/samples/interop DataSerializer.java java/src/org/apache/soap/encoding/soapenc ArraySerializer.java java/src/org/apache/soap/server/http RPCRouterServlet.java java/src/org/apach

cvs commit: xml-soap/java/src/org/apache/soap/server ServiceManager.java

2002-09-10 Thread snichol
snichol 2002/09/10 00:02:02 Modified:java/src/org/apache/soap/server ServiceManager.java Log: Register DOMFaultHandler for the ServiceManager to provide clients with a stack trace on faults. Revision ChangesPath 1.18 +2 -0 xml-soap/java/src/org/apache/soap/se