Jos van den Oever wrote:

For an application handling different types of web services, I'd like to map all messages to java.lang.String instances that contain the raw XML for each part. How can I do this?


hi,

as you are going to send actually XML i would try to use DOM Node instead and parse XML string into DOM node if necessary?

did you try to do this?

thanks,

alek

I've tested various possibilities on a client that returns an xsd:float and all of them give back xsd:float as java.lang.Float.

1) Not setting the mapper in my WSIFServiceFactory or setting it to "org.apache.wsif.mapping.WSIFDefaultMapper".

2) Overriding WSIFMapper to map everything to "java.lang.String" and setting it in WSIFServiceFactory.

3) Overriding WSIFMappingConvention to map everything to "java.lang.String" and setting it in WSIFServiceFactory.

4) calling mapType(new QName("{http://www.w3.org/2001/XMLSchema}float";), String.class) on the WSIFService instance.

Can somebody point out to me what I'm doing wrong here?
The service I'm using to test this is http://www.xmethods.net/sd/2001/TemperatureService.wsdl which contains a soap binding.
Axis version: 1.1
WSIF version: current CVS


Thanks, Jos




--
The best way to predict the future is to invent it - Alan Kay



Reply via email to