Dear Micheal,

  had a similar issue on a Java SOAP class from APACHE & Jython .. hope this hint helps.

Jython dynamically create an instance of the Java class, you don't get access to the abstract class.
Replace the abstract class name by the instance name and it should work.  

in place of :  
mSfSoap = (ISourceForgeSoap)
ClientSoapStubFactory.getSoapStub(ISourceForgeSoap.class, serverUrl);
write:
mSfSoap = ISourceForgeSoap()
ClientSoapStubFactory.getSoapStub(mSfSoap.class, serverUrl)

A similar example of a Java Jython SOAP code i“ve pulished under the monthly newsletter:  
http://wiki.python.org/jython/JythonMonthly/Articles/November2006/2
myString = javaString(symbol)
params.addElement(Parameter("symbol", myString.class, symbol, None))

Regards,
Claude

Claude Falbriard
Developer
AMS Hortolāndia / SP - Brazil
phone: +55 13 8117 3316
e-mail:  claudef@br.ibm.com



"Michael March" <mmarch@gmail.com>
Sent by: jython-users-bounces@lists.sourceforge.net

11/22/2006 12:03 PM

To
jython-users@lists.sourceforge.net
cc
Subject
[Jython-users] Need help porting Java to Jython..





I usually horse around in CPython but my job is making me use some use
some Java libraries thus my first attempt at Jython.

I am trying to use the an API to access the Enterprise version of
SourceForge. VA Software ships a JAR file that wraps their SOAP API.
Here is an example code fragment (in Java) that does performs a login
and then receives a session key:


import com.vasoftware.sf.soap43.webservices.ClientSoapStubFactory;
import com.vasoftware.sf.soap43.webservices.sfmain.ISourceForgeSoap;
import com.vasoftware.sf.soap43.webservices.sfmain.ProjectSoapList;
import com.vasoftware.sf.soap43.webservices.sfmain.ProjectSoapRow;

import java.rmi.RemoteException;
import java.io.IOException;

/**
* The SoapRunner class demonstrates how the SOAP APIs can be used
* to list, create or edit projects, trackers, artifacts, task groups,
* tasks etc.
*/
public class SoapRunner {
/** SourceForge Soap interface handle */
private ISourceForgeSoap mSfSoap;

/** Login user name */
private String mLoginUserName;

/** Session id */
private String mSessionId;

/** Soap server url */
private String mServerUrl;

/**
* Class consturctor.
*/
public SoapRunner(String serverUrl) {
mServerUrl = serverUrl;
mSfSoap = (ISourceForgeSoap)
ClientSoapStubFactory.getSoapStub(ISourceForgeSoap.class, serverUrl);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}

That last line is giving me grief.. My Java skills are weak.. and I
can't figure out how that would map to Jython syntax.

thanks

(BTW... the full source his here:  http://tinyurl.com/yaouat )
--
<admiral>

Michael F. March ----- mmarch@gmail.com
Ph: (415)462-1910 ---- Fax: (602)296-0400
P.O. Box 2254 ---- Phoenix, AZ 85002-2254
         "Seriously" - HSR

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users


Claude Falbriard
Developer
AMS Hortolāndia / SP - Brazil
phone: +55 13 8117 3316
e-mail:  claudef@br.ibm.com