Re: Long response times when using IP-adress in endpoint string

2005-07-31 Thread Magnus Karlsson

Hi,

Well, at the end I found out the Axis, Java runtime or Linux made a 
reverse adress translation request which timed out after a certain 
amount of time. I wonder that's the reason for the reverse translation 
as the application allready had the IP..


Adding the host into /etc/hosts solved the problem..

// Magnus

Dirk Strauss skrev:


Hello, Magnus

maybe you have a routing problem. Check your routes and your firewall 
of your machine :/


Regards

Magnus Karlsson wrote:


Hi,

I got a strange behaviour of my client to web service communication. 
I've made just an "echo"-service running in application mode that 
returns the string that it was called with (i.e public String echo ( 
String echoString ) { return echoString; }.


I call the method from the (fat) client using something like this:

   String endpoint = "http://localhost:/axis/services/echo";;
 
   Service  service = new Service();

   Call call= (Call) service.createCall();
 
   call.setTargetEndpointAddress( new java.net.URL(endpoint) );

   call.setOperationName( "echo" ));
 
   String ret = (String) call.invoke( new Object[] { "Hello!" } );
 
   System.out.println("Sent 'Hello!', got '" + ret + "'");


When I use "localhost" (127.0.0.1 does also work fine) in the the 
endpoint string everything is tremendously fast,
but when I use the IP adress of the machine 
"http://192.168.0.2:/axis/services/echo"; the response

time about 7-9 seconds!
What could be the reason for this increase?

I am running Axis on Tomcat 5.5 in Fedora core 4 with firewall 
switched off. Maybe Axis is recognising that
the request/response does not need to be sent on the network, or 
maybe Linux does it.


Any clues or ideas are more than welcome.

Regards,
Magnus









Long response times when using IP-adress in endpoint string

2005-07-27 Thread Magnus Karlsson

Hi,

I got a strange behaviour of my client to web service communication. 
I've made just an "echo"-service running in application mode that 
returns the string that it was called with (i.e public String echo ( 
String echoString ) { return echoString; }.


I call the method from the (fat) client using something like this:

   String endpoint = "http://localhost:/axis/services/echo";;
 
   Service  service = new Service();

   Call call= (Call) service.createCall();
 
   call.setTargetEndpointAddress( new java.net.URL(endpoint) );

   call.setOperationName( "echo" ));
 
   String ret = (String) call.invoke( new Object[] { "Hello!" } );
 
   System.out.println("Sent 'Hello!', got '" + ret + "'");


When I use "localhost" (127.0.0.1 does also work fine) in the the endpoint 
string everything is tremendously fast,
but when I use the IP adress of the machine 
"http://192.168.0.2:/axis/services/echo"; the response
time about 7-9 seconds! 


What could be the reason for this increase?

I am running Axis on Tomcat 5.5 in Fedora core 4 with firewall switched off. 
Maybe Axis is recognising that
the request/response does not need to be sent on the network, or maybe Linux 
does it.

Any clues or ideas are more than welcome.

Regards,
Magnus




Re: Notify with Axis?

2005-07-20 Thread Magnus Karlsson

Great! Apache is really nice! There's a project for everything.

Thanks guys!

Regards,
Magnus




Davanum Srinivas skrev:


http://ws.apache.org/pubscribe/

On 7/20/05, Magnus Karlsson <[EMAIL PROTECTED]> wrote:
 


Hi All,

Does Axis support "Notify", that is spontaneus notifications from the
web-service side to one or more clients? My case is that I would like to
avoid the clients to frequently poll the web-service in order to have
updated clients but send a notification to several clients when data has
changed on the server side.

Regards,
Magnus

   




 





Notify with Axis?

2005-07-20 Thread Magnus Karlsson

Hi All,

Does Axis support "Notify", that is spontaneus notifications from the 
web-service side to one or more clients? My case is that I would like to 
avoid the clients to frequently poll the web-service in order to have 
updated clients but send a notification to several clients when data has 
changed on the server side.


Regards,
Magnus


Re: Problem setting up Axis

2005-06-30 Thread Magnus Karlsson
I'm having exactly the same problem, but not under windows though, I'm 
using Fedore core 4 and the bundled Tomcat server with Axis 1.2.1.


Janet; on the "happypage" ain't all the env. variables printed? From 
what I recall even there the tools.jar actually is in the classpath! Is 
it the same for you?


Regards,
Magnus Karlsson

Miller, Janet skrev:


No, I have the jdk installed and my JAVA_HOME variable is set to 
"c:\jdk1.5.0_03;"

-Original Message-
From: Parley, Thunder Jon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 29, 2005 2:03 PM

To: axis-user@ws.apache.org; Miller, Janet
Subject: RE: Problem setting up Axis


Hi Janet,

Perhaps you only have the Java JRE installed (or at least is used to launch 
Tomcat) and not the Java JDK? I think this would explain why no compiler was 
found and hence the jws could not be compiled with 'javac'. Check your 
JAVA_HOME variable. Putting tools.jar in Tomcat/lib seems a bit 'dirty' to me.

--Thunder

-Original Message-
From: Miller, Janet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 29, 2005 10:56 AM

To: axis-user@ws.apache.org
Subject: RE: Problem setting up Axis

That didn't work, but putting tools.jar under Tomcat/lib and restarting Tomcat 
did work!!

Jan

-Original Message-
From: Gary Zhu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 29, 2005 12:05 PM

To: axis-user@ws.apache.org
Subject: RE: Problem setting up Axis


You can copy the tools.jar and put it under your Axis context. You need to 
restart Tomcat for it to work.

Gary 


-Original Message-
From: Miller, Janet [mailto:[EMAIL PROTECTED] 
Sent: June 29, 2005 11:21 AM

To: axis-user@ws.apache.org
Subject: RE: Problem setting up Axis

I've done all of this.  My Axis happy page displays correctly, but when I try 
to access a sample JWS web service that comes with Axis as follows:

http://localhost:8080/axis/EchoHeaders.jws?method=list 


I get the following error:

 soapenv:Server.userException
 java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar') 


How does Axis know where the Java compiler is?  I thought it used CLASSPATH and 
AXISCLASSPATH which I think I have set up properly since I got wsdl2Java to 
work.  Do I need to put tools.jar somewhere?

I tried adding tools.jar to the tomcat\common\lib directory, but that didn't 
work either.

I'm using Tomcat 5.5.9, Java 1.5.0.03, and Axis 1.2.1.

Does anyone know why I'm having this problem?

Jan

-Original Message-
From: Ferruh Zamangoer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 28, 2005 3:16 AM
To: axis-user@ws.apache.org
Subject: AW: Problem setting up Axis


The best way to set up axis is to copy axis-1_2/webapps/axis into your tomcat 
\Apache Group\Tomcat 4.1\webapps folders.




-Ursprüngliche Nachricht-
Von: Ferruh Zamangoer [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 28. Juni 2005 08:52

An: axis-user@ws.apache.org
Betreff: AW: Problem setting up Axis

Hi Janet,

if you have downloaded the axis-1_2.zip binaries you can extract this file. 
After you have extracted you have a folder structure like:

- axis-1_2
  - docs
  - lib
  - samples
  - webapps
  - xmls

Normally the wsdl4j.jar must be in lib directory, otherwise you can look at 
axis-1_2\webapps\axis\WEB-INF\lib. The wsdl4j.jar is used in AXIS to generate 
Java code from WSDL and to generate WSDL from Java.

Hope it helps.

Regards
Ferruh




-Ursprüngliche Nachricht-
Von: Miller, Janet [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 28. Juni 2005 01:05

An: axis-user@ws.apache.org
Betreff: RE: Problem setting up Axis

I am also missing a file called wsdl4j.jar which the Axis documentation says is 
supposed to be in my CLASSPATH and AXISCLASSPATH.  I've installed everything 
and don't have this file on my machine.  Where does this file come from?  Could 
someone check to see if this file exists on your machine?  It is supposed to be 
in the \webapps\axis\WEB-INF\lib directory.

I can't get Axis to work.  The happyAxis page is displaying properly though.

Thanks,

Jan