Skip to main content

How to get wsimport to generate code that validates schema?

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2005-01-12

We all come at this stuff from a different direction. I have a java server application that communicates via SOAP. Actually it has either web page output, or JSON output, or SOAP. It has a few WSDLs that I constructed myself. It uses some XMLSchema types and this is all working.

I use wsimport to generate sources for accessing the application. This is working.

I want, however, for the client to do some validation. It does not have to validate my custom types. But if a method expects an integer parameter and is given "hello", it seems that making the client smart enough to see the problem should not be impossible.

Is there a flag on wsimport? Do I need to put something in my WSDL? These are the only two inputs to my client generation process, so I am not sure how else to have this happen.

Any suggestions?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2013-05-07