RE: output parameters
"Alex Cruise" <[email protected]> Tue, 19 Nov 2002 12:06:51 -0800
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <12A0F219F2129B43A9D4354EAFB47D3F01A8F2C4@bcinfoexch01.infowave.com> |
From: Rusitschka Steffen [mailto:[email protected]] > i've had a look at the source of ksoap. it doesn't seem to be > possible to > access the output parameters returned from a web services. is > this feature > really missing? is it planned to add it in the near future? IIRC you have to use the ClassMap. Add entries to it with parameters for the URI, XML element name and Deserializer implementation. Your deserializer implementation should be called about all the child elements of the element you've tied it to. Here's what I did: Class c = Class.forName( deserializerClassName ); ClassMap classMap = new ClassMap(); classMap.addMapping( "urn:foo:bar", "FooResponse", c ); _transport.setClassMap(classMap) Then, in my Deserializer implementation, I have receiveProperty( String name, Object value ) which gets called by KSoap. -0xe1a