I am new to webservices. I have some services which accept char as input parameter e.g char langPref etc. When I am trying to expose that service it is t开发者_运维技巧hrowing an exception. Can we send or return char in web services ?
Try to set an @Produces("text/plain") and return a String (cast from your char)
Likewise, an @Consumes should do the same trick for input.
(Having said that, you should probably emphasize the payload more. Just having chars as input/output is an indicator that your resource design is flawed)
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论