Page 1 of 1

C# and Webservice 2.0 - "ListSubscriberBinding" -> Error

Posted: Wed Apr 20, 2016 1:55 pm
by barbaClemens
I have just updated my VS 2012 solution using/referencing the OpenEMM webserive with the new "OpenEMM Webserive APIĀ 2.0. When I try to use the method "ListSubscriberBinding(customerID)" I get the following exception:

Code: Select all

Unable to generate a temporary class (result=1).
error CS0030: Cannot convert type 'CRMM.OpenEMM.OpenEMM.Binding' to 'CRMM.OpenEMM.OpenEMM.ListSubscriberBindingResponse'
error CS0029: Cannot implicitly convert type 'CRMM.OpenEMM.OpenEMM.ListSubscriberBindingResponse' to 'CRMM.OpenEMM.OpenEMM.Binding'
Have anyone made a working request to the method "ListSubscriberBinding(customerID)" by using C#?

Re: C# and Webservice 2.0 - "ListSubscriberBinding" -> Error

Posted: Tue Jul 19, 2016 10:35 am
by Ericc91
Hi barbaClemens,

I have the same problem, have you find a solution ?

Thanks
Eric

Re: C# and Webservice 2.0 - "ListSubscriberBinding" -> Error

Posted: Tue Jul 19, 2016 10:52 am
by barbaClemens
Hi Eric,

Unfortunately I did not find any solution to this problem. I ended up doing a repository of my own to be able to retrieve data directly from the OpenEMM-database.

//barbaClemens

Re: C# and Webservice 2.0 - "ListSubscriberBinding" -> Error

Posted: Tue Jul 19, 2016 11:10 am
by Ericc91
ok ! :-(

Anyway thank you for your reply

Eric

Re: C# and Webservice 2.0 - "ListSubscriberBinding" -> Error

Posted: Wed Oct 12, 2016 10:42 am
by maschoff
Sorry, I could not reproduce this bug. I used for testing the PHP demo client WS_use_example.php with line

Code: Select all

var_dump ( $client->ListSubscriberBinding( ["customerID" => "815"] ));
for customer 815 and it worked just fine and the response was correct.

Re: C# and Webservice 2.0 - "ListSubscriberBinding" -> Error

Posted: Wed Oct 12, 2016 11:06 am
by barbaClemens
maschoff wrote:Sorry, I could not reproduce this bug. I used for testing the PHP demo client WS_use_example.php with line

Code: Select all

var_dump ( $client->ListSubscriberBinding( ["customerID" => "815"] ));
for customer 815 and it worked just fine and the response was correct.
If I understand you correctly you have only tested this in PHP?

I have this problem in .NET and C#, I have not tried your webservice with PHP. Maybee there are some errors "created" in/by Visual Studio when I referencing the OpenEMM webservice and Visual Studio tries to generate classes for the referenced webservice?

I'm not sure exactly how this works in Visual Studio (or in PHP), I'm just thinking out loud :?

Re: C# and Webservice 2.0 - "ListSubscriberBinding" -> Error

Posted: Wed Oct 12, 2016 11:17 am
by maschoff
The developers have tested with Java, I just tested with PHP. Do you have a problem with webservices in general, or is only webservice ListSubscriberBinding affected?

Re: C# and Webservice 2.0 - "ListSubscriberBinding" -> Error

Posted: Wed Oct 12, 2016 11:29 am
by barbaClemens
For me it's only when I call "ListSubscriberBinding" that I recieve the error I have reported. I have not tested calling all methods in the webservice, but the other methods I'm using/calling seems to work just fine.

Re: C# and Webservice 2.0 - "ListSubscriberBinding" -> Error

Posted: Wed Oct 12, 2016 11:38 am
by maschoff
That is really strange, especially since the signature of the method is rather trivial. You could try with the PHP demo client (just the two files WSSESoapClient.php and WS_use_example.php) to make sure it is not a language-dependent problem. (You need packages php-pear and php-soap to get the client working.)