[IronPython] Java Web Service
wierob
wierob at gmx.de
Fri Jan 12 10:48:15 PST 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://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20070112/5d8a1141/attachment.htm
More information about the users
mailing list