Results 1 to 4 of 4

Thread: Web services with XFire

  1. #1
    Join Date
    Feb 2006
    Posts
    1

    Default Web services with XFire

    Hi!

    I'm new to Spring and web services. I've already tryed Axis a little bit and now I'd like to take a look into Spring-XFire web services. I've read Spring and Codehaus docs about the topic, but I would like to see a small example. Would any of you post one?

    Kind regards

  2. #2
    Join Date
    Dec 2004
    Location
    Rotterdam, The Netherlands
    Posts
    162

    Default

    XFire + Spring make webservices very easy. You basically expose selected methods as a webservice. Here is the example for the xfire servlet:

    Code:
    <beans>
        <bean id="handlerMapping" 
            class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
            <property name="urlMap">
                <map>
                    <entry key="/InvoicePrintNotificationService">
                        <ref bean="invoicePrintNotificationServiceExporter"/>
                    </entry>
                </map>
            </property>
        </bean>
        
        <bean name="invoicePrintNotificationServiceExporter" 
            class="org.codehaus.xfire.spring.XFireExporter">
            <property name="service">
                <ref bean="invoicePrintNotificationService"/>
            </property>
            <property name="serviceInterface">
                <value>com.bop.aeos.services.InvoicePrintNotificationService</value>
            </property>
            <property name="serviceFactory">
                <ref bean="xfire.serviceFactory"/>
            </property>
            <property name="xfire">
                <ref bean="xfire"/>
            </property>
        </bean>
        
        <bean id="invoicePrintNotificationService" 
            class="com.bop.aeos.services.InvoicePrintNotificationServiceImpl">
            <property name="invoiceDao">
                <ref bean="invoiceDao"/>
            </property>
        </bean>
    </beans>
    Kees de Kooter
    www.boplicity.net

  3. #3
    Join Date
    Aug 2005
    Posts
    7

    Default

    Has anyone been able to make an asychronous service with XFire and Spring? If anyone has any examples, please post because the documentation is non-existant for ws-addressing with XFire and Spring.

  4. #4
    Join Date
    Nov 2005
    Posts
    28

    Default

    for those who have implemented web services using spring + xfire, could you share your experience, what do you like about it and what don't you like, etc.
    thanks

Posting Permissions

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