Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 862182766 for ; Thu, 5 May 2011 07:34:56 +0000 (UTC) Received: (qmail 8158 invoked by uid 500); 5 May 2011 07:34:55 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 7690 invoked by uid 500); 5 May 2011 07:34:54 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 7680 invoked by uid 99); 5 May 2011 07:34:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 07:34:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of suresh.attanayake@gmail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bw0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 07:34:44 +0000 Received: by bwz16 with SMTP id 16so2090823bwz.32 for ; Thu, 05 May 2011 00:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=7PhR3U70scrhFImZK07Aa9UWJnaTg+zpPsfGnySUNw0=; b=F/c1ZftPo4aQPgSJ/2b+o6SYY9YLdBkEkyyWNWaTSRXFjdAIXtsCrgfn5W8+/eOYE3 MJSyPZczXGkRsXs18Vhg5yXEL340gGM0wmUdqlrkml3rZQyhGfLYtm/4klkw8MLQgY/U Vxy2fxHXHgN2yLHeKd0oCnx/k6qei+Snx2ITo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YLd85Tp2weMmoiUf5v4ygqm+bZFPKGN5z0pBJsMfAQ0VRMWdlk9c2Fw8f9Op5lTd66 QPCcGda/5JzQtU/yyv4U5rmxIpYEPvt0iBqhFEZG7obBGbYJVBEgoZyFlrDWY79GJ/W6 1jC4rkImI5j5XwNwPUYlyPnrpewOZ+XUWUNDs= MIME-Version: 1.0 Received: by 10.204.20.134 with SMTP id f6mr1955957bkb.165.1304580864122; Thu, 05 May 2011 00:34:24 -0700 (PDT) Received: by 10.204.115.72 with HTTP; Thu, 5 May 2011 00:34:24 -0700 (PDT) In-Reply-To: References: Date: Thu, 5 May 2011 13:04:24 +0530 Message-ID: Subject: Re: [Axis2] Re: How to write Web Service client for WSDL 2.0? From: suresh attanayake To: java-dev@axis.apache.org Content-Type: multipart/alternative; boundary=000325559986fc9e1204a2826613 X-Virus-Checked: Checked by ClamAV on apache.org --000325559986fc9e1204a2826613 Content-Type: text/plain; charset=ISO-8859-1 Hi, Since you have mentioned "However, if don't explicitly spell out wsdl2, that is if using http://localhost:8080/axis2/services/reservationService, I'll *get the same error shown in the web page* like this.", I believe the fault is in the service side and it has nothing to do with the stub your using. suresh.. On Sun, Apr 24, 2011 at 2:59 AM, Ping Liu wrote: > Sorry, this question is intended for Axis2. > > > Hi, >> >> I got the following error when writing a testing Web Service client. >> >> * [java] org.apache.axis2.AxisFault: The endpoint reference (EPR) for >> the Ope >> ration not found is >> http://localhost:8080/axis2/services/reservationService and >> the WSA Action = null. If this EPR was previously reachable, please >> contact the >> server administrator.* >> >> The service itself is generated by WSDL 2.0 and the WSDL can be viewed >> successfully at >> >> http://localhost:8080/axis2/services/reservationService?wsdl2 >> >> However, if don't explicitly spell out wsdl2, that is if using >> http://localhost:8080/axis2/services/reservationService, I'll get the >> same error shown in the web page like this. >> >> * >> >> The endpoint reference (EPR) for the Operation not found is >> /axis2/services/reservationService and the WSA Action = null. If this EPR >> was previously reachable, please contact the server administrator. >> >> * >> >> In the testing client class, I am using >> >> ReservationServiceStub stub = new ReservationServiceStub(" >> http://localhost:8080/axis2/services/reservationService"); >> >> I guess I have to set something for this ReservationServiceStub so that >> the stub will know to look for wsdl2 instead. >> >> Could anybody let me know how or point me to some helpful resource like >> tutorial etc? >> >> Thanks! >> >> Ping >> >> > --000325559986fc9e1204a2826613 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
Since you have mentioned "However, if don't explicitly spe= ll out wsdl2, that is if using http://localhost:8080/axis2/servi= ces/reservationService, I'll get the same error shown in the web= page like this.", I believe the fault is in the service side and = it has nothing to do with the stub your using.

suresh..

On Sun, Apr 24, 2011 at 2:59= AM, Ping Liu <pingpinganan@gmail.com> wrote:
Sorry, this question is intended for Axis2.


Hi,

I got the following error when writing a testing Web Service cli= ent.

=A0=A0=A0=A0 [java] org.apache.axis2.AxisFault: The endpoint referen= ce (EPR) for the Ope
ration not found is http://localhost:808= 0/axis2/services/reservationService and
the WSA Action =3D null. If this EPR was previously reachable, please conta= ct the
server administrator.


The service itself is generated = by WSDL 2.0 and the WSDL can be viewed successfully at

http://localhost:8080/axis2/services/reservationService?wsdl2

However, if don't explicitly spell out wsdl2, that is if using http://localhost:8080/axis2/services/reservationService, I'l= l get the same error shown in the web page like this.

<soapenv:Reason>
<soapenv:Text xml:lang=3D"en-US&qu= ot;>
The endpoint reference (EPR) for the Operation not found is /axi= s2/services/reservationService and the WSA Action =3D null. If this EPR was= previously reachable, please contact the server administrator.
</soapenv:Text>
</soapenv:Reason>


In the testing = client class, I am using

ReservationServiceStub stub =3D new Reserva= tionServiceStub("http://localhost:8080/axis2/services/reser= vationService");

I guess I have to set something for this ReservationServiceStub so that= the stub will know to look for wsdl2 instead.

Could anybody let me = know how or point me to some helpful resource like tutorial etc?

Thanks!

Ping



--000325559986fc9e1204a2826613--