How to parse an WSDL file?

Hi all,

I would like to use the wsdl api from stdlib, but I didn't understand.
So, I will try to parse my wsdl file with REXML.

Is there a small example of the use of this API ?

Thanks

Stephane

Hi Stephane,

soap4r can use REXML as the XML parser. I think you can use it's WSDL
parsing code as a good example.

http://raa.ruby-lang.org/project/soap4r

Lei Ming

Stephane Wirtel wrote:

ยทยทยท

Hi all,

I would like to use the wsdl api from stdlib, but I didn't understand.
So, I will try to parse my wsdl file with REXML.

Is there a small example of the use of this API ?

Thanks

Stephane

Lei Ming wrote:

Hi Stephane,

soap4r can use REXML as the XML parser. I think you can use it's WSDL
parsing code as a good example.

http://raa.ruby-lang.org/project/soap4r

Thanks, because I would like to generate a C++ code from this WSDL with
Ruby. Because there is some information from this file to indicate if a
data is mandatory or not.

Hi,

Stephane Wirtel wrote:

soap4r can use REXML as the XML parser. I think you can use it's WSDL
parsing code as a good example.

http://raa.ruby-lang.org/project/soap4r

Thanks, because I would like to generate a C++ code from this WSDL with
Ruby. Because there is some information from this file to indicate if a
data is mandatory or not.

lib/wsdl/classDefCreator.rb (and friends) generates Ruby code from WSDL
with Ruby. It may help you. Please find the latest snapshot release
from http://dev.ctor.org/soap4r instead of stdlib.

Regards,
// NaHi