Re: Using Webservices with Tcl



Sacha Schär wrote:
Gerald W. Lester wrote:
Sacha Schär wrote:

Hi all,

I'm trying to use the Open Patent Services (OPS) of the European patent office from within Tcl (see http://ops.espacenet.com).

I'm too lazy to learn a lot about the SOAP standard and web services in general, since I'm not able to spend too much time on this project, and at the moment, I do not have any other application for web services.

I was very confident when read abou Geral Lesters package, however, I does not seem to work due to the non comforming (?) WSDL file:

% package require WS::Client
1.0.4
% ::WS::Client::GetAndParseWsdl \ http://ops.espacenet.com/OpenPatentServices/webService/getPatentData?wsdl

Attribute "soapAction" not found!

I also tried the same thing on some other WSDL files I found on the net, but I was never actually able to successfully parse one of those (all kind of errors).

I'll take a look at what is going on and see what I can do.

A quick look leads me to believe that it is a WSDL version 2.0 wsdl, currently my service only handles 1.1.

Also, could you be so kind as to send the other WSDLs you were having trouble with -- I have it parsing over 98% of the ones that I could find.

Since I'm interested in the OPS mainly, can someone present present a simple example of how to use them with Tcl? Or, alternativly, can someone point out some documentation that will help me finding it out myself, without going to mutch into details?

Let me see what is going on, I may be able to send you something you can use.


Thank you for that quick response Lester!

Here are two other WSDL files that I unsuccessfully tried to parse:

http://www.roguewave.com/soapworx/examples/WeatherSummary.wsdl

Ah, with this URL I get a File not found (Error 404) error.

http://www.capeclear.com/Stock.wsdl

And here I get a "Page not found"

You may find it helpful to paste the URL into a web browser and see if you get a WDSL or an error page before assuming the software does not work.

(Actually, I'm not aware of any working example WSDL file at all)

In your documentation, I only found examples with a local server. I do not want to set up a server, can you name a public server I can use to start playing around, please?

The google search service works nicely.

You may want to work through the web services write up at http://www.tclscripting.com/articles/nov06/article1.html


--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.



Relevant Pages

  • Unable to Import WebService - From Axis server - please help!
    ... I'm a newbie to web services, all of my experiance has been with the simple ... WSDL files - I have no problems browsing to the service in VS.NET when ... adding a new web reference, but when I go to actually create the reference ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Generating webservices from WSDL files
    ... I want to generate web services from this WSDL files which I can use with BizTalk. ... I already checked the Web Service Publishing Wizard but there I can only publish the orchestration ports and the related schemas, but this is not enough for me because I want to control more things by myself... ...
    (microsoft.public.biztalk.general)
  • Need to write web service
    ... I have used web services before WSDL files and such but never written one. ... or are all web services asp web apps? ... One of our business partners who is going to have to use it insists I have to write it in .net 1.1 and not 2.0. ...
    (microsoft.public.dotnet.languages.vb)