<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Luis,<br>
<br>
I have debugged a nightly build (current version) from Kepler in
Eclipse.<br>
<br>
The problem occurs in the class:<br>
<br>
<font face="Courier New, Courier, monospace"><small>org.sdm.spa.WebService
(CVS Base revision 1.53)</small><br>
<br>
</font>At line: 847<br>
<br>
<small><font face="Courier New, Courier, monospace">Object
invokeResult = _call.invoke(_objArr);</font></small><br>
<br>
I added the following annotation to the <small><font
 face="Courier New, Courier, monospace">adder.java</font></small>
class:<br>
<pre wrap="">@SOAPBinding(style = SOAPBinding.Style.RPC, <font
 face="Courier New, Courier, monospace">use=SOAPBin</font>ding.Use.ENCODED)</pre>
Now Kepler gets the answer but I have to set the timeout really high
(600000), if not I get:<br>
<pre wrap=""><font face="Courier New, Courier, monospace">java.net.SocketTimeoutException: Read timed out</font></pre>
Our webservice is answering almost instantly so I do not understand
what is happening there!?<br>
<br>
Any other hints to get us back on track?<br>
<br>
Many thanks in advance and regards,<br>
<br>
Christopher Tuot<br>
<br>
<br>
<br>
Luis Assunção wrote:
<blockquote
 cite="mid:!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAgHAXBgtbj02iqwK7H3HpqcKAAAAQAAAAEBBW5Vi5EkCGA%2FZDd630UgEAAAAA@isel.ipl.pt"
 type="cite">
  <pre wrap="">Hi

Kepler only works with Web Services using RPC ENCODED binding.
Have you tried to explicit the Use attribute in Annotation like
@SOAPBinding(style = SOAPBinding.Style.RPC, use=SOAPBinding.Use.ENCODED)
 
Luis Assuncao

-----Original Message-----
From: <a class="moz-txt-link-abbreviated"
 href="mailto:kepler-users-bounces@ecoinformatics.org">kepler-users-bounces@ecoinformatics.org</a>
[<a class="moz-txt-link-freetext"
 href="mailto:kepler-users-bounces@ecoinformatics.org">mailto:kepler-users-bounces@ecoinformatics.org</a>] On Behalf Of Manuel Möller
Sent: sexta-feira, 12 de Outubro de 2007 17:46
To: <a class="moz-txt-link-abbreviated"
 href="mailto:kepler-users@ecoinformatics.org">kepler-users@ecoinformatics.org</a>
Cc: Michael Sintek; Christopher Tuot
Subject: [kepler-users] Timeout in Kepler using a simple webservice

Hi @all,

I am new to Kepler and this list, so please be patient ;-)

My problem is this: Just to get used to Kepler I want to call a simple 
web service (code below) to add two integers.

Currently, I only want to have the result returned to Kepler. And here I 
get stuck. I see that my web service is called, that parameters are 
passed correctly and that the web service does the calculation. But 
Kepler never seems to receive the result, instead it always waits until 
the specified timeout for the web service actor is reached.

I am using JAX-WS to publish the web service. The problem occurs with 
Kepler 1.0 beta3 as well as the nightly build.

The code for the Adder: adder.java

------------------------
package de.dfki.km.medico.ws;

import javax.jws.*;
import javax.jws.soap.SOAPBinding;

@WebService(name="Adder")
@SOAPBinding(style = SOAPBinding.Style.RPC)

public class Adder {
        @WebMethod
        public int add(int a, int b) {
                System.out.println(a+b);
                return a+b;
        }
}
------------------------

The code to publish the web service:

------------------------
package de.dfki.km.medico.ws;

import javax.swing.JOptionPane;
import javax.xml.ws.Endpoint;

public class PublishWsOnServer {
        public static void main(String[] args) {
                
                Endpoint adderEndpoint =         
Endpoint.publish(<a class="moz-txt-link-rfc2396E"
 href="http://localhost:8080/Adder">"http://localhost:8080/Adder"</a>, new Adder() );
                
                
                JOptionPane.showMessageDialog(null, "Terminate Server");
                adderEndpoint.stop();
        }
}
------------------------

I have attached the Kepler model.

I guess that there is a very simple mistake, but I just can't see it. 
Any hints?

Kind regards,
   Manuel Möller

  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
______________________________________________________________
Dipl.-Ing. Christopher Tuot
DFKI GmbH (German Research Center for Artificial Intelligence)
Knowledge Management Department
POBox 2080, 67608 Kaiserslautern, Germany 
fon:   +49(0)631 / 20575 - 127
fax:   +49(0)631 / 20575 - 103
mail:  <a class="moz-txt-link-abbreviated"
 href="mailto:christopher.tuot@dfki.de">christopher.tuot@dfki.de</a>
web:   <a class="moz-txt-link-freetext" href="http://www.dfki.de">http://www.dfki.de</a>
______________________________________________________________
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern

Geschaeftsfuehrung:
Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff

Vorsitzender des Aufsichtsrats:
Prof. Dr. h.c. Hans A. Aukes

Amtsgericht Kaiserslautern, HRB 2313
______________________________________________________________</pre>
</body>
</html>