Solved

Java Deserializer is converting the String word to numeric

Posted on 2013-02-04
5
264 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now