Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 12718 invoked from network); 6 Oct 2007 16:43:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Oct 2007 16:43:27 -0000 Received: (qmail 94465 invoked by uid 500); 6 Oct 2007 16:43:06 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 94441 invoked by uid 500); 6 Oct 2007 16:43:06 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 94430 invoked by uid 99); 6 Oct 2007 16:43:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Oct 2007 09:43:05 -0700 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of upulg.dev@gmail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Oct 2007 16:43:08 +0000 Received: by ug-out-1314.google.com with SMTP id o2so629019uge for ; Sat, 06 Oct 2007 09:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=kpRmN9/DyZx58LWs7x7qO2NyA9OhEzBzytm3gB0NPn4=; b=A1kNHpx8nxOnhFtr2NfbcDeUPMwEUV8ftrdqgo2q+CX3EMzeMJqPWHcuBoZ8hQsxGPSBobbTFrDq9szxDnpbT7UgehMhop8zF17YDD6ZJbMA1mbBAKev9774f9x1p1uOgxkNxu2A553aNrYxUCH3gMH12SOKwktF7WkNq2CE3vQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=itGhkfH36UeEKtGGpC0Kv/spPPnh0rwKtLXUQ7ivBPh41E2l4B9yKU8+JOZ93yysyGc1TGP0kD36dgk+oozsy/UzFJ78ayDykyQqK38vXvfGoOYQpkyCQblEIIpgD/jJvPHe6VVUNNCR8AACm17d7GmjTrdTmZFV+nXHlNkxCRw= Received: by 10.67.119.15 with SMTP id w15mr4638911ugm.1191688965902; Sat, 06 Oct 2007 09:42:45 -0700 (PDT) Received: by 10.66.219.9 with HTTP; Sat, 6 Oct 2007 09:42:45 -0700 (PDT) Message-ID: <51e581cd0710060942r74e0b66pe95b36b022269bd0@mail.gmail.com> Date: Sat, 6 Oct 2007 22:12:45 +0530 From: "Upul Godage" To: axis-user@ws.apache.org Subject: Re: TestClient.java --"package org.apache.axis.client.call does not exist." In-Reply-To: <408118.18060.qm@web51510.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_29162_3612627.1191688965898" References: <408118.18060.qm@web51510.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_29162_3612627.1191688965898 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Did you add all the jars in the Axis lib directory to the NetBeans project? Upul On 10/6/07, H.Z wrote: > > Hello, > > I am using Tomcat 5.0.25, Axis 1.4. NetBeans 5.5. > > I am trying an basic example Web Service client that will call the > echoString method on the public Axis server at Apache. > > But I get an error. > "package org.apache.axis.client.call does not exist." > > My code > > import org.apache.axis.client.Call; > import org.apache.axis.client.Service; > import javax.xml.namespace.QName; > public class TestClient > { > public static void main(String [] args) { > try { > String endpoint = > "http://nagoya.apache.org:5049/axis/services/echo"; > > Service service = new Service(); > Call call = (Call) service.createCall(); > call.setTargetEndpointAddress( new java.net.URL(endpoint) ); > call.setOperationName(new QName("http://soapinterop.org/", > "echoString") ); > // Call to addParameter/setReturnType as described in > user-guide.html > //call.addParameter("testParam", > // org.apache.axis.Constants.XSD_STRING, > // javax.xml.rpc.ParameterMode.IN); > //call.setReturnType(org.apache.axis.Constants.XSD_STRING); > String ret = (String) call.invoke( new Object[] { "Hello!" } ); > System.out.println("Sent 'Hello!', got '" + ret + "'"); > } catch (Exception e) { > System.err.println(e.toString()); > } > } > } > > > Thanks > > > > ------------------------------ > Don't let your dream ride pass you by. Make it a realitywith Yahoo! Autos. > > ------=_Part_29162_3612627.1191688965898 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

Did you add all the jars in the Axis lib directory to the NetBeans project?

Upul

On 10/6/07, H.Z < zhshqzyc0002@yahoo.com> wrote:
Hello,
 
I am using Tomcat 5.0.25, Axis 1.4. NetBeans 5.5.
 
I am trying an basic example Web Service client that will call the echoString method on the public Axis server at Apache.
 
But I get an error.
"package org.apache.axis.client.call does not exist."
 
My code
 
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class TestClient
{
   public static void main(String [] args) {
       try {
           String endpoint =
                    " http://nagoya.apache.org:5049/axis/services/echo";
    
           Service  service = new Service();
           Call     call    = (Call) service.createCall();
           call.setTargetEndpointAddress ( new java.net.URL(endpoint) );
           call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
           // Call to addParameter/setReturnType as described in user-guide.html
           //call.addParameter("testParam",
           //                  org.apache.axis.Constants.XSD_STRING,
           //                  javax.xml.rpc.ParameterMode.IN);
           //call.setReturnType(org.apache.axis.Constants.XSD_STRING);
           String ret = (String) call.invoke( new Object[] { "Hello!" } );
           System.out.println("Sent 'Hello!', got '" + ret + "'");
       } catch (Exception e) {
           System.err.println(e.toString());
       }
   }
}
 
 
Thanks
 
 


Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.


------=_Part_29162_3612627.1191688965898--