Package org.xmlsoap.schemas.wsdl.http

Examples of org.xmlsoap.schemas.wsdl.http.AddressType


                    if (el instanceof SOAPAddress) {
                        SOAPAddress add = (SOAPAddress)el;
                        add.setLocationURI(req.getRequestURL().toString());
                    }
                    if (el instanceof AddressType) {
                        AddressType add = (AddressType)el;
                        add.setLocation(req.getRequestURL().toString());
                    }
                }
               
               
                bus.getWSDLManager().getWSDLFactory().newWSDLWriter().writeWSDL(def, resp.getOutputStream());
View Full Code Here


            if (SOAPBindingUtil.isSOAPAddress(el)) {
                SoapAddress add = SOAPBindingUtil.getSoapAddress(el);
                add.setLocationURI(baseUri);
            }
            if (el instanceof AddressType) {
                AddressType add = (AddressType) el;
                add.setLocation(baseUri);
            }
        }
    }
View Full Code Here

                                "http://schemas.xmlsoap.org/wsdl/http/");
                    info.setAddress(httpAdd.getLocationURI());
                    info.addExtensor(httpAdd);
                    return info;
                } else if (extensor instanceof AddressType) {
                    final AddressType httpAdd = (AddressType)extensor;
   
                    EndpointInfo info =
                        new HttpEndpointInfo(serviceInfo,
                                "http://schemas.xmlsoap.org/wsdl/http/");
                    info.setAddress(httpAdd.getLocation());
                    info.addExtensor(httpAdd);
                    return info;
                }
            }
        }
        HttpEndpointInfo hei = new HttpEndpointInfo(serviceInfo,
            "http://schemas.xmlsoap.org/wsdl/http/");
        AddressType at = new HttpAddressType();
        hei.addExtensor(at);
       
        return hei;
    }
View Full Code Here

    protected Endpoint<CxfExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {
        URI u = new URI(remaining);

        // TODO this is a hack!!!
        EndpointInfo endpointInfo = new EndpointInfo(null, "http://schemas.xmlsoap.org/soap/http");
        AddressType a = new AddressType();
        a.setLocation(remaining);
        endpointInfo.addExtensor(a);

        return new CxfEndpoint(uri, this, endpointInfo);
    }
View Full Code Here

            if (SOAPBindingUtil.isSOAPAddress(el)) {
                SoapAddress add = SOAPBindingUtil.getSoapAddress(el);
                add.setLocationURI(serviceURI.toString());
            }
            if (el instanceof AddressType) {
                AddressType add = (AddressType) el;
                add.setLocation(serviceURI.toString());
            }
        }
    }
View Full Code Here

                        }
                    };
                info.setAddress(httpAdd.getLocationURI());
                return info;
            } else if (extensor instanceof AddressType) {
                final AddressType httpAdd = (AddressType)extensor;

                EndpointInfo info =
                    new EndpointInfo(serviceInfo,
                            "http://schemas.xmlsoap.org/wsdl/http/") {
                        public void setAddress(String a) {
                            super.setAddress(a);
                            httpAdd.setLocation(a);
                        }
                    };
                info.setAddress(httpAdd.getLocation());
                return info;
            }
        }

        return null;
View Full Code Here

    @Test
    public void testTransportFactory() throws Exception {
        LocalTransportFactory factory = new LocalTransportFactory();
       
        EndpointInfo ei = new EndpointInfo(null, "http://schemas.xmlsoap.org/soap/http");
        AddressType a = new AddressType();
        a.setLocation("http://localhost/test");
        ei.addExtensor(a);

        Destination d = factory.getDestination(ei);
        d.setMessageObserver(new EchoObserver());
       
View Full Code Here

    @Test
    public void testDirectInvocation() throws Exception {
        LocalTransportFactory factory = new LocalTransportFactory();
       
        EndpointInfo ei = new EndpointInfo(null, "http://schemas.xmlsoap.org/soap/http");
        AddressType a = new AddressType();
        a.setLocation("http://localhost/test");
        ei.addExtensor(a);

        LocalDestination d = (LocalDestination) factory.getDestination(ei);
        d.setMessageObserver(new EchoObserver());
       
View Full Code Here

                                "http://schemas.xmlsoap.org/wsdl/http/");
                    info.setAddress(httpAdd.getLocationURI());
                    info.addExtensor(httpAdd);
                    return info;
                } else if (extensor instanceof AddressType) {
                    final AddressType httpAdd = (AddressType)extensor;
   
                    EndpointInfo info =
                        new HttpEndpointInfo(serviceInfo,
                                "http://schemas.xmlsoap.org/wsdl/http/");
                    info.setAddress(httpAdd.getLocation());
                    info.addExtensor(httpAdd);
                    return info;
                }
            }
        }
        HttpEndpointInfo hei = new HttpEndpointInfo(serviceInfo,
            "http://schemas.xmlsoap.org/wsdl/http/");
        AddressType at = new HttpAddressType();
        hei.addExtensor(at);
       
        return hei;
    }
View Full Code Here

    protected Endpoint<CxfExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {
        URI u = new URI(remaining);

        // TODO this is a hack!!!
        EndpointInfo endpointInfo = new EndpointInfo(null, "http://schemas.xmlsoap.org/soap/http");
        AddressType a = new AddressType();
        a.setLocation(remaining);
        endpointInfo.addExtensor(a);

        return new CxfEndpoint(uri, this, endpointInfo);
    }
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.wsdl.http.AddressType

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.