From: Brian Candler Date: 2010-03-17T04:33:28+09:00 Subject: Re: WSDL Interface to EPO (European Patent Office) Axel Fuchs wrote: > Hi, > I am trying to do patent searches accessing the webservice at the > European patent office > (www.ops.epo.org/patents/patent-information/free/open-patent-services.html). $ curl -v http://www.ops.epo.org/patents/patent-information/free/open-patent-services.html * getaddrinfo(3) failed for www.ops.epo.org:80 * Couldn't resolve host 'www.ops.epo.org' * Closing connection #0 curl: (6) Couldn't resolve host 'www.ops.epo.org' $ dig www.ops.epo.org. a ... ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, So it looks like that link is bad (authoritative non-existent domain answer) > Here is the code I wrote: I suggest you follow the steps on the other thread: - ensure you're using the gem soap4r, not the bundled one require 'rubygems' gem 'soap4r' require 'soap/wsdlDriver' - build interface classes using wsdl2ruby.rb - get a wiredump > Questions: How do I access the elements in result? - run it in irb and use inspection to look at the available methods > What do I do about this error message: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:371:in > `pull': The 'xml' prefix must not be bound to any other namespace > (http://www.w3.org/TR/REC-xml-names/#ns-decl) (REXML::ParseException) This suggests they're sending back invalid XML or that the WSDL has invalid XML, but we'd need to see a wiredump exchange and/or the WSDL. -- Posted via http://www.ruby-forum.com/.