Examples of AddressType


Examples of org.apache.schemas.yoko.bindings.corba.AddressType

        CorbaBindingFactory corbaBF = new CorbaBindingFactory();
        corbaBF.init(bus);
        manager.registerBinding(CorbaConstants.NU_WSDL_CORBA, corbaBF);
       
        EndpointReferenceType endpoint = testUtils.getSimpleTestEndpointReference();
        AddressType address = CorbaUtils.getCorbaAddressType(bus, endpoint);
        assertNotNull(address);                  
    }
View Full Code Here

Examples of org.apache.schemas.yoko.bindings.corba.AddressType

                                          portTypeName + "CORBAService");
            Service service = def.createService();
            service.setQName(serviceName);
            Port port = def.createPort();
            port.setName(portTypeName + "CORBAPort");
            AddressType address =
                (AddressType) def.getExtensionRegistry().createExtension(Port.class,
                                                                         CorbaConstants.NE_CORBA_ADDRESS);
            String addr = (String) env.get(ToolCorbaConstants.CFG_ADDRESS);
            if (addr == null) {
                addr = "IOR:";
            }
            address.setLocation(addr);
            port.addExtensibilityElement(address);
            service.addPort(port);
            port.setBinding(bindings[i]);
            def.addService(service);
        }
View Full Code Here

Examples of org.apache.servicemix.cxf.transport.nmr.AddressType

public class NMRTransportPlugin extends AbstractWSDLPlugin {
 
 

    public ExtensibilityElement createExtension(Map<String, Object> args) throws WSDLException {
        AddressType jbiAddress = null;
        jbiAddress = (AddressType)registry.createExtension(Port.class,
            new QName(NMRTransportFactory.TRANSPORT_ID, "address"));
        return jbiAddress;
    }
View Full Code Here

Examples of org.caffinitas.mapper.demo.types.AddressType

                // create a user object and persist it

                UserEntity snazy = new UserEntity();
                snazy.setUsername("snazy");
                AddressType mainAddress = new AddressType(null, null, "Koeln", "Germany");
                snazy.setMainAddress(mainAddress);
                snazy.getOtherAddresses().put(AddressKind.HOME, mainAddress);
                session.insert(snazy);

                // now load the user object
View Full Code Here

Examples of org.internna.iwebmvc.model.AddressType

    public void testParse() {
        assertNull(addressParser.parse(null));
        Address address = new Address();
        address.setProvince(new Province());
        address.getProvince().setId(baseDao.first(Province.class).getId());
        address.setType(new AddressType());
        address.getType().setId(baseDao.first(AddressType.class).getId());
        address = addressParser.parse(address);
        assertNotNull(address.getProvince().getCountry());
        assertNotNull(address.getType().getType());
        address = new Address();
View Full Code Here

Examples of org.internna.iwebmvc.model.AddressType

                parsed = getDao().find(Address.class, address.getId());
                BeanUtils.copyProperties(address, parsed, new String[] {"id"});
            }
            Province province = address.getProvince();
            if ((province != null) && (province.getId() != null)) address.setProvince(getDao().find(Province.class, province.getId()));
            AddressType type = address.getType();
            if ((type != null) && (type.getId() != null)) address.setType(getDao().find(AddressType.class, type.getId()));
        }
        return parsed;
    }
View Full Code Here

Examples of org.internna.iwebmvc.model.AddressType

            if (logger.isInfoEnabled()) logger.info("AddressType table is empty. Generating data...");
            Properties allTypes = addressTypes.entrySet().iterator().next().getValue();
            for (String code : allTypes.stringPropertyNames()) {
                if (logger.isDebugEnabled()) logger.debug("Creating address type [" + code + "]");
                try {
                    AddressType type = new AddressType();
                    type.setType(new I18nText());
                    for (Locale locale : addressTypes.keySet())
                      type.getType().add(locale, addressTypes.get(locale).getProperty(code));
                    dao.create(type);
                } catch (Exception ex) {
                    if (logger.isDebugEnabled()) logger.debug("Address type [" + code + "] could not be saved: " + ex.getMessage());
                }
            }
View Full Code Here

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

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

            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

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

                                "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
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.