Examples of registerTypeMapping()


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

        call.setOperationName(new QName("urn:EchoAttachmentsService","echo") ); //This is the target services method to invoke.

        QName qnameAttachment = new QName("urn:EchoAttachmentsService", "DataHandler");

        call.registerTypeMapping(dhSource.getClass(),//Add serializer for attachment.
                                 qnameAttachment,
                                 JAFDataHandlerSerializerFactory.class,
                                 JAFDataHandlerDeserializerFactory.class);

                                
View Full Code Here

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

        call.setOperationName( new QName("urn:EchoAttachmentsService", "echoDir") ); //This is the target services method to invoke.

        QName qnameAttachment = new QName("urn:EchoAttachmentsService", "DataHandler");

        call.registerTypeMapping(attachments[0].getClass(),//Add serializer for attachment.
                                 qnameAttachment,
                                 JAFDataHandlerSerializerFactory.class,
                                 JAFDataHandlerDeserializerFactory.class);

        call.addParameter( "source",   XMLType.SOAP_ARRAY , // new XMLType(qnameAttachment),
View Full Code Here

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

       
        Service  service = new Service();
        Call     call    = (Call) service.createCall();
        QName    qn      = new QName( "urn:BeanService", "Order" );

        call.registerTypeMapping(Order.class, qn,
                      new org.apache.axis.encoding.ser.BeanSerializerFactory(Order.class, qn),       
                      new org.apache.axis.encoding.ser.BeanDeserializerFactory(Order.class, qn));       
        String result;
        try {
            call.setTargetEndpointAddress( new java.net.URL(options.getURL()) );
View Full Code Here

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

        call.setOperationName(new QName("urn:EchoAttachmentsService", "echo")); //This is the target services method to invoke.

        QName qnameAttachment = new QName("urn:EchoAttachmentsService", "DataHandler");

        call.registerTypeMapping(dhSource.getClass(), //Add serializer for attachment.
                                 qnameAttachment,
                                 JAFDataHandlerSerializerFactory.class,
                                 JAFDataHandlerDeserializerFactory.class);

View Full Code Here

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

        call.setOperationName(new QName("urn:EchoAttachmentsService", "echoDir")); //This is the target services method to invoke.

        QName qnameAttachment = new QName("urn:EchoAttachmentsService", "DataHandler");

        call.registerTypeMapping(attachments[0].getClass(), //Add serializer for attachment.
                                 qnameAttachment,
                                 JAFDataHandlerSerializerFactory.class,
                                 JAFDataHandlerDeserializerFactory.class);

        call.addParameter("source", XMLType.SOAP_ARRAY, // new XMLType(qnameAttachment),
View Full Code Here

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

    //Set it to 2 if it is non interactive, such as for instance a JDBC Bridge driver that intercepts SQL
    l_call.addParameter("a_interactive", XMLType.XSD_INT, ParameterMode.IN);

    QName l_qn = new QName(IWebServiceURL.REQUEST_URL, "SessionData");

    l_call.registerTypeMapping(SessionData.class, l_qn,
      new org.apache.axis.encoding.ser.BeanSerializerFactory(SessionData.class, l_qn),
      new org.apache.axis.encoding.ser.BeanDeserializerFactory(SessionData.class, l_qn));

    //Set the return type
    l_call.setReturnType(l_qn);
View Full Code Here

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

    //Hopefully some type of XML format will be available as well
    l_call.addParameter("a_resultType", XMLType.XSD_STRING, ParameterMode.IN);

    QName l_qn = new QName(IWebServiceURL.REQUEST_URL, "ValidatorResult");

    l_call.registerTypeMapping(ValidatorResult.class, l_qn,
      new org.apache.axis.encoding.ser.BeanSerializerFactory(
        ValidatorResult.class,
        l_qn),
      new org.apache.axis.encoding.ser.BeanDeserializerFactory(
        ValidatorResult.class,
View Full Code Here

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

        l_call.addParameter( "a_resultType", XMLType.XSD_STRING, ParameterMode.IN );
       
        QName l_qn = new QName( "http://sqlvalidator.mimer.com/v1.0", "ValidatorResult" );
//        QName l_qn = new QName( "http://sqlvalidator.mimer.com/v1", "ValidatorResult" );

        l_call.registerTypeMapping(ValidatorResult.class, l_qn,
                      new org.apache.axis.encoding.ser.BeanSerializerFactory(ValidatorResult.class, l_qn),       
                      new org.apache.axis.encoding.ser.BeanDeserializerFactory(ValidatorResult.class, l_qn));       

        //Set the return type
        l_call.setReturnType(l_qn);
View Full Code Here

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

        l_call.addParameter( "a_interactive", XMLType.XSD_INT, ParameterMode.IN );

        QName l_qn = new QName( "http://sqlvalidator.mimer.com/v1.0", "SessionData" );
//        QName l_qn = new QName( "http://sqlvalidator.mimer.com/v1", "SessionData" );

        l_call.registerTypeMapping(SessionData.class, l_qn,
                      new org.apache.axis.encoding.ser.BeanSerializerFactory(SessionData.class, l_qn),       
                      new org.apache.axis.encoding.ser.BeanDeserializerFactory(SessionData.class, l_qn));       

        //Set the return type
        l_call.setReturnType(l_qn);
View Full Code Here

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

      Call call = (Call) service.createCall();
      call.setTimeout(getTimeout());
      call.setTargetEndpointAddress(mEndpoint);
      call.setOperationName(operationQName);

      call.registerTypeMapping(ResourceMetaData.class, resourceMetaDataTypeQName,
              new XmlSerializerFactory(), new XmlDeserializerFactory());

      return (ResourceMetaData) call.invoke(new Object[0]);
    } catch (ServiceException e) {
      throw new ResourceServiceException(e);
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.