Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 92017 invoked from network); 12 Jul 2006 03:32:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jul 2006 03:32:08 -0000 Received: (qmail 79575 invoked by uid 500); 12 Jul 2006 03:32:07 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 78882 invoked by uid 500); 12 Jul 2006 03:32:05 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 78871 invoked by uid 99); 12 Jul 2006 03:32:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 20:32:05 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DATE_IN_PAST_06_12 X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.16] (HELO relay02.pair.com) (209.68.5.16) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Jul 2006 20:32:04 -0700 Received: (qmail 96066 invoked from network); 12 Jul 2006 03:31:40 -0000 Received: from unknown (HELO ?127.0.0.1?) (unknown) by unknown with SMTP; 12 Jul 2006 03:31:40 -0000 X-pair-Authenticated: 222.165.174.82 Message-ID: <44B3CFE8.8090100@opensource.lk> Date: Tue, 11 Jul 2006 21:50:56 +0530 From: Deepal Jayasinghe User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: Re: [Axis2] Asynchronous web service invocation References: <44AE6C59.5010401@cogenit.fr> <44AE6E8F.90405@cogenit.fr> <44AE7339.10605@cogenit.fr> In-Reply-To: <44AE7339.10605@cogenit.fr> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi; Engaging module at client side can be done in two ways; - Create ConfigurationContext using a repository where that repository has addressing module - And then create ServiceClient using that configuration context - The second way is to drop the addressing.mar into class path and then create Service client using its default constructor; (here the meaning of class path is , the location where your axis2.jar file is located) Jean-Michel PATER wrote: > I found how to do it looking in the following message : > [Axis2] How can I engage a module at the client side? > > Thanks > > Jean-Michel PATER wrote: > >> Hi, >> >> In the available modules, there is "addressing-1.0", and in the >> available services, for my service it seems that "addressing-1.0" is >> engaged. >> >>> INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 >>> Jul 7, 2006 3:42:14 PM org.apache.catalina.core.StandardHost start >>> INFO: XML validation disabled >>> Jul 7, 2006 3:42:14 PM org.apache.catalina.startup.HostConfig deployWAR >>> INFO: Deploying web application archive axis2.war >>> INFO org.apache.axis2.deployment.DeploymentEngine - Deploying >>> module : soapmonitor-1.0 >>> INFO org.apache.axis2.deployment.DeploymentEngine - Deploying >>> module : addressing-1.0 >> >> Shall I have to do something else ? >> >> >> Ajith Ranabahu wrote: >> >>> hi, >>> For the async calls to work WS-Addressing needs to be there. Basically >>> you have to have the addressing module in your modules directory (or >>> in your class path if you don't have a repo) to be engaged. >>> >>> Ajith >>> >>> On 7/7/06, Jean-Michel PATER wrote: >>> >>>> Hi all, >>>> >>>> I'm trying to call a web service with the Non-Blocking API >>>> My code is : >>>> > OMElement payload = doc; >>>> > Options options = new Options(); >>>> > options.setTo(targetEPR); >>>> > options.setAction("printHello"); >>>> > >>>> options.setTransportInProtocol(Constants.TRANSPORT_HTTP); >>>> > options.setUseSeparateListener(true); >>>> > >>>> > >>>> > //Callback to handle the response >>>> > org.apache.axis2.client.async.Callback callback = >>>> > new org.apache.axis2.client.async.Callback() { >>>> > public void onComplete(AsyncResult result) >>>> > { >>>> > try { >>>> > >>>> > >>>> > >>>> System.out.println(result.getResponseEnvelope()); >>>> > } >>>> > catch(Exception e) { >>>> > e.printStackTrace(); >>>> > } >>>> > } >>>> > >>>> > public void onError(Exception e) { >>>> > e.printStackTrace(); >>>> > } >>>> > }; >>>> > >>>> > //Non-Blocking Invocation >>>> > sender = new ServiceClient(); >>>> > sender.setOptions(options); >>>> > sender.engageModule(new >>>> QName(Constants.MODULE_ADDRESSING)); >>>> > sender.sendReceiveNonBlocking(payload, callback); >>>> And I get the following exception : >>>> > org.apache.axis2.AxisFault: Module not found >>>> > at >>>> > >>>> org.apache.axis2.description.AxisService.engageModule(AxisService.java:427) >>>> >>>> > at >>>> > >>>> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:270) >>>> >>>> Whats' wrong ? >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org >>>> For additional commands, e-mail: axis-dev-help@ws.apache.org >>>> >>>> >>> >>> >> > -- Thanks, Deepal ................................................................ ~Future is Open~ --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org