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

Luis Assunção lass at isel.ipl.pt
Mon Oct 15 06:58:58 PDT 2007


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: kepler-users-bounces at ecoinformatics.org
[mailto:kepler-users-bounces at ecoinformatics.org] On Behalf Of Manuel Möller
Sent: sexta-feira, 12 de Outubro de 2007 17:46
To: kepler-users at ecoinformatics.org
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("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
-------------------------------------------------------------




More information about the Kepler-users mailing list