Package org.apache.axis.client

Examples of org.apache.axis.client.Service


    //This method makes the web service call
    //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_callingProgram, String a_callingProgramVersion,
                                   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 operationQName = new QName("http://uima.apache.org/resource", "getMetaData");
    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

            "resultSpecification");
    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

            "RspName["+RspName+"]\r\n"+
            "ReqValue["+ReqValue+"]");
      }
     
      Map output;
      Call call = (Call) new Service().createCall();
     
      String _ServicesURL = ServicesURL + "/" + SerVicesName;
      call.setTargetEndpointAddress(new URL(_ServicesURL));
      call.setOperationName(new QName(SerVicesName,SerVicesName));
      call.addParameter(ReqName,org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
View Full Code Here

   * @throws ServiceException if stub could not be generated
   */
  public static Stub generateServiceStub(AdWordsService service, AdWordsUser user,
      String endpointServer, boolean validateOnly) throws ServiceException {
    try {
      Service axisService =
          generateAxisService(service.getLocatorClass(),
              AdWordsUser.getUseClasspathClientConfig());
      setEndpointAddress(axisService, service.getEndpointAddress(endpointServer));
      Stub stub = getConfiguredStub(axisService, service.getInterfaceClass(),
          service.getVersion(), user, validateOnly);
View Full Code Here

            if (operationInfo.getOperationDesc().getUse() == Use.ENCODED) {
                encodingStyle = org.apache.axis.Constants.URI_SOAP11_ENC;
            }
        }
        //register our type descriptors
        Service service = ((ServiceImpl) serviceImpl).getService();
        AxisEngine axisEngine = service.getEngine();
        TypeMappingRegistry typeMappingRegistry = axisEngine.getTypeMappingRegistry();
        TypeMapping typeMapping = typeMappingRegistry.getOrMakeTypeMapping(encodingStyle);
        typeMapping.register(BigInteger.class,
                Constants.XSD_UNSIGNEDLONG,
                new SimpleSerializerFactory(BigInteger.class, Constants.XSD_UNSIGNEDLONG),
View Full Code Here

//            if (!initialized) {
//                initialize();
//                initialized = true;
//            }
//        }
        Service service = ((ServiceImpl) serviceImpl).getService();
        GenericServiceEndpoint serviceEndpoint = new GenericServiceEndpoint(portQName, service, location);
        Callback callback = new ServiceEndpointMethodInterceptor(serviceEndpoint, sortedOperationInfos, credentialsName);
        Callback[] callbacks = new Callback[]{SerializableNoOp.INSTANCE, callback};
        Enhancer.registerCallbacks(serviceEndpointClass, callbacks);
        try {
View Full Code Here

        SimpleProvider engineConfiguration = new SimpleProvider(typeMappingRegistry);
        engineConfiguration.deployTransport("http", new SimpleTargetedChain(new HTTPSender()));

        GeronimoAxisClient engine = new GeronimoAxisClient(engineConfiguration, portToImplementationMap);

        delegate = new Service(engineConfiguration, engine);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis.client.Service

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.