Package org.apache.axis.client

Examples of org.apache.axis.client.Call.invoke()


            Call call = getCall();
            call.setTargetEndpointAddress(m_url);
            call.setOperationName(new QName(m_service, "getAllBeans"));
            call.setReturnType(m_beanArrayQName);
            if (filter == null)
                beans = (IF1[]) call.invoke(new Object[0]);
            else
            {
                call.addParameter("filter", m_stringArrayQName, ParameterMode.IN);
                beans = (IF1[]) call.invoke(new Object[] { filter });
            }
View Full Code Here


            if (filter == null)
                beans = (IF1[]) call.invoke(new Object[0]);
            else
            {
                call.addParameter("filter", m_stringArrayQName, ParameterMode.IN);
                beans = (IF1[]) call.invoke(new Object[] { filter });
            }

        return beans;
    }
View Full Code Here

            Call call = getCall();
            call.setTargetEndpointAddress(m_url);
            call.setOperationName(new QName(m_service, "getAllCategories"));
            call.setReturnType(m_stringArrayQName);
            categories = (String[]) call.invoke(new Object[0]);

        return categories;
    }

    public IF1[] getBeansByCategory(String category)
View Full Code Here

        LocalTransport transport = new LocalTransport(server);
        transport.setRemoteService("service");
        call.setTransport(transport);

        // Make the call.
        String result = (String)call.invoke("service",
                                            "testScopedProperty",
                                            new Object [] { });

        assertEquals("Returned scoped property wasn't correct",
                     SERVER_VALUE,
View Full Code Here

        LocalTransport transport = new LocalTransport(server);
        transport.setRemoteService("service");
        call.setTransport(transport);

        // Make the call.
        String result = (String)call.invoke("service",
                                            "testOverrideProperty",
                                            new Object [] { });
        assertEquals("Overriden property value didn't match",
                     OVERRIDE_VALUE,
                     result);
View Full Code Here

            call.setTargetEndpointAddress(m_url);
            call.setOperationName(new QName(m_service, "getBeansByCategory"));
            call.setReturnType(m_beanArrayQName);
            call.addParameter("category", org.apache.axis.Constants.XSD_STRING, ParameterMode.IN);
            if (filter == null)
                beans = (IF1[]) call.invoke(new Object[] { category });
            else
            {
                call.addParameter("filter", m_stringArrayQName, ParameterMode.IN);
                beans = (IF1[]) call.invoke(new Object[] { category, filter });
            }
View Full Code Here

        }
        try {
            Call call = new Call(endpoint.toString());
            ((org.apache.axis.Message)request).setMessageContext(call.getMessageContext());
            SOAPEnvelope env = ((org.apache.axis.Message)request).getSOAPEnvelope();
            call.invoke(env);
            return call.getResponseMessage();
        } catch (java.net.MalformedURLException mue){
            throw new SOAPException(mue);
        } catch (org.apache.axis.AxisFault af){
            throw new SOAPException(af);
View Full Code Here

        input[0] = new SOAPBodyElement(XMLUtils.StringToElement("urn:foo",
                                                                "e1", "Hello"));
        input[1] = new SOAPBodyElement(XMLUtils.StringToElement("urn:foo",
                                                                "e1", "World"));

        Vector          elems = (Vector) call.invoke( input );
        SOAPBodyElement elem  = null ;
        Element         e     = null ;

        elem = (SOAPBodyElement) elems.get(0);
        e    = elem.getAsDOM();
View Full Code Here

        int maxChars = new Random().nextInt(50);
        for (int i = 0; i < maxChars; i++) {
            str += "a";
        }

        Integer i = (Integer)call.invoke("countChars", new Object [] { str });
       
        int desiredResult = str.length();
        if (doubled) desiredResult = desiredResult * 2;
       
        return (i.intValue() == desiredResult);
View Full Code Here

        if (args.length != 1)
            System.out.println(getVersion());
        else
            try {
                Call call = new Call(args[0]);
                String result = (String)call.invoke("Version", "getVersion",
                                                    null);
                System.out.println(result);
            } catch (Exception e) {
                e.printStackTrace();
            }
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.