Examples of createCall()


Examples of org.apache.axis.client.Service.createCall()

        // create the transport
        JMSTransport transport = new JMSTransport(connectorMap, cfMap);

        // create a new Call object
        Call     call    = (Call) service.createCall();

        call.setOperationName( new QName("urn:xmltoday-delayed-quotes", "getQuote") );
        call.addParameter( "symbol", XMLType.XSD_STRING, ParameterMode.IN );
        call.setReturnType( XMLType.XSD_FLOAT );
        call.setTransport(transport);
View Full Code Here

Examples of org.apache.axis.client.Service.createCall()

        QName   sqn  = new QName(sURL, "ElementServiceService" );
        QName   pqn  = new QName(sURL, "ElementService" );

        //Service service=new Service(new URL("file:ElementService.wsdl"),sqn);
        Service service = new Service(new URL(sURL+"?wsdl"),sqn);
        Call    call    = (Call) service.createCall( pqn, "echoElement" );

        Options opts = new Options(args);
        opts.setDefaultURL( call.getTargetEndpointAddress() );
        call.setTargetEndpointAddress( new URL(opts.getURL()) );
View Full Code Here

Examples of org.apache.axis.client.Service.createCall()

        // create the transport
        JMSTransport transport = new JMSTransport(null, cfProps);

        // create a new Call object
        Call     call    = (Call) service.createCall();

        call.setOperationName( new QName("urn:xmltoday-delayed-quotes", "getQuote") );
        call.addParameter( "symbol", XMLType.XSD_STRING, ParameterMode.IN );
        call.setReturnType( XMLType.XSD_FLOAT );
        call.setTransport(transport);
View Full Code Here

Examples of org.apache.axis.client.Service.createCall()

    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

Examples of org.apache.axis.client.Service.createCall()

    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

Examples of org.apache.axis.client.Service.createCall()

        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

Examples of org.apache.axis.client.Service.createCall()

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

Examples of org.apache.axis.client.Service.createCall()

            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

Examples of org.apache.axis.client.Service.createCall()

      
       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

Examples of org.apache.axis.client.Service.createCall()

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