Package org.springframework.ws.server.endpoint

Examples of org.springframework.ws.server.endpoint.MethodEndpoint


        expect(requestMock.getSoapAction()).andReturn("http://springframework.org/spring-ws/SoapAction2");
        WebServiceMessageFactory factoryMock = createMock(WebServiceMessageFactory.class);
        replay(requestMock, factoryMock);

      Method doItMultiple = MyEndpoint.class.getMethod("doItMultiple");
      MethodEndpoint expected = new MethodEndpoint("endpoint", applicationContext, doItMultiple);

        MessageContext context = new DefaultMessageContext(requestMock, factoryMock);
        EndpointInvocationChain chain = mapping.getEndpoint(context);
        Assert.assertNotNull("MethodEndpoint not registered", chain);
        Assert.assertEquals("Invalid endpoint registered", expected, chain.getEndpoint());
View Full Code Here


        expect(requestMock.getSoapAction()).andReturn("http://springframework.org/spring-ws/SoapAction4");
        WebServiceMessageFactory factoryMock = createMock(WebServiceMessageFactory.class);
        replay(requestMock, factoryMock);

      Method doItRepeatable = MyEndpoint.class.getMethod("doItRepeatable");
      MethodEndpoint expected = new MethodEndpoint("endpoint", applicationContext, doItRepeatable);

        MessageContext context = new DefaultMessageContext(requestMock, factoryMock);
        EndpointInvocationChain chain = mapping.getEndpoint(context);
        Assert.assertNotNull("MethodEndpoint not registered", chain);
        Assert.assertEquals("Invalid endpoint registered", expected, chain.getEndpoint());
View Full Code Here

        ReflectionUtils.doWithMethods(endpointClass, new ReflectionUtils.MethodCallback() {

            public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {
              List<T> keys = getLookupKeysForMethod(method);
              for (T key : keys) {
                registerEndpoint(key, new MethodEndpoint(endpoint, method));
              }
            }
        });
    }
View Full Code Here

        });

        for (Method method : methods) {
          List<T> keys = getLookupKeysForMethod(method);
          for (T key : keys) {
            registerEndpoint(key, new MethodEndpoint(beanName, getApplicationContext(), method));
          }
        }

    }
View Full Code Here

TOP

Related Classes of org.springframework.ws.server.endpoint.MethodEndpoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.