Solved

Java Deserializer is converting the String word to numeric

Posted on 2013-02-04
5
266 Views
Last Modified: 2013-04-09
I generated the client for UPS address validation using by IBM Web services WSDL2Java emitter.

For some Reason  when we pass the String like "Thousand Oaks", we are getting back as "1000 OAKS".Is there any issue with com.ibm.ws.webservices.engine.encoding.Deserializer getDeserializer method

Where it is converting "Thousand" to "1000"
Here is Code:

System.out.println("PropValue" + propValue);
          if (propValue != null && !context.shouldSendXSIType()) {
              System.out.println("PropValue A" + propValue);
            context.simpleElement(propQName, null, propValue.toString());
            System.out.println("PropValue B" + propValue);

Thank You...
0
Comment
Question by:vvsrk76
  • 4
5 Comments
 
LVL 35

Expert Comment

by:mccarl
ID: 38853808
It is probably the web service that is doing the conversion. Can you test this with some other WS client, to check whether the conversion is not specific to your code?
0
 

Author Comment

by:vvsrk76
ID: 38855823
com.ibm.ws.webservices.engine.encoding.SerializationContext class simpleElement method
is converting the value..

context.simpleElement(propQName, null, propValue.toString()); is doing conversion.
0
 

Author Comment

by:vvsrk76
ID: 38856548
Please help me in this...

Now I can't change to other WS client.. We are in web sphere commerce product
0
 

Accepted Solution

by:
vvsrk76 earned 0 total points
ID: 39049468
Resolved using Websphere SDO generation
0
 

Author Closing Comment

by:vvsrk76
ID: 39061214
Commerce solution
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question