Package org.apache.axis.encoding

Examples of org.apache.axis.encoding.BeanSerializer$PropertyTarget


        service = serviceName;
        try {
            // register the PurchaseOrder class
            QName qn1 = new QName(serviceName, "Address");
            Class cls = Address.class;
            call.addSerializer(cls, qn1, new BeanSerializer(cls));
            call.addDeserializerFactory(qn1, cls, BeanSerializer.getFactory());
           
            // register the PhoneNumber class
            QName qn2 = new QName(serviceName, "PhoneNumber");
            cls = PhoneNumber.class;
            call.addSerializer(cls, qn2, new BeanSerializer(cls));
            call.addDeserializerFactory(qn2, cls, BeanSerializer.getFactory());
        } catch (Exception ex) {
            throw new IllegalArgumentException("Exception configurizing bean serialization: "+ex);
        }
       
View Full Code Here


     */
    public void execute() throws Exception {
        // register the SOAPStruct class
        QName ssqn = new QName("http://soapinterop.org/xsd", "SOAPStruct");
        Class cls = SOAPStruct.class;
        call.addSerializer(cls, ssqn, new BeanSerializer(cls));
        call.addDeserializerFactory(ssqn, cls, BeanSerializer.getFactory());

        // execute the tests
        test("String      ", "abcdefg");
        test("StringArray ", new String[] {"abc", "def"});
View Full Code Here

        // register the PurchaseOrder class
        QName poqn = new QName("http://www.soapinterop.org/Bid",
                               "PurchaseOrder");
        Class cls = PurchaseOrder.class;
        call.addSerializer(cls, poqn, new BeanSerializer(cls));
        call.addDeserializerFactory(poqn, cls, BeanSerializer.getFactory());

        // register the Address class
        QName aqn = new QName("http://www.soapinterop.org/Bid", "Address");
        cls = Address.class;
        call.addSerializer(cls, aqn, new BeanSerializer(cls));
        call.addDeserializerFactory(aqn, cls, BeanSerializer.getFactory());

        // register the LineItem class
        QName liqn = new QName("http://www.soapinterop.org/Bid", "LineItem");
        cls = LineItem.class;
        call.addSerializer(cls, liqn, new BeanSerializer(cls));
        call.addDeserializerFactory(liqn, cls, BeanSerializer.getFactory());

        try {
            // Default return type based on what we expect
            ServiceDescription sd = new ServiceDescription("Buy", true);
View Full Code Here

        // register the PurchaseOrder class
        QName poqn = new QName("http://www.soapinterop.org/Bid",
                               "PurchaseOrder");
        Class cls = PurchaseOrder.class;
        call.addSerializer(cls, poqn, new BeanSerializer(cls));
        call.addDeserializerFactory(poqn, cls, BeanSerializer.getFactory());

        // register the Address class
        QName aqn = new QName("http://www.soapinterop.org/Bid", "Address");
        cls = Address.class;
        call.addSerializer(cls, aqn, new BeanSerializer(cls));
        call.addDeserializerFactory(aqn, cls, BeanSerializer.getFactory());

        // register the LineItem class
        QName liqn = new QName("http://www.soapinterop.org/Bid", "LineItem");
        cls = LineItem.class;
        call.addSerializer(cls, liqn, new BeanSerializer(cls));
        call.addDeserializerFactory(liqn, cls, BeanSerializer.getFactory());

        try {
            // Default return type based on what we expect
            ServiceDescription sd = new ServiceDescription("Buy", true);
View Full Code Here

     */
    public void execute() throws Exception {
        // register the SOAPStruct class
        QName ssqn = new QName("http://soapinterop.org/xsd", "SOAPStruct");
        Class cls = SOAPStruct.class;
        call.addSerializer(cls, ssqn, new BeanSerializer(cls));
        call.addDeserializerFactory(ssqn, cls, BeanSerializer.getFactory());

        // execute the tests
        test("String      ", "abcdefg");
        test("StringArray ", new String[] {"abc", "def"});
View Full Code Here

   
    /**
     * Test a method that reverses a data structure
     */
    public void testSerReverseData() throws Exception {
        BeanSerializer ser = new BeanSerializer(Data.class);
        DeserializerFactory dSerFactory = BeanSerializer.getFactory();
        QName qName = new QName("urn:foo", "Data");
        engine.registerTypeMapping(qName, Data.class, dSerFactory,
                                   ser);
       
View Full Code Here

   
    /**
     * Test a method that reverses a data structure
     */
    public void testReverseDataWithUntypedParam() throws Exception {
        BeanSerializer ser = new BeanSerializer(Data.class);
        DeserializerFactory dSerFactory = BeanSerializer.getFactory();
        QName qName = new QName("urn:foo", "Data");
        engine.registerTypeMapping(qName, Data.class, dSerFactory,
                                   ser);
       
View Full Code Here

   
    /**
     * Test DOM round tripping
     */
    public void testArgAsDOM() throws Exception {
        BeanSerializer ser = new BeanSerializer(Data.class);
        DeserializerFactory dSerFactory = BeanSerializer.getFactory();
        QName qName = new QName("urn:foo", "Data");
        engine.registerTypeMapping(qName, Data.class, dSerFactory,
                                   ser);
       
View Full Code Here

     */
    public void execute() throws Exception {
        // register the SOAPStruct class
        QName ssqn = new QName("http://soapinterop.org/xsd", "SOAPStruct");
        Class cls = SOAPStruct.class;
        call.addSerializer(cls, ssqn, new BeanSerializer(cls));
        call.addDeserializerFactory(ssqn, cls, BeanSerializer.getFactory());

        // execute the tests
        test("String      ", "abcdefg");
        test("StringArray ", new String[] {"abc", "def"});
View Full Code Here


      // register the PurchaseOrder class
      QName poqn = new QName("http://www.soapinterop.org/Bid", "PurchaseOrder");
      Class cls = PurchaseOrder.class;
      call.addSerializer(cls, poqn, new BeanSerializer(cls));
      call.addDeserializerFactory(poqn, cls, BeanSerializer.getFactory());

      // register the Address class
      QName aqn = new QName("http://www.soapinterop.org/Bid", "Address");
      cls = Address.class;
      call.addSerializer(cls, aqn, new BeanSerializer(cls));
      call.addDeserializerFactory(aqn, cls, BeanSerializer.getFactory());

      // register the LineItem class
      QName liqn = new QName("http://www.soapinterop.org/Bid", "LineItem");
      cls = LineItem.class;
      call.addSerializer(cls, liqn, new BeanSerializer(cls));
      call.addDeserializerFactory(liqn, cls, BeanSerializer.getFactory());

      LineItem[]     lineItems = new LineItem[numItems];
     
     
View Full Code Here

TOP

Related Classes of org.apache.axis.encoding.BeanSerializer$PropertyTarget

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.