Announcement Announcement Module
No announcement yet.
New simple SpringWS 2.0: SOAP-ENV:Server No adapter for endpoint Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • New simple SpringWS 2.0: SOAP-ENV:Server No adapter for endpoint

    I'm learning SpringWS 2.0. I set up a simple End Point as an exercise to see how things flow. I got the SOAP Fault on the server side.
    What did I miss? 1M Thanks.

    public class BankingSIB {
    private static final String NAMESPACE_URI = "http://ci.test/";
    private static final String GETBALANCE = "getBalance";

    @PayloadRoot(localPart = GETBALANCE, namespace = NAMESPACE_URI)
    @Namespace(prefix = "ci", uri=NAMESPACE_URI)
    public Double getBalance(@XPathParam("/ci:getBalance/arg0") Long acctno, @XPathParam("/ci:getBalance/arg1") Long secno) throws SocialSecurityException, AccountNumberException {

    SOAP request
    <soapenv:Envelope xmlns:soapenv="" xmlns:ci="http://ci.test/">
    <!--type: long-->
    <!--type: long-->
    SOAP response
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="">
    <faultstring xml:lang="en">No adapter for endpoint [public java.lang.Double,java. lang.Long) throws test.exception.SocialSecurityException,test.except ion.AccountNumberException]: Is your endpoint annotated with @Endpoint, or does it implement a supported interface like MessageHandler or PayloadEndpoint?</faultstring>

  • #2
    2. Then DefaultMethodEndpointAdapter
    3. Then
    protected boolean supportsInternal(MethodEndpoint methodEndpoint)
    return (supportsParameters(methodEndpoint.getMethodParame ters())) && (supportsReturnType(methodEndpoint.getReturnType() ));

    supportsReturnType(methodEndpoint.getReturnType() is the issue.

    return type Double is not supported

    4. Then see doc 2) Handling method return types
    confirmed 3. Handling method return types

    5. Changed from Double to void for 1 quick test and no more error.