fsprojects / FSharp.Data.WsdlProvider

An implementation of the WsdlProvider compatible with netfx and netcore
Other
24 stars 4 forks source link

Generated methods only have a single argument #15

Open peterhirn opened 1 year ago

peterhirn commented 1 year ago

WSDL: https://ws.paketomat.at/serviceSharp.php?wsdl

This used to work with the legacy FSharp.Data.TypeProviders. Now all generated methods have a maximum of one argument.

eg. getLabel3 should have 26 arguments, provider thinks it has only one int.

I don't control the WSDL, might be invalid/broken.

thinkbeforecoding commented 1 year ago

Hi Peter, Interpreting wsdl is not really easy, and I had to rewrite everything from scratch for this dotnet core version. The old provider was using the C# stub gerenator. I may have missed something in the process...

thinkbeforecoding commented 1 year ago

Hi Peter, Interpreting wsdl is not really easy, and I had to rewrite everything from scratch for this dotnet core version. The old provider was using the C# stub gerenator. I may have missed something in the process...

There is a PR with the myriad generator, it splits the wsdl interpretation from actual code/type rendering. You can clone it and add a test with your wsdl to see where it misses something. I can then help you to solve this.