[kepler-users] Timeout in Kepler using a simple webservice

Manuel Möller manuel.moeller at dfki.de
Fri Oct 12 09:46:08 PDT 2007


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("http://localhost:8080/Adder", 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

-- 
Manuel Möller -- DFKI GmbH, Kaiserslautern
http://www.manuelm.org -- manuel.moeller at dfki.de
phone: +49 631 20575-132 -- fax: +49 631 20575-103
Workshop on Philosophy and Informatics: http://wspi2008.workshop.hm/

-------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany

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
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simpleAdderl.xml
Type: text/xml
Size: 9622 bytes
Desc: not available
Url : http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/kepler-users/attachments/20071012/f19424c2/simpleAdderl.xml


More information about the Kepler-users mailing list