• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

Java Deserializer is converting the String word to numeric

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
vvsrk76
Asked:
vvsrk76
  • 4
1 Solution
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
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
 
vvsrk76Author Commented:
com.ibm.ws.webservices.engine.encoding.SerializationContext class simpleElement method
is converting the value..

context.simpleElement(propQName, null, propValue.toString()); is doing conversion.
0
 
vvsrk76Author Commented:
Please help me in this...

Now I can't change to other WS client.. We are in web sphere commerce product
0
 
vvsrk76Author Commented:
Resolved using Websphere SDO generation
0
 
vvsrk76Author Commented:
Commerce solution
0

Featured Post

Technology Partners: 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!

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now