Results 1 to 3 of 3

Thread: about httpinvoker

  1. #1
    Join Date
    Aug 2005
    Posts
    14

    Default about httpinvoker

    who can give me some httpinvoker example
    thank you very mach!!!

  2. #2
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    339

    Default

    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

  3. #3

    Default

    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •