[IronPython] Java Web Service
wierob
wierob at gmx.de
Fri Jan 12 19:48:15 CET 2007
Hi
I have a Java web service implemented as an EJB (J2EE 1.4), which
exposes the following method.
/**
* Web service operation
*/
public String sayHello(final String arg) throws java.rmi.RemoteException {
return "Hello " + arg + "!!!";
}
It works fine with a Java client, but I can't call the method from IronPython.
import clr
clr.AddReference("DynamicWebServiceHelpers.dll")
from DynamicWebServiceHelpers import WebService
ws = WebService.Load(...)
ws.sayHello("Du")
The call to sayHello throws an exception
TypeError: expected sayHello, got str
So what's the mistake?
regards
robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070112/5d8a1141/attachment.html>
More information about the Ironpython-users
mailing list