Hello -
I'm fairly new to web services, so this seems like an easy question, but I can't find the answer. I've converted an existing web service from Axis to JAX-RPC using IBM's WDSC development environment. It's a simple service, it has one method that accepts a String and returns a boolean. When I intercept the SOAP envelope, the boolean return value gets converted to a 0/1. I realize those are technically valid values but the agency that communicates with our service already has a client expecing a true/false value and we don't want any code changes from their side. When I had the service in Axis, it returned a true/false.
So, my question is - is there a way I can force it to translate the Java boolean to true/false, rather than 0/1? I've look at the JAX RPC mapping file and think it might be in there somewhere, but I can't figure it out.
You might need more details to fully understand the question, but here's the snippet for that mapping file:
<java-xml-type-mapping>
<java-type>boolean</java-t
ype>
<root-type-qname xmlns:rtq="
http://www.w3.org/2001/XMLSchema">r
tq:boolean
</root-typ
e-qname>
<qname-scope>simpleType</q
name-scope
>
</java-xml-type-mapping>