I embed cxf 2.4 to spring. WSDL is created by java code. But methods in server
level cannot be invoked.
Error messages are:
[http-8080-1] INFO org.apache.cxf.phase.PhaseInterceptorChain - Application
{http://com.ws}webServiceSrcSecurity#{http://com.ws}ComService has thrown
exception, unwinding now: java.lang.reflect.InvocationTargetException: null
public class WebServiceSecurity{
@Autowired
public WebServiceSecurityService webServiceSecurityService;
public WebServiceSecurity(){}
private String EditOrder(Integer type, Integer startNo, Integer endNo){
return webServiceSecurityService.EditOrder( type, startNo,
endNo);
}
........................
public String ComService(String paramString) throws Exception{
Object returnValue = null;
String functionName="";
ArrayList<Object []>s = parseXml2(paramString);
functionName = s.get(0)[0].toString();
Class<?>[] mapValue = WStype.map.get(functionName);
Class cl=Class.forName("com.ws.WebServiceSecurity");
Method m=cl.getDeclaredMethod(functionName, mapValue);
m.setAccessible(true);
Object[] newobject=getObject(s.get(1), mapValue);
m.invoke(cl.newInstance(), newobject);
return functionName;
}
}---------------------------------------------------------------------------
public class WebServiceSecurityService {
private WebServiceSecurityDao webServiceSecurityDao;
public WebServiceSecurityService(){}
public String EditOrder(Integer type, Integer startNo, Integer endNo){
..................
}
---------------------------------------------------------------------------
<bean id="webServiceSecurityBean" class="com.ws.WebServiceSecurity" >
</bean>
<bean id="webServiceSecurityDao" class="com.dao.WebServiceSecurityDao" >
</bean>
<bean id="webServiceSecurityService"
class="com.service.WebServiceSecurityService">
<property name="webServiceSecurityDao"
ref="webServiceSecurityDao">
</property>
</bean>