who can give me some httpinvoker example
thank you very mach!!!
who can give me some httpinvoker example
thank you very mach!!!
there's an example of usage in the JPetStore sample application shipped with Spring. Look in the remoting-servlet.xml context definition file in WEB-INF, and the client folder.
Darren Davison.
Public Key: 0xE855B3EA
Here is how to configure the Server Side...
<bean id="defaultHandlerMapping" class="org.springframework.web.servlet.handler.Bea nNameUrlHandlerMapping"/>
<bean name="/testhttp" class="org.springframework.remoting.httpinvoker.Ht tpInvokerServiceExporter">
<property name="service">
<ref bean="HTTPTestManager"/>
</property>
<property name="serviceInterface">
<value>com.tester.bo.HTTPTestManagerServiceInterfa ce</value>
</property>
</bean>
Here is how to configure the Client Side....
<bean name="HTTPTestService" class="org.springframework.remoting.httpinvoker.Ht tpInvokerProxyFactoryBean">
<property name="serviceUrl">
<value>http://localhost:8080/testhttp</value>
</property>
<property name="serviceInterface">
<value>com.tester.bo.HTTPTestManagerServiceInterfa ce</value>
</property>
</bean>