嗨,我在春季3.0.5使用webservice客户端,代码:
<bean id="helloImpl" class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean">
<property name="serviceInterface" value="com.wtwing.client.HelloImpl" />
<property name="wsdlDocumentUrl" value="http://127.0.0.1:8100/z_axis1.4/services/SayHello?wsdl" />
<property name="namespaceUri" value="http://www.wtwing.com/axis/sayHello" />
<property name="serviceName" value="HelloImplService" />
<property name="portName" value="SayHello" />
</bean>
当tomcat,没关系,但是当jboss 7.1.1时,错误:
Failed to initialize service for JAX-RPC port [{http://www.wtwing.com/axis/sayHello}SayHello]; nested exception is javax.xml.rpc.ServiceException: Cannot find ServiceFactory implementation