F#: Providing type annotation for overloaded constructor

52 Views Asked by At

I'm getting a FS0041 error for an overloaded constructor, and I can't find my way around it.

Here are two screenshot of my attempts:

enter image description here

and:

enter image description here

How can I execute the desired constructor?

1

There are 1 best solutions below

0
Brian Berns On

Without seeing the actual WSDL, it looks to me that the service is not correctly designed. I think it should be something like this:

GetTUIProductServiceSoap(): TUIProductServiceSoapClient
GetTUIOrderServiceSoap(): TUIOrderServiceSoapClient
GetTUIUserActivateServiceSoap(): TUIUserActivateServiceSoapClient

That would eliminate the ambiguity.

Related Questions in F#