I ran into a problem when importing a .NET WCF service with multiple contracts through Flex Builder 3’s Import Web Service (WSDL) Wizard.
.NET 3.5 Framework, Visual Studio 2008, Flex Builder 3, Windows XP SP2
To make it simple, my scenario is:
I defined 2 interfaces (really are contracts) “IFoo1” and “IFoo2”. My WCF service “FooService” implemented IFoo1 and IFoo2. I am hosting the “FooService” in a console app. From the .NET side, everything works. The service was running at http://localhost:8086/FooService.
There were 2 bindings which is correct. If I choose Foo1HttpBinding, only proxies for IFoo1 were generated; if I select Foo2HttpBinding, then only proxies for IFoo2 were generated. OK, then I tried to put each set of proxies into its own package, still not work.
Now I am concerned, is there anything wrong with my operation? Or Flex does not support WCF Service with multiple contracts, which means I need to put every operation inside one interface(contract)?