Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Make params required with @WebParam  RSS feed

 
Otis R.
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day to all,

I've a question regarding WS annotation usage. Here's a WS function


I'd like my super-mega-auto-generated WSDL to describe all my WS method params as 'required'.
So far they are recognized by WS client as 'optional'(nulleble, nilleble, etc.) and in given circumstances it's bad. Can somebody help my out?
 
Miro Ricco
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fight the same problem with JAXWS 2.2, but without a success.
Can anybody help?

I have found some info here:
http://stackoverflow.com/questions/2210346/how-can-i-make-a-webmethod-parameter-required

But I still can't make it work.

As I understood it correctly I shall use following annotation, right?



But I get the compilation error:
The annotation @XmlElement is disallowed for this location

All I want is make the parameter 'name' of web service method getInfo required.
It's a weird production problem to rewrite the generated wsdl manually.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!