Page 1 of 1
About Question enthuware.ocejws.v6.2.12 :
Posted: Sat Apr 12, 2014 7:46 am
by rkbansal83
SEI is declaring the webmethod with void return type
while SIB is implementing the log method with String return type
Code: Select all
public String log(String msg) { System.out.println(msg); return msg; }
Can you please tell me, if this mismatch is kept intentionally ?
Also , should not this create any problem when deploying such webservice ?
Re: About Question enthuware.ocejws.v6.2.123 :
Posted: Sat Apr 12, 2014 9:05 am
by himaiMinh
I don't think it is possible that the SEI declares
while the SIB declares
.
Re: About Question enthuware.ocejws.v6.2.123 :
Posted: Sat Apr 12, 2014 9:46 am
by fjwalraven
Hi Himai,
I am not sure you are replying to the question 6.2.123. (as I don't see a log() method)
What is the correct statement about the following Web Service?
Code: Select all
@WebService(endpointInterface="ws.MathService")
public class MathServiceImpl implements MathService {
@Override
public void getMathResult(int num, Holder<Integer> sq, Holder<Integer> vol) {
sq.value = num*num;
vol.value = num*num*num;
}
}
Please confirm what question you are referring to.
Regards,
Frits
Re: About Question enthuware.ocejws.v6.2.123 :
Posted: Sat Apr 12, 2014 11:36 am
by rkbansal83
I guess, there is a problem with the "Discuss" hyper link , its taking me to wrong question thread.
Anywaz, here is question
enthuware.ocejws.v6.2.12
Which methods are exposed in this WebService?
Code: Select all
@WebService
public interface LogService
{ @WebMethod public void log(String msg); }
And the SIB:
Code: Select all
@WebService (endpointInterface="LogService")
public class LogServiceImpl extends LogServiceImplSuper {
public String log(String msg) { System.out.println(msg); return msg; }
public String logN(String msg) { System.out.println(msg); return msg; } }
public class LogServiceImplSuper {
public String logS(String msg) { System.out.println(msg); return msg; }
public String logR(String msg) { System.out.println(msg); return msg; } }
Did you get now what I was talking about different return type for method log in SIB and SEI . ?
Re: About Question enthuware.ocejws.v6.2.123 :
Posted: Sat Apr 12, 2014 3:26 pm
by fjwalraven
Yes, I got it now. You are right: that is a mistake in the SEI!
I have corrected it. Thank you for the feedback!
I will have to look at the discuss button problem too.
Regards,
Frits
Re: About Question enthuware.ocejws.v6.2.123 :
Posted: Sat Apr 12, 2014 3:28 pm
by himaiMinh
This is what rkbansal83 is asking:
rkbansal83 wrote:SEI is declaring the webmethod with void return type
while SIB is implementing the log method with String return type
Code: Select all
public String log(String msg) { System.out.println(msg); return msg; }
Can you please tell me, if this mismatch is kept intentionally ?
Also , should not this create any problem when deploying such webservice ?
Re: About Question enthuware.ocejws.v6.2.123 :
Posted: Sat Apr 12, 2014 3:32 pm
by fjwalraven
Yeah, I got it, thanks Himai.