Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"issues" with 1.2 wsdl

 
Bill Tims
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am generating a java client that lets me make calls to a Microsoft web service.

I used IBM's RAD to generate the java code and all worked well. The server has now been updated and includes 1.2 support...unfortunately RAD 6.1, which I am using does not.

When I try and use Axis 1.4 wsdl2java to generate the same client data, I have problems. In the wsdl there several instances of a type s1:char variables. RAD converted this into an int, which shouldn't work but did. Axis converts the s1:char into org.apache.axis.types.UnsignedShort which should be fine, but the Microsoft side does not appear to be able to handle this conversion.

Any suggestions?


Bill
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
My guess is that you may need to define custom type mappings when you use the wsdl2java tool.
Here is the first in a three-part article discussing the subject:
http://wso2.org/library/tutorials/reference-guide-axis2-code-generation-parameters-part-1
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic