Package org.apache.axis2.description

Examples of org.apache.axis2.description.TransportOutDescription.addParameter()


        modifySchemaImportsAndIncludes(definition, name);

        // Axis2 1.3 has a bug with returning incorrect values for the port
        // addresses.  To work around this, compute the values here.
        Parameter modifyAddr = new Parameter("modifyUserWSDLPortAddress", "false");
        axisService.addParameter(modifyAddr);

        return axisService;
    }
   
   
View Full Code Here


public class VFSTransportDescriptionFactory implements TransportDescriptionFactory {
    public TransportInDescription createTransportInDescription() throws Exception {
        TransportInDescription trpInDesc = new TransportInDescription("vfs");
        trpInDesc.setReceiver(new VFSTransportListener());
        trpInDesc.addParameter(new Parameter(VFSConstants.TRANSPORT_FILE_LOCKING,
                VFSConstants.TRANSPORT_FILE_LOCKING_ENABLED));
        return trpInDesc;
    }

    public TransportOutDescription createTransportOutDescription() throws Exception {
View Full Code Here

                    param.addChild(fac.createOMText(param, jmsProps.get(key)));
                    parms.addChild(param);
                }
               
                Parameter queueConnectionFactory = new Parameter(DEFAULT_QUEUE_CONNECTION_FACTORY, parms);
                trsIn.addParameter( queueConnectionFactory );
               
                trsIn.setReceiver(jmsListener);

                configContext.getAxisConfiguration().addTransportIn( trsIn );
                TransportOutDescription trsOut = configContext.getAxisConfiguration().getTransportOut(Constants.TRANSPORT_JMS);
View Full Code Here

                    param.addChild(fac.createOMText(param, jmsProps.get(key)));
                    parms.addChild(param);
                }
               
                Parameter queueConnectionFactory = new Parameter(DEFAULT_QUEUE_CONNECTION_FACTORY, parms);
                trsIn.addParameter( queueConnectionFactory );
               
                trsIn.setReceiver(jmsListener);

                configContext.getAxisConfiguration().addTransportIn( trsIn );
                TransportOutDescription trsOut = configContext.getAxisConfiguration().getTransportOut(Constants.TRANSPORT_JMS);
View Full Code Here

    }

    public TransportOutDescription createTransportOutDescription() throws Exception {
        TransportOutDescription trpOutDesc = new TransportOutDescription("vfs");
        trpOutDesc.setSender(new VFSTransportSender());
        trpOutDesc.addParameter(new Parameter(VFSConstants.TRANSPORT_FILE_LOCKING,
                VFSConstants.TRANSPORT_FILE_LOCKING_ENABLED));
        return trpOutDesc;
    }

}
View Full Code Here

        Class senderClass;
        senderClass = Loader
            .loadClass("org.apache.axis2.transport.http.CommonsHTTPTransportSender");
        TransportSender sender = (TransportSender) senderClass.newInstance();
        transport.setSender(sender);
        transport.addParameter(new Parameter("PROTOCOL", "HTTP/1.1"));
        transport.addParameter(new Parameter("Transfer-Encoding", "chunked"));
        transport.addParameter(new Parameter("OmitSOAP12Action", "true"));
      }
    } catch (Exception e) {
      return null;
View Full Code Here

        senderClass = Loader
            .loadClass("org.apache.axis2.transport.http.CommonsHTTPTransportSender");
        TransportSender sender = (TransportSender) senderClass.newInstance();
        transport.setSender(sender);
        transport.addParameter(new Parameter("PROTOCOL", "HTTP/1.1"));
        transport.addParameter(new Parameter("Transfer-Encoding", "chunked"));
        transport.addParameter(new Parameter("OmitSOAP12Action", "true"));
      }
    } catch (Exception e) {
      return null;
    }
View Full Code Here

            .loadClass("org.apache.axis2.transport.http.CommonsHTTPTransportSender");
        TransportSender sender = (TransportSender) senderClass.newInstance();
        transport.setSender(sender);
        transport.addParameter(new Parameter("PROTOCOL", "HTTP/1.1"));
        transport.addParameter(new Parameter("Transfer-Encoding", "chunked"));
        transport.addParameter(new Parameter("OmitSOAP12Action", "true"));
      }
    } catch (Exception e) {
      return null;
    }
    return transport;
View Full Code Here

    public void start() throws Exception {

        TransportOutDescription trpOutDesc =
            new TransportOutDescription(MailConstants.TRANSPORT_NAME);
        // gmail
        trpOutDesc.addParameter(new Parameter("mail.smtp.host", "smtp.gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.port", "587"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.starttls.enable", "true"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.user", "synapse.test.1"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.from", "synapse.test.1@gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.password", "mailpassword"));
View Full Code Here

        TransportOutDescription trpOutDesc =
            new TransportOutDescription(MailConstants.TRANSPORT_NAME);
        // gmail
        trpOutDesc.addParameter(new Parameter("mail.smtp.host", "smtp.gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.port", "587"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.starttls.enable", "true"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.user", "synapse.test.1"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.from", "synapse.test.1@gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.password", "mailpassword"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.auth", "true"));
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.