Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-617

Unable to configure DefaultEndpoint

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 1.5.4
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      The following configuration appears to be correct for using a DefaultEndpoint but I receive a message which appears to be wrong or at best misleading :-

      <bean class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootAnnotationMethodEndpointMapping">
        <property name="defaultEndpoint" ref="defaultEndpoint"/>
      </bean>
      
      <bean class="org.springframework.ws.server.endpoint.adap ter.GenericMarshallingMethodEndpointAdapter">
        <constructor-arg ref="marshaller" />
      </bean>
      
      <oxm:xmlbeans-marshaller id="marshaller" />
      
      <bean id="defaultEndpoint" class="gf.MyDefaultEndpoint">
      </bean>
      

      and MyDefaultEndpoint :-

      public class MyDefaultEndpoint implements PayloadEndpoint {
      
      public Source invoke(Source arg0) throws Exception {
      ...
      }
      }
      

      When I run this I recieve the error :-

      org.springframework.ws.soap.client.SoapFaultClient Exception: No adapter for endpoint [com.bskyb.common.communication.interaction.endpoin t.DefaultEndpoint@7a5a7a5a]: Does your endpoint implement a supported interface like MessageHandler or PayloadEndpoint?

      As you can see my class does implement PayloadEndpoint.

        Attachments

          Activity

            People

            Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            gflood Gary Flood
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: