bet365 / soap

Make it easy to use SOAP from Erlang
Apache License 2.0
200 stars 74 forks source link

Redefinition of macros and records #16

Open aherranz opened 7 years ago

aherranz commented 7 years ago

In order to compose several service requests I need to include some *.hrl files generated with soap:wsdl2erlang/1. The problem is that including them in the same module leads to compile errors because of the redefinition of the macro INTERFACE and the records faultdetail, faultcode, faultreasong, soap_fault_1_1, soap_fault_1_2 and qname.

I think it is not very difficult to avoid the problem:

The only limit, I think, is that qname record is defined in soap_wsdl_1_1.hrl and soap_wsdl_2_0.hrl and the client code should decide on which one to include.

What do you think?

PS. What a nice tool and library! Thanks!