Page 1 of 1

About Question enthuware.ocejws.v6.2.324 :

Posted: Mon Nov 09, 2015 9:21 am
by ramy6_1
Hello ,

So the second option will working if we defined the string as  String num = "2";

Re: About Question enthuware.ocejws.v6.2.324 :

Posted: Mon Nov 09, 2015 9:26 am
by fjwalraven
No, the second option has defined String num = "2"...

Just try and see what happens.

Regards,
Frits

Re: About Question enthuware.ocejws.v6.2.324 :

Posted: Sat Jun 09, 2018 10:52 am
by javabean68
Hallo Frits,
how should be then the request formulated to give an Integer and get an integer back?
Thank you so much!

Regards
Fabio

Re: About Question enthuware.ocejws.v6.2.324 :

Posted: Sat Jun 09, 2018 12:43 pm
by fjwalraven
Hi Fabio,

You need to write your own MessageBodyReader and MessageBodyWriter implementation for an Integer.

Kind regards,
Frits