Advertisement

05.14.2008 at 02:38PM PDT, ID: 23403268 | Points: 500
[x]
Attachment Details

Returning boolean with JAX-RPC Web Service

Tags: Java
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-type>
        <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:boolean</root-type-qname>
        <qname-scope>simpleType</qname-scope>
    </java-xml-type-mapping>
Start your free trial to view this solution
Question Stats
Zone: Web Development
Question Asked By: BergJC
Question Asked On: 05.14.2008
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
05.14.2008 at 04:31PM PDT, ID: 21569547

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.14.2008 at 08:11PM PDT, ID: 21570430

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.14.2008 at 08:12PM PDT, ID: 21570438

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 04:19AM PDT, ID: 21572324

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 06:40AM PDT, ID: 21573486

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 07:03AM PDT, ID: 21573717

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 07:55AM PDT, ID: 21574301

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 08:06AM PDT, ID: 21574441

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 10:13AM PDT, ID: 21575967

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 06:17PM PDT, ID: 21579149

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 06:57PM PDT, ID: 21579321

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 07:01PM PDT, ID: 21579337

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.20.2008 at 08:47AM PDT, ID: 21607322

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.20.2008 at 09:10AM PDT, ID: 21607611

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.20.2008 at 01:09PM PDT, ID: 21609885

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.20.2008 at 01:26PM PDT, ID: 21610032

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.20.2008 at 02:16PM PDT, ID: 21610444

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.20.2008 at 04:09PM PDT, ID: 21611053

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628