Package org.apache.axis.client

Examples of org.apache.axis.client.Service


   */
  private static final byte[] obtainLicenseFile(Byte[] blowfishKey, Byte[] serverData) throws AxisFault
  {
    byte[] returnByteArray = null;
    try {
      Service service = new Service();

      Call call = (Call)service.createCall();
      call.setTargetEndpointAddress(new java.net.URL(WEB_SERVICE_URL));
      call.setOperationName(new QName("LicenseAdminSoapService", "obtainLicenseFile"));
      call.addParameter("arg1", XMLType.XSD_BASE64, ParameterMode.IN);
      call.addParameter("arg2", XMLType.XSD_BASE64, ParameterMode.IN);
      call.setReturnType(XMLType.XSD_BASE64);
View Full Code Here


    try
    {
      String endpoint = "http://" + host + ":" + port
          + "/xbus/services/xBusAdministration";

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

      call.setTargetEndpointAddress(new URL(endpoint));
      call.setOperationName(new QName("http://soapinterop.org/",
          "restart"));
View Full Code Here

       
        // Method Name to invoke for the SparePartInfo Web Service
        String methodName  = "getPartInfo";
       
        // Create the Service call
        Service service = new Service();
        Call call = (Call) service.createCall();
        call.setTargetEndpointAddress(new java.net.URL(endpointURL));
        call.setOperationName(new QName("SparePartInfo",methodName));
        call.addParameter( "sku",
                           XMLType.XSD_STRING,
                           ParameterMode.IN );
View Full Code Here

  }


  void open(String host) throws Exception {
    endpoint = host + "/axis/services/OSGiFramework";
    service = new Service();
    call    = (Call) service.createCall();
   
    call.setTargetEndpointAddress( new URL(endpoint) );

    System.out.println("opened " + endpoint +
View Full Code Here

   */
  void getServices() {
    String endpoint = urlBase + "axisadmin";
    try {
 
      Service  service = new Service();
      Call     call    = (Call) service.createCall();
     
      call.setTargetEndpointAddress( new URL(endpoint) );
      call.setOperationName(new QName("getPublishedServiceNames"));
     
      Object[]       params = new Object[] { };
View Full Code Here

  throw new IllegalArgumentException("No services");
      }

      String endpoint = wsdl.endPoint;

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

      call.setTargetEndpointAddress( new URL(endpoint) );
      call.setOperationName(new QName(op.getName()));
     
      java.util.List values = new ArrayList();
View Full Code Here

public class TestMsg {
    public String doit(String[] args) throws Exception {
        Options opts = new Options(args);
        opts.setDefaultURL("http://localhost:8080/services/MessageService");

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

        call.setTargetEndpointAddress( new URL(opts.getURL()) );
        SOAPBodyElement[] input = new SOAPBodyElement[3];

        input[0] = new SOAPBodyElement(XMLUtils.StringToElement("urn:foo",
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

            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

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.