Package org.apache.axis.client

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


           String endpoint =
                    "http://localhost:8070/jboss-net/services/testHelloWorld";
     String methodName = "getHelloWorldMessage";
    
           Service  service = new Service();
           Call     call    = (Call) service.createCall();

           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
           call.setOperationName(methodName);

           // Call to addParameter/setReturnType as described in user-guide.html
View Full Code Here


                                 boolean useQNameMethod) throws Exception
    {
        if (useAxisApi)
        {
            Service service = new Service();
            Call call = (Call)service.createCall();
            call.setTargetEndpointAddress(new java.net.URL(endpoint));
            call.setOperationName(method);
            String ret = (String)call.invoke(new Object[]{expectedResult});
            assertNotNull(ret);
            assertEquals(ret, expectedResult);
View Full Code Here

   * Open a sesion to the web service.
   */
  public void open() throws RemoteException, ServiceException
  {
    Service l_service = new Service();
    Call l_call = (Call)l_service.createCall();

    //Set the target server and name space
    l_call.setTargetEndpointAddress(IWebServiceURL.WEB_SERVICE_URL);
    l_call.setOperationName(new QName("SQL99Validator", "openSession"));

View Full Code Here

  }

  public ValidatorResult validate(String sql) throws ServiceException, RemoteException
  {
    Service l_service = new Service();
    Call l_call = (Call)l_service.createCall();

    //Set the target server and name space
    l_call.setTargetEndpointAddress(_webServiceSession.getTargetURL());
    l_call.setOperationName(new QName("SQL99Validator", "validateSQL"));
View Full Code Here

    //If you want to you can create a web service proxy from the WSDL file,
    //9 times out of 10, that's what you really want to do.
    public ValidatorResult callSQL99Validator (URL a_url, int a_sessionId, int a_sessionKey, String a_sqlStatement, String a_resultType) throws RemoteException, ServiceException {

        Service  l_service = new Service();
        Call     l_call    = (Call) l_service.createCall();

        //Set the target server and name space
        l_call.setTargetEndpointAddress( a_url );
        l_call.setOperationName( new QName("SQL99Validator", "validateSQL") );
View Full Code Here

                                   String a_targetDbms, String a_targetDbmsVersion,
                                   String a_connectionTechnology, String a_connectionTechnologyVersion,
                                   int a_interactive) throws RemoteException, ServiceException {
                                      
        Service  l_service = new Service();
        Call     l_call    = (Call) l_service.createCall();

        //Set the target server and name space
        l_call.setTargetEndpointAddress( a_url );
        l_call.setOperationName( new QName("SQL99Validator", "openSession") );
View Full Code Here

    @Override
    public void execute(PaymentInfoMagcard payinfo) {
        //test -> login: secpay / pass: secpay
        try {
        Service service = new Service();
        Call call = (Call) service.createCall();
        call.setTargetEndpointAddress(ENDPOINTADDRESS);
        Object[] methodParams;
        //AMOUNT must be > 1
        if (payinfo.getTotal() > 0.0) {           
View Full Code Here

    final QName resourceMetaDataTypeQName = new QName("http://uima.apache.org/resourceSpecifier",
            "resourceMetaData");

    try {
      Service service = new Service();
      Call call = (Call) service.createCall();
      call.setTimeout(getTimeout());
      call.setTargetEndpointAddress(mEndpoint);
      call.setOperationName(operationQName);

      call.registerTypeMapping(ResourceMetaData.class, resourceMetaDataTypeQName,
View Full Code Here

    final QName serviceDataCargoTypeQName = new QName("http://uima.apache.org/analysis_engine",
            "serviceDataCargo");

    try {
      Service service = new Service();
      Call call = (Call) service.createCall();

      call.setTargetEndpointAddress(getServiceEndpoint());
      call.setTimeout(getTimeout());
      call.setOperationName(operationQName);
View Full Code Here

    final QName resourceMetaDataTypeQName = new QName("http://uima.apache.org/resourceSpecifier",
            "resourceMetaData");

    try {
      Service service = new Service();
      Call call = (Call) service.createCall();
      call.setTimeout(getTimeout());
      call.setTargetEndpointAddress(mEndpoint);
      call.setOperationName(operationQName);

      call.registerTypeMapping(ResourceMetaData.class, resourceMetaDataTypeQName,
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.