XFire服务器端获取客户端参数值的问题
接口是这样定义的
....
public interface HelloSpring {
String sayHelloSpring(String name);
}
....
接口实现是这样定义的
....
public String sayHelloSpring(String name) {
return "HelloSpring: " + name;
}
....
xfire-servlet.xml是这样定义的
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="helloSpring" class="org.codehaus.xfire.spring.remoting.XFireExporter">
<property name="serviceFactory">
<ref bean="xfire.serviceFactory"/>
</property>
<property name="xfire">
<ref bean="xfire"/>
</property>
<property name="serviceBean">
<ref bean="helloSpringBean"/>
</property>
<property name="serviceClass">
<value>com.test.spring.HelloSpring</value>
</property>
<property name="inHandlers">
<list>
<ref bean="helloSpringInvokeHandler" />
</list>
</property>
</bean>
<bean id="helloSpringInvokeHandler"
class="com.test.spring.HelloSpringWebServiceHandler">
</bean></beans>
这是个简单的例子,我的需求是这样的:我想在自定义的inHandler中获取客户端通过sayHelloSpring()方法请求的参数,从而对参数进行校验,怎么样在自定义的inHandler中获取参数值啊??或者有什么常用的数据校验解决方案吗??
[解决办法]
顶...