Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 92583 invoked from network); 7 Oct 2007 03:02:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2007 03:02:45 -0000 Received: (qmail 859 invoked by uid 500); 7 Oct 2007 03:02:25 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 839 invoked by uid 500); 7 Oct 2007 03:02:25 -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 828 invoked by uid 99); 7 Oct 2007 03:02:25 -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 20:02:25 -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.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2007 03:02:26 +0000 Received: by ug-out-1314.google.com with SMTP id o2so658180uge for ; Sat, 06 Oct 2007 20:02:03 -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=ePwABKgoS2ZmH8IofSEJAh7a+9z/218WdDLd8jaJaNY=; b=N5D1Qhcl0P5Pn6oSW2rbAQeZZ3773E5PiqXpXxxsIpn55lHMVTspFeNNzB+0TWPcW5D1zvluvZIPkZqusJGuwf3YilLJPxb2SRQTUKgXtQPkKWXM7FOy+/VAthh1JR/0MgNFgmttLeGckuO33DwXu/4Ba/jDWXV39kphPv+7XP8= 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=OCcjBPMo3PJgbPAo6HMARKIhrZ10Iu809dJHkkouTqP0ALwwn/J2qwGWbBCd6Iien7C0sNQ8trvxPe6fCTzAOMDOSFF3vYdUqyHtiCz3w35EgKkkQhZnud0s+XJl4dOV7QVGuGFS+dHQ27WCABzaS64PFmti9+Vb7ZTIplmA7rI= Received: by 10.66.218.15 with SMTP id q15mr5157501ugg.1191726122753; Sat, 06 Oct 2007 20:02:02 -0700 (PDT) Received: by 10.66.254.18 with HTTP; Sat, 6 Oct 2007 20:02:02 -0700 (PDT) Message-ID: <51e581cd0710062002j776cc483nef2397e431b5394f@mail.gmail.com> Date: Sun, 7 Oct 2007 08:32:02 +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: <817089.22757.qm@web51512.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_31786_25290298.1191726122744" References: <51e581cd0710060942r74e0b66pe95b36b022269bd0@mail.gmail.com> <817089.22757.qm@web51512.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_31786_25290298.1191726122744 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, On 10/7/07, H.Z wrote: > > Yes, I just added. Now I get - Unable to find required classes ( > javax.activation.DataHandler and javax.mail.internet.MimeMultipart). > Attachment support is disabled. > This will not affect your program, I think, unless you use attachments. You can ignore this. (You can download Javamail and Java Activation Framework distributions and put the jars activation.jar, mail.jar, mailapi.jarprobably in TOMCAT /common/lib) java.net.ConnectException: Connection timed out: connect > This means the client tried to connect with the server but could not. Check whether the server side is there by accessing it using the browser. " http://nagoya.apache.org:5049/axis/services/echo" What I created is a Java project and Java class. > Java project is fine for running your client. Upul If I create a web application and a Java class. > I get--- > Starting debug server Bundled Tomcat (5.5.17) > Starting Tomcat process... > Waiting for Tomcat... > Tomcat server started. > In-place deployment at C:\Documents and > Settings\Owner\TestClient\build\web > OK - Deployed application at context path /TestClient > OK - Started application at context path /TestClient > Duplicated project name in import. Project TestClient-impl defined first > in C:\Documents and Settings\Owner\TestClient\nbproject\ant-deploy.xml and > again in C:\Documents and Settings\Owner\TestClient\nbproject\build- > impl.xml > connect-debugger: > Non-existing path "C:\Documents and > Settings\Owner\TestClient\build\ear-module\WEB-INF\classes" provided. > Attached JPDA debugger to localhost:tomcat_shared_memory_id > Duplicated project name in import. Project TestClient-impl defined first > in C:\Documents and Settings\Owner\TestClient\nbproject\ant-deploy.xml and > again in C:\Documents and Settings\Owner\TestClient\nbproject\build- > impl.xml > debug-display-browser: > Browsing: http://localhost:8084/TestClient/ > So what is wrong? > > Thanks > > > *Upul Godage * wrote: > > 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 realitywith Yahoo! Autos. > > > > > ------------------------------ > Be a better Globetrotter. Get better travel answers > from > someone who knows. > Yahoo! Answers - Check it out. > > ------=_Part_31786_25290298.1191726122744 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,


On 10/7/07, H.Z <zhshqzyc0002@yahoo.com> wrote:
Yes, I just added. Now I get - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

This will not affect your program, I think, unless you use attachments.  You can ignore this. (You can download Javamail and Java Activation Framework distributions and put the jars activation.jar, mail.jar, mailapi.jar probably in TOMCAT /common/lib)

java.net.ConnectException : Connection timed out: connect

This means the client tried to connect with the server but could not.  Check whether the server side is there by accessing it using the browser. " http://nagoya.apache.org:5049/axis/services/echo"
 

What I created is a Java project and Java class.

Java project is fine for running your client.


Upul
 

If I create a web application and a Java class.
I get---
Starting debug server Bundled Tomcat (5.5.17)
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
In-place deployment at C:\Documents and Settings\Owner\TestClient\build\web
OK - Deployed application at context path /TestClient
OK - Started application at context path /TestClient
Duplicated project name in import. Project TestClient-impl defined first in C:\Documents and Settings\Owner\TestClient\nbproject\ant- deploy.xml and again in C:\Documents and Settings\Owner\TestClient\nbproject\build-impl.xml
connect-debugger:
Non-existing path "C:\Documents and Settings\Owner\TestClient\build\ear-module\WEB-INF\classes" provided.
Attached JPDA debugger to localhost:tomcat_shared_memory_id
Duplicated project name in import. Project TestClient-impl defined first in C:\Documents and Settings\Owner\TestClient\nbproject\ant-deploy.xml and again in C:\Documents and Settings\Owner\TestClient\nbproject\build-impl.xml
debug-display-browser:
Browsing: http://localhost:8084/TestClient/
So what is wrong?
 
Thanks



Upul Godage < upulg.dev@gmail.com> wrote:
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.



Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.


------=_Part_31786_25290298.1191726122744--