Package org.apache.axis.client

Examples of org.apache.axis.client.Service


     * Get an initialized Call, ready to invoke us over the local transport.
     *
     * @return an initialized Call object.
     */
    public Call getCall() {
        Call call = new Call(new Service());
        call.setTransport(transport);
        return call;
    }
View Full Code Here


    private Call getCall()
        throws Exception
    {
        Call call = null;
            Service service = new Service();
            call = (Call) service.createCall();

            call.registerTypeMapping(Bean.class, m_beanQName,
                new BeanSerializerFactory(Bean.class, m_beanQName),
                new BeanDeserializerFactory(Bean.class, m_beanQName));
        return call;
View Full Code Here

public class TestMsg {
    public String doit(String[] args) throws Exception {
        Options opts = new Options(args);
        opts.setDefaultURL("http://localhost:8080/axis/services/MessageService");

        Service  service = new Service();
        Call     call    = (Call) service.createCall();

        call.setTargetEndpointAddress( new URL(opts.getURL()) );
        SOAPBodyElement[] input = new SOAPBodyElement[2];

        input[0] = new SOAPBodyElement(XMLUtils.StringToElement("urn:foo",
View Full Code Here

     * is the length of the string (doubled if the doubled arg is true).
     */
    public boolean runTest(SOAPHeaderElement header,
                           boolean doubled) throws Exception
    {
        Call call = new Call(new Service());
        call.setTransport(localTransport);
       
        call.addHeader(header);
       
        String str = "a";
View Full Code Here

    public static void main(String[] args) throws DOMException, TrustException, Exception {

        Options opts = new Options(args);
        opts.setDefaultURL(address);

        Service service = new Service();
        Call call = (Call) service.createCall();
        call.setTargetEndpointAddress(opts.getURL());

        SOAPEnvelope env = new SOAPEnvelope();
        Document doc = env.getAsDocument();
        WSSConfig wssConfig = WSSConfig.getDefaultWSConfig();
View Full Code Here

        SimpleProvider engineConfiguration = new SimpleProvider(typeMappingRegistry);
        engineConfiguration.deployTransport("http", new SimpleTargetedChain(new HTTPSender()));

        GeronimoAxisClient engine = new GeronimoAxisClient(engineConfiguration, portToImplementationMap);

        delegate = new Service(engineConfiguration, engine);
    }
View Full Code Here

*/
public class SampleSecurityTokenServiceClient {

    // First arg passed should be the URL of the service. If none is specified, client tries localhost.
    public static void main(String[] args) throws DOMException, TrustException, Exception {
        Service service = new Service();
        Call call = (Call) service.createCall();
   
        // The default service location
        String url = "http://localhost:8080/JavaTrust/services/SampleSecurityTokenService";
        // Or the user-specified location
        if (args.length > 0)
View Full Code Here

        try {
            Options options = new Options(args);
           
            String endpointURL = options.getURL();
           
            Service  service = new Service();
            Call     call    = (Call) service.createCall();

            call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
            call.setOperationName( new QName("LogTestService", "testMethod") );

            String res = (String) call.invoke( new Object[] {} );
View Full Code Here

       }
      
       Integer i1 = new Integer(args[1]);
       Integer i2 = new Integer(args[2]);

       Service  service = new Service();
       Call     call    = (Call) service.createCall();

       call.setTargetEndpointAddress( new java.net.URL(endpoint) );
       call.setOperationName( method );
       call.addParameter( "op1", XMLType.XSD_INT, ParameterMode.IN );
       call.addParameter( "op2", XMLType.XSD_INT, ParameterMode.IN );
View Full Code Here

            // what is our target URL?
            String dest = (String)self.getOption("URL");
           
            // use the server's client engine in case anything has
            // been deployed to it
            Service service = new Service();
            service.setEngine( msgContext.getAxisEngine().getClientEngine() );
            Call    call = (Call) service.createCall();

            SimpleTargetedChain c = new SimpleTargetedChain(new TCPSender());
            // !!! FIXME
            //service.getEngine().deployTransport("tcp", c);
   
View Full Code Here

TOP

Related Classes of org.apache.axis.client.Service

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.