Code generation from WSDL


#1

I am pretty new to rust and I am wondering if there are any good crates that will generate rust code from WSDL and XSD documents? I did a search on crates.io and I didn’t see anything that looked applicable.

Luke


#2

Last time I looked there where no implementations of SOAP for Rust. An option is to use a C library and generate a ffi for it so that your able to call it from rust.

Maybe you can use grpc as there seams to be a grpc-rust. But that will only work when your able to define the interface your self.


#3

I don’t have an option to use GRPC. I am trying to interface with third party software that provides a WSDL + soap http interface.


#4

Ok so you need a SOAP client. There is soap-rs but that’s not production ready. Still think your best bet is to use something like gSoap and generate a C implementation for the client.

AreWebYet says no on SOAP :frowning:


#5

Thank you for the pointer to gSoap. I will check it out.