[IronPython] Java Web Service
Keith J. Farmer
kfarmer at thuban.org
Fri Jan 12 21:11:20 CET 2007
It might be useful to post a wsdl which reproduces this.
________________________________
From: users-bounces at lists.ironpython.com on behalf of wierob
Sent: Fri 1/12/2007 10:48 AM
To: users at lists.ironpython.com
Subject: [IronPython] Java Web Service
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 --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3742 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070112/fdbf1346/attachment.bin>
More information about the Ironpython-users
mailing list