Solved

Java Deserializer is converting the String word to numeric

Posted on 2013-02-04
5
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 36

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

691 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