Announcement Announcement Module
No announcement yet.
Spring WS request and return collection of data Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring WS request and return collection of data

    Today is the first day that I started using Spring-WS after using the standard Spring container for almost 3 years now.

    It was very easy to setup the WS, invoking a serverside component.

    I want to create a WS that executes a findAll() operation on my DAO layer, but have some difficulties to achieve marchalling/unmarchalling.

    My current setup is as follows:
    <bean id="billingService" class="com.billing.service.BillingServiceImpl">
        <constructor-arg ref="creditNoteDao"/>
        <constructor-arg ref="invoiceDao"/>
    <bean id="billingServiceEndpoint" class="">
        <constructor-arg ref="billingService"/>
    <bean class="">
        <property name="mappings">
                <prop key="{}BillingHistoryRequest">billingServiceEndpoint</prop>
        <property name="interceptors">
            <bean class=""/>
    <bean id="billing" class="">
        <property name="builder">
            <bean class="">
                <property name="schema" value="/WEB-INF/xsd/bhr.xsd"/>
                <property name="portTypeName" value="BillingHistory"/>
                <property name="locationUri" value="http://localhost:8080/billingService/"/>
                <property name="targetNamespace" value=""/>
    The current setup is very similar to the HumanResource example. But what I want to do next is pass some input data (startDate, endDate, customerId) to the WebService and receive a list of billing data in the response.. thus a list of BillingData objects (inherited by Invoices, Creditnotes).

    What is the best way to achieve this? Which marchalling approach should I take??

    Can someone perhaps give me some configuration examples to achieve this?

  • #2
    Nobody, this seems quite trivial to me? Or am I mistaken?


    • #3
      The airline sample shows you how to returns list of flights in the MarshallingEndpoint with a JAXB2 marshalling.