Hello,

I was wondering if someone could please give me some advice.   I am trying to get the DynamicInvoker to call the samples and continually get exception messages saying:

org.apache.wsif.WSIFException: Cannot get Object part 'return'. No parts are set on the message

I have attached a full copy of the console output showing the classpath I used and the full error messages.

I am behind a firewall with an authenticating proxy server, but i have managed to get the the dynamic invoker to successfully retrieve the WSDL file located at xmethods.  I did this by adding the following lines to the Dynamic Invoker class:

System.getProperties().put("http.proxyHost", myProxyHost);
System.getProperties().put("http.proxyPort", myProxyPort);
java.net.PasswordAuthentication pa = new java.net.PasswordAuthentication(myUserName, myPasswd);
Definition def = WSIFUtils.readWSDLThroughAuthProxy(wsdlLocation, pa);

I am using the latest copy of the nightly builds because WSIF vers 2.0 doesn't support the readWSDLThroughAuthProxy method.

I would be extremely grateful if anyone can provide help/advice.

Kindest Regards,


Lachlan
 

Lachlan Aldred
Research Programmer
Centre for Information Technology Innovation
Queensland University of Technology
Web: http://sky.fit.qut.edu.au/~aldredl/

java -classpath D:\wsif\build;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\charsets.jar;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\jce.jar;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\jsse.jar;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\plugin.jar;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\rt.jar;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\sunrsasign.jar;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\ext\dnsns.jar;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\ext\ldapsec.jar;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\ext\localedata.jar;C:\Program 
Files\j2sdk_nb\j2sdk1.4.2\jre\lib\ext\sunjce_provider.jar;C:\Sun\AppServer\lib\j2ee.jar;D:\wsif\lib\ant-1_5_1.jar;D:\wsif\lib\apache_soap-2_3_1.jar;D:\wsif\lib\axis-1.1RC2.jar;D:\wsif\lib\axis-1_1RC2-ant.jar;D:\wsif\lib\commons-discovery.jar;D:\wsif\lib\commons-logging.jar;D:\wsif\lib\jaxrpc.jar;D:\wsif\lib\junit-3_8_1.jar;D:\wsif\lib\log4j-1_2_4.jar;D:\wsif\lib\optional-1_5_1.jar;D:\wsif\lib\qname-from-wsdl4j-20030807.jar;D:\wsif\lib\saaj.jar;D:\wsif\lib\servlet-2_2.jar;D:\wsif\lib\soaprmi-1_1.jar;D:\wsif\lib\wsdl4j-20030807.jar;D:\wsif\lib\xercesImpl-2_2_1.jar;D:\wsif\lib\xmlParserAPIs-2_2_1.jar;D:\wsif\build\lib\wsif-j2c.jar;D:\wsif\build\lib\wsif.jar;C:\Program
 Files\j2sdk_nb\j2sdk1.4.2\lib\tools.jar clients.DynamicInvoker 
http://www.xmethods.net/sd/2001/TemperatureService.wsdl getTemp 10570

Reading WSDL document from 'http://www.xmethods.net/sd/2001/TemperatureService.wsdl'
Preparing WSIF dynamic invocation
Executing operation getTemp
org.apache.wsif.WSIFException: Cannot get Object part 'return'. No parts are set on 
the message
        at 
org.apache.wsif.base.WSIFDefaultMessage.handleNoPartsException(WSIFDefaultMessage.java:633)
        at 
org.apache.wsif.base.WSIFDefaultMessage.getObjectPart(WSIFDefaultMessage.java:195)
        at clients.DynamicInvoker.invokeMethod(DynamicInvoker.java:351)
        at clients.DynamicInvoker.main(DynamicInvoker.java:149)
Exception in thread "main" Process terminated with exit code 1

Reply via email to