Examples of registerTypeMapping()


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

  private boolean _remove(String cacheName,String method,String key) throws ServiceException, MalformedURLException, RemoteException  {
      Service  service = new Service();
        Call     call    = (Call) service.createCall();
       
       
        call.registerTypeMapping(
                Element.class,
                element,
                BeanSerializerFactory.class,
                BeanDeserializerFactory.class);
       
View Full Code Here

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

      Service  service = new Service();
        Call     call    = (Call) service.createCall();
       
        el.setResourceUri(endpoint);
       
        call.registerTypeMapping(
                Element.class,
                element,
                BeanSerializerFactory.class,
                BeanDeserializerFactory.class);
       
View Full Code Here

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

    }
   
    public void testXMLP4() throws Exception {
        Call call = new Call(RPC_ENDPOINT);
        call.setSOAPVersion(SOAPConstants.SOAP12_CONSTANTS);
        call.registerTypeMapping(SOAPStruct.class, SOAPSTRUCT_QNAME,
                                 new BeanSerializerFactory(SOAPStruct.class, SOAPSTRUCT_QNAME),
                                 new BeanDeserializerFactory(SOAPStruct.class, SOAPSTRUCT_QNAME));
        call.addParameter(new QName("", "inputFloat"),
                          Constants.XSD_FLOAT, ParameterMode.IN);
        call.addParameter(new QName("", "inputInteger"),
View Full Code Here

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

    public void testBeanFault() throws Exception {
        Call call = getCall();
        call.setOperationStyle("wrapped");
        call.setOperationUse("literal");
        call.setEncodingStyle("");
        call.registerTypeMapping(BeanFault.class, TYPE_QNAME,
                    new BeanSerializerFactory(BeanFault.class, TYPE_QNAME),
                    new BeanDeserializerFactory(BeanFault.class, TYPE_QNAME));
        call.setReturnClass(BeanFault.class);
        call.addParameter("arg0", Constants.XSD_STRING, ParameterMode.IN);
        String data = "bean fault test - 1";
View Full Code Here

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

    public void testBeanFault2() throws Exception {
        Call call = getCall();
        call.setOperationStyle("wrapped");
        call.setOperationUse("literal");
        call.setEncodingStyle("");
        call.registerTypeMapping(BeanFault2.class, TYPE_QNAME,
                    new BeanSerializerFactory(BeanFault2.class, TYPE_QNAME),
                    new BeanDeserializerFactory(BeanFault2.class, TYPE_QNAME));
        call.setReturnClass(BeanFault2.class);
        call.addParameter("arg0", Constants.XSD_STRING, ParameterMode.IN);
        String data = "bean fault test - 2";
View Full Code Here

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

        deploy("service", this.getClass(), Style.WRAPPED);
        Call call = getCall();
        call.setOperationStyle("wrapped");
        call.setOperationUse("literal");
        call.setEncodingStyle("");
        call.registerTypeMapping(Data.class, TYPE_QNAME,
                    new BeanSerializerFactory(Data.class, TYPE_QNAME),
                    new BeanDeserializerFactory(Data.class, TYPE_QNAME));
        call.setReturnClass(Data.class);
        call.addParameter("arg0", TYPE_QNAME, ParameterMode.IN);
        Data data = new Data();
View Full Code Here

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

    // this should fail
    public void testFields2() throws Exception {
        Service service = new Service();
        Call call  = (Call)service.createCall();
       
        call.registerTypeMapping(ComplexBean3.class,
                                 new QName("foo2", "bar2"),
                                 BeanSerializerFactory.class,
                                 BeanDeserializerFactory.class,
                                 false);
       
View Full Code Here

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

    public void testInOutBook() throws Exception {
        Call call = getCall();
        call.setOperationStyle("rpc");
        call.setOperationUse("literal");
        call.setEncodingStyle("");
        call.registerTypeMapping(Book.class, TYPE_BOOK,
                new BeanSerializerFactory(Book.class, TYPE_BOOK),
                new BeanDeserializerFactory(Book.class, TYPE_BOOK));
        call.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
        call.addParameter("varBook", TYPE_BOOK, ParameterMode.INOUT);
        Book data = new Book();
View Full Code Here

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

    public void testInOutBookArray() throws Exception {
        Call call = getCall();
        call.setOperationStyle("rpc");
        call.setOperationUse("literal");
        call.setEncodingStyle("");
        call.registerTypeMapping(ArrayOfBook.class, TYPE_ARRAY_OF_BOOK,
                new BeanSerializerFactory(ArrayOfBook.class,
                        TYPE_ARRAY_OF_BOOK),
                new BeanDeserializerFactory(ArrayOfBook.class,
                        TYPE_ARRAY_OF_BOOK));
        call.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
View Full Code Here

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

    }

    public void testGlobalTypes() throws Exception {
        Call call = new Call("http://localhost:8080/jws/GlobalTypeTest.jws");
        QName qname = new QName("http://globalTypeTest", "GlobalType");
        call.registerTypeMapping(GlobalBean.class, qname,
                    new BeanSerializerFactory(GlobalBean.class, qname),
                    new BeanDeserializerFactory(GlobalBean.class, qname));
        GlobalBean bean = new GlobalBean();
        bean.setIntValue(4);
        GlobalBean ret = (GlobalBean)call.invoke("echo", new Object [] { bean });
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.