You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by "MILLER,MARK M (HP-Corvallis,ex1)" <ma...@hp.com> on 2002/05/29 22:00:04 UTC

How do I return a java.util.Properties object through the rpcrout er servlet?

Hello,
 
I'm having trouble finding an example of a SOAP client that calls a method
on the server with returns a Properties object. The method is being called
(I'm reading the print lines in the log file) but I'm not getting any data
back.
 
Regards,
 
Mark

RE: How do I return a java.util.Properties object through the rpcrout er servlet?

Posted by Erich Izdepski <ei...@cysive.com>.
Apache SOAP has Map and Hashtable serializers. I realize a Properties object
extends a Hashtable and because of that you *might* get away with using the
HashtableSerializer, but the SOAPMappingRegistry only has entries for Map
and Hashtable. You could add your own mapping and give it a try- call the
SOAPMappingRegistry.mapTypes method to do the mapping (see the Apache api or
source code for how this is done).

For an Apache client sample using Maps, Hashtables, and much more see
http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-soap/java/samples/interop/E
choTestClient.java

This is the client used in the Apache SOAP interoperability testing.


Erich Izdepski
Senior Software Engineer
Cysive, Inc.


-----Original Message-----
From: MILLER,MARK M (HP-Corvallis,ex1) [mailto:mark_m_miller@hp.com]
Sent: Wednesday, May 29, 2002 4:00 PM
To: 'soap-user@xml.apache.org'
Subject: How do I return a java.util.Properties object through the
rpcrout er servlet?


Hello,

I'm having trouble finding an example of a SOAP client that calls a method
on the server with returns a Properties object. The method is being called
(I'm reading the print lines in the log file) but I'm not getting any data
back.

Regards,

Mark


RE: How do I return a java.util.Properties object through the rpcrout er servlet?

Posted by Erich Izdepski <ei...@cysive.com>.
Apache SOAP has Map and Hashtable serializers. I realize a Properties object
extends a Hashtable and because of that you *might* get away with using the
HashtableSerializer, but the SOAPMappingRegistry only has entries for Map
and Hashtable. You could add your own mapping and give it a try- call the
SOAPMappingRegistry.mapTypes method to do the mapping (see the Apache api or
source code for how this is done).

For an Apache client sample using Maps, Hashtables, and much more see
http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-soap/java/samples/interop/E
choTestClient.java

This is the client used in the Apache SOAP interoperability testing.


Erich Izdepski
Senior Software Engineer
Cysive, Inc.


-----Original Message-----
From: MILLER,MARK M (HP-Corvallis,ex1) [mailto:mark_m_miller@hp.com]
Sent: Wednesday, May 29, 2002 4:00 PM
To: 'soap-user@xml.apache.org'
Subject: How do I return a java.util.Properties object through the
rpcrout er servlet?


Hello,

I'm having trouble finding an example of a SOAP client that calls a method
on the server with returns a Properties object. The method is being called
(I'm reading the print lines in the log file) but I'm not getting any data
back.

Regards,

Mark