FSharp.Data.WsdlProvider icon indicating copy to clipboard operation
FSharp.Data.WsdlProvider copied to clipboard

Generated methods only have a single argument

Open peterhirn opened this issue 3 years ago • 2 comments

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.

peterhirn avatar Nov 08 '22 11:11 peterhirn

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 avatar Nov 08 '22 18:11 thinkbeforecoding

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.

thinkbeforecoding avatar Nov 08 '22 18:11 thinkbeforecoding