AdamNaj
25th January 2008, 15:18
The documentation pages state that the APi is available from C#, which I assume implicates that someone has succesfully called them from the language.
The wsdl however is not importing correctly in VisualStudio neither 2005 (does not even import most of the methods) or 2008 (All the methods return void and have 0 parameters).
The errors listed by Visual studio while importing the WSDL are as follows
// CODEGEN: The operation binding 'ListJobs' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'ListPackages' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'CreateServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'DestroyServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'ListRunningJobs' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'ListServers' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'Login' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'RebootServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'StartServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'StopServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'WaitForJobs' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
Which is pretty obvious once you look at the insides of the WSDL that the types are not defined and thus a strong typing language will not allow for accessing those with nice calls like the samples for php and Perl show.
I've managed to modify the generated code to succesfully call Login with my credentials but not having much luck with calls returning complex structures like "ListServers()".
Could you please provide a sample for calling e.g. ListServer() from a C# code? Is there any SDK for .Net or at least the web service calls encapsulated in a way that are fairly easy for consumption?
The wsdl however is not importing correctly in VisualStudio neither 2005 (does not even import most of the methods) or 2008 (All the methods return void and have 0 parameters).
The errors listed by Visual studio while importing the WSDL are as follows
// CODEGEN: The operation binding 'ListJobs' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'ListPackages' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'CreateServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'DestroyServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'ListRunningJobs' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'ListServers' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'Login' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'RebootServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'StartServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'StopServer' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
// CODEGEN: The operation binding 'WaitForJobs' from namespace 'urn:FlexiScale' was ignored. Each message part in an use=encoded message must specify a type.
Which is pretty obvious once you look at the insides of the WSDL that the types are not defined and thus a strong typing language will not allow for accessing those with nice calls like the samples for php and Perl show.
I've managed to modify the generated code to succesfully call Login with my credentials but not having much luck with calls returning complex structures like "ListServers()".
Could you please provide a sample for calling e.g. ListServer() from a C# code? Is there any SDK for .Net or at least the web service calls encapsulated in a way that are fairly easy for consumption?