Package org.apache.axis.client

Examples of org.apache.axis.client.Service


   {
      String endpoint = getEndpoint(address, environment);

      InputStream wsdd = getClass().getResourceAsStream(CLIENT_WSDD);
      if (wsdd == null) throw new IOException("Could not find AXIS deployment descriptor");
      Service service = new Service(new FileProvider(wsdd));
      service.setMaintainSession(true);

      return new SOAPClientInvoker(endpoint, service);
   }
View Full Code Here


     */
    private void init() throws BioModelsWSException
    {
        try
        {
            Service service = new Service();
            call = (Call) service.createCall();
            call.setTargetEndpointAddress(new java.net.URL(endpoint));
        }
        catch (Exception e)
        {
            throw new BioModelsWSException(e);
View Full Code Here

       try {
           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

    protected Service createService(ImmutableEndpoint endpoint) throws Exception
    {
        // Create a simple axis service without wsdl
        EngineConfiguration config = getClientConfig(endpoint);
        return new Service(config);
    }
View Full Code Here

    protected Service createService(ImmutableEndpoint endpoint) throws Exception
    {
        // Create a simple axis service without wsdl
        EngineConfiguration config = getClientConfig(endpoint);
        return new Service(config);
    }
View Full Code Here

        if (entries.size() != 1)
        {
            throw new Exception("Need one and only one service entry, found " + entries.size());
        }
        // Create the axis service
        Service service = new Service(parser, (QName)entries.get(0));

        service.setEngineConfiguration(clientConfig);
        service.setEngine(new AxisClient(clientConfig));

        // Really the Axis Client service should set this stuff
        event.getMessage().setOutboundProperty(SoapConstants.METHOD_NAMESPACE_PROPERTY,
                                               parser.getCurrentDefinition().getTargetNamespace());
        // Todo how can we autogenerate the named params from the WSDL?
View Full Code Here

    public void testNullParametersInCallAllowed() throws Exception
    {
        OutboundEndpoint ep = muleContext.getEndpointFactory().getOutboundEndpoint(
            "axis:http://www.muleumo.org/services/myService?method=myTestMethod");
        AxisMessageDispatcher dispatcher = new AxisMessageDispatcher(ep);
        dispatcher.service = new Service();
        MuleEvent event = getTestEvent("testPayload");
        // there should be no NullPointerException
        Call call = dispatcher.getCall(event, new Object[]{null});

        assertNotNull(call);
View Full Code Here

                                 boolean useSoapMethod,
                                 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

    _prefs = prefs;
  }

  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

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.