Examples of ObjectFactory


Examples of org.talend.esb.servicelocator.client.internal.endpoint.ObjectFactory

public final class SLPropertiesConverter {
   
    private SLPropertiesConverter() { }

    public static ServiceLocatorPropertiesType toServiceLocatorPropertiesType(SLProperties props) {
        ObjectFactory of = new ObjectFactory();
        ServiceLocatorPropertiesType slPropertiesType = of.createServiceLocatorPropertiesType();
        List<EntryType> entries = slPropertiesType.getEntry();
        for (String name : props.getPropertyNames()) {
            entries.add(createEntry(props, name));
        }
        return slPropertiesType;
View Full Code Here

Examples of org.talend.services.crm.types.ObjectFactory

  // ####################################################
  // Constructors
  // ####################################################

  public CRMServiceImpl() {
    factory = new ObjectFactory();
  }
View Full Code Here

Examples of org.test.dispatch.jaxbsource.ObjectFactory

          Service svc = Service.create(serviceName);
          svc.addPort(portName, null, url);
          Dispatch<Source> dispatch = svc.createDispatch(portName, Source.class, Service.Mode.PAYLOAD);
         
          //Create JAXBContext and JAXBSource here.
          ObjectFactory factory = new ObjectFactory();
          Invoke invokeObj = factory.createInvoke();
          invokeObj.setInvokeStr("Some Request");
          JAXBContext ctx = JAXBContext.newInstance("org.test.dispatch.jaxbsource");
        
          JAXBSource jbSrc = new JAXBSource(ctx.createMarshaller(), invokeObj);
          // Invoke the Dispatch
View Full Code Here

Examples of org.test.mtom.ObjectFactory

       
        //Create a DataHandler with the String DataSource object
        DataHandler dataHandler = new DataHandler(stringDS);
     
        //Store the data handler in ImageDepot bean
      ImageDepot imageDepot = new ObjectFactory().createImageDepot();
      imageDepot.setImageData(dataHandler);
       
        Service svc = Service.create(serviceName);
        svc.addPort(portName, null, endpointUrl);
       
        JAXBContext jbc = JAXBContext.newInstance("org.test.mtom");
       
        Dispatch<Object> dispatch = svc
                .createDispatch(portName, jbc, Service.Mode.PAYLOAD);
       
        //Create a request bean with imagedepot bean as value
        ObjectFactory factory = new ObjectFactory();
        SendImage request = factory.createSendImage();
        request.setInput(imageDepot);

        TestLogger.logger.debug(">> Invoking Dispatch<Object> JAXBProviderService");
       
        SendImageResponse response = (SendImageResponse) dispatch.invoke(request);
View Full Code Here

Examples of org.test.proxy.doclitnonwrapped.ObjectFactory

   
    public void testInvoke(){
        TestLogger.logger.debug("-----------------------------------");
        TestLogger.logger.debug("test: " + getName());
        TestLogger.logger.debug(">>Testing Sync Inovoke on Proxy DocLit non-wrapped");
        ObjectFactory factory = new ObjectFactory();
        Invoke invokeObj = factory.createInvoke();
        invokeObj.setInvokeStr("test request for twoWay Operation");
        Service service = Service.create(null, serviceName);
        assertNotNull(service);
        DocLitnonWrappedProxy proxy = service.getPort(portName, DocLitnonWrappedProxy.class);
        assertNotNull(proxy);
View Full Code Here

Examples of org.test.sample.nonwrap.ObjectFactory

 
  public void testTwoWaySync(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      TwoWay twoWay = new ObjectFactory().createTwoWay();
      twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
      DocLitNonWrapService service = new DocLitNonWrapService();
      DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
     
      BindingProvider p =  (BindingProvider)proxy;
View Full Code Here

Examples of org.test.stock1.ObjectFactory

       
        // Create the JAXBContext
        JAXBBlockContext context = new JAXBBlockContext(StockPrice.class.getPackage().getName());
       
        // Create the JAX-B object
        ObjectFactory of = new ObjectFactory();
        StockPrice obj = of.createStockPrice();
        obj.setPrice("100");
       
        // Create the JAX-B Element
        QName paramQName = new QName("urn://sample", "param", "m");
        JAXBElement e = new JAXBElement(paramQName, StockPrice.class, obj);
View Full Code Here

Examples of org.uddi.api_v3.ObjectFactory

    private transient ObjectFactory objectFactory = new ObjectFactory();
 
    public BusinessLifeCycleManagerV3Impl(RegistryService registry) {
        super(registry);
        if(objectFactory == null)
          objectFactory = new ObjectFactory();
    }
View Full Code Here

Examples of org.uddi.sub_v3.ObjectFactory

      UDDISubscriptionPortType subscriptionService = transport.getUDDISubscriptionService();
      List<org.uddi.sub_v3.Subscription> subscriptions = subscriptionService.getSubscriptions(authToken);
      for (org.uddi.sub_v3.Subscription subscription : subscriptions) {
        String expiresAfter = null;
        if (subscription.getExpiresAfter()!=null) expiresAfter = subscription.getExpiresAfter().toString();
        String rawFilter = JAXBMarshaller.marshallToString(new ObjectFactory().createSubscriptionFilter(subscription.getSubscriptionFilter()), "org.uddi.sub_v3");
        Subscription modelSubscription = new Subscription(
            (subscription.getBindingKey()==null)?"":subscription.getBindingKey(),
            subscription.isBrief(),
            expiresAfter,
            subscription.getMaxEntities(),
View Full Code Here

Examples of org.w3._2003._05.soap_envelope.ObjectFactory

        Envelope envelope = new Envelope();
        if (headerContent.size() > 0) {
            envelope.setHeader(header);
        }
        envelope.setBody(body);
        JAXBElement<Envelope> envelopeEl = new ObjectFactory().createEnvelope(envelope);
        return envelopeEl;
    }
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.