Forum OpenACS Development: Re: Tcl Web Services Toolkit: TWiST

Collapse
Posted by Claudio Pasolini on
Just another qwick question.
I installed the wsdlpull client, but I'm getting this error, no matter what service I'm calling:
Error processing http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl
An Exception occurred at 0:0
Wsdl Parser Exception : http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl could not be opened
Apparently the compilation went good: could you kindly post the command you are using to invoke your stockQuoter service?
Collapse
Posted by Tom Jackson on
Claudio, I cannot speak for these other services, but you can grab my example WSDL file (one for openacs):

http://junom.com/ws/openacs/?WSDL

From my experience the wsdlpull client more correctly constructs SOAP messages. It doesn't know how to verify restrictions based upon patterns (regexp), but it does verify enumerations.

On the command to invoke stockQuoter, I guess you mean what SOAP message to send? In the stockquoter/www directory, there should be a post.tcl file, which probably needs to be edited so it sends to the correct address. Otherwise what you are asking for is a client, and wsdlpull looks like the easiest to use.

Otherwise, move the stockquoter procs to another file under pageroot and use the <ws>* API.

Collapse
Posted by vivek krishna on
Hi,
If you installed from the rpm then this could be a problem
Apparently there is an issue with the rpms.Try compiling from source or better still checking out from CVS.I was able to invoke the webservice without any problems

wsdl http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl getRate usa India
44.08

Hope this helps

If you still face a problem post it on the wsdlpull mailing list