<div dir="ltr">Hi, I have one question to which I haven't found solution anywhere.<div><br></div><div>I have class com.auth.test.ExternalAuthServlet used to authenticate users. This class is registered inside web.xml like this (standard method):</div>
<div><br></div><div><div><!-- Test servlet --></div><div><servlet></div><div> <servlet-name>secureResource</servlet-name></div><div> <servlet-class>com.auth.test.ExternalAuthServlet</servlet-class></div>
<div></servlet></div><div><br></div><div><servlet-mapping><br></div><div> <servlet-name>secureResource</servlet-name></div><div> <url-pattern>/authenticate</url-pattern></div><div>
</servlet-mapping></div></div><div><br></div><div>Problem is, that inside this method I want to call web service (wsdl) and I dont know how to do it. Inside package com.auth.test I have many more java files generated by wsimport -p client -keep <a href="http://wsdllocation">http://wsdllocation</a> used to communicate with web service. For example I want to call this function:</div>
<div><br></div><div><div>public VerifyOTPResponse verifyOTP(VerifyOTPRequest request) throws VerifyOTPFaultMsg {</div><div> //next line causes crash</div><div> OtpPortTypeService service = new OtpPortTypeService(); </div>
<div> OtpPortType port = service.getOtpPortType(); </div><div> VerifyOTPResponse response = port.verifyOTP(request);</div><div> return response; </div><div>}</div></div><div><br></div><div>All objects are defined outside of ExternalAuthServlet.class (in VerifyOTPResponse.class, OtpPortTypeService.class, ... in the same package as ExternalAuthServlet). When I call this function on my local machine, everything works fine. But when I move jar with all these classes to shibboleth/lib, execution crashes on specified line. I realized problem might be that shibboleth can see only ExternalAuthServlet.class and not the others so he can't instantiate OtpPortTypeService. So my question is, how to make shibboleth to see other classes inside com.auth.test as well? Or is there something Im missing here?</div>
<div><br></div><div>Thanks a lot, Radek.</div></div>