Examples of Wsdl2HttpBinding


Examples of org.apache.servicemix.soap.bindings.http.model.Wsdl2HttpBinding

    public void handleMessage(Message message) {
        Binding<?> binding = message.get(Binding.class);
        if (binding instanceof Wsdl2HttpBinding == false) {
            return;
        }
        Wsdl2HttpBinding httpBinding = (Wsdl2HttpBinding) binding;
        String uri = message.getTransportHeaders().get(HttpConstants.REQUEST_URI);
        if (uri == null) {
            throw new Fault("Transport header not set: " + HttpConstants.REQUEST_URI);
        }
        String mth = message.getTransportHeaders().get(HttpConstants.REQUEST_METHOD);
        if (mth == null) {
            throw new Fault("Transport header not set: " + HttpConstants.REQUEST_METHOD);
        }
        for (Wsdl2HttpOperation operation : httpBinding.getOperations()) {
            if (mth.equalsIgnoreCase(operation.getHttpMethod())) {
                String loc = IriDecoderHelper.combine(binding.getLocation(), operation.getHttpLocation());
                String path1 = getUriPath(uri);
                String path2 = getUriPath(loc);
                if (matchPath(path1, path2)) {
View Full Code Here

Examples of org.apache.servicemix.soap.bindings.http.model.Wsdl2HttpBinding

    public void handleMessage(Message message) {
        Operation<?> operation = message.get(Operation.class);
        if (operation instanceof Wsdl2HttpOperation == false) {
            return;
        }
        Wsdl2HttpBinding httpBinding = (Wsdl2HttpBinding) message.get(Binding.class);
        Wsdl2HttpOperation httpOperation = (Wsdl2HttpOperation) operation;
        Wsdl2HttpMessage httpMessage;
        String serialization;
        if (server) {
            httpMessage = httpOperation.getInput();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.