Alexandre Giuseppe
Alexandre Giuseppe

Reputation: 63

F#: Providing type annotation for overloaded constructor

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?

Upvotes: 1

Views: 52

Answers (1)

Brian Berns
Brian Berns

Reputation: 17038

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.

Upvotes: 1

Related Questions