Link to home
Start Free TrialLog in
Avatar of vvsrk76
vvsrk76

asked on

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...
Avatar of mccarl
mccarl
Flag of Australia image

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?
Avatar of vvsrk76
vvsrk76

ASKER

com.ibm.ws.webservices.engine.encoding.SerializationContext class simpleElement method
is converting the value..

context.simpleElement(propQName, null, propValue.toString()); is doing conversion.
Avatar of vvsrk76

ASKER

Please help me in this...

Now I can't change to other WS client.. We are in web sphere commerce product
ASKER CERTIFIED SOLUTION
Avatar of vvsrk76
vvsrk76

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vvsrk76

ASKER

Commerce solution