Announcement Announcement Module
Collapse
No announcement yet.
Web services with XFire Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment


    • #3
      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.

      Comment


      • #4
        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

        Comment

        Working...
        X