Click here to Skip to main content
15,895,423 members
Home / Discussions / C#
   

C#

 
AnswerMessage Closed Pin
13-Jun-12 8:51
WebMaster13-Jun-12 8:51 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
JD8613-Jun-12 12:42
JD8613-Jun-12 12:42 
AnswerRe: PHP web service requires array but how to send correct array with C#? Pin
BobJanova14-Jun-12 2:08
BobJanova14-Jun-12 2:08 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
JD8614-Jun-12 2:57
JD8614-Jun-12 2:57 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
BobJanova14-Jun-12 3:51
BobJanova14-Jun-12 3:51 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
JD8614-Jun-12 3:56
JD8614-Jun-12 3:56 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
BobJanova14-Jun-12 5:54
BobJanova14-Jun-12 5:54 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
JD8614-Jun-12 5:57
JD8614-Jun-12 5:57 
I don't have a working PHP client.

The API is here: http://www.mailcleaner.net/downloads/MailCleanerAPI.pdf[^]

They gave an example of this to call with PHP:
PHP
$client = new SoapClient(‘https://mailcleaner_base_url/api/soap/?wsdl‘);
$params = array(
‘spam_tag’ => ‘{This is a spam}’,
‘summary_frequency’ => ‘weekly,
…
);
$result = $client->domainEdit(‘domain_name’, $params);
if ($result[‘code’] == 200) {
echo ‘domain edited’ ;
}


So you can see that PHP is doing a multidimensional array.. but there isn't a way to create this array with C# and convert it to object[].

I haven't done it before but maybe calling the soap manually instead of using the web reference?
QuestionException has been thrown by the target of an invocation. Pin
MichCl13-Jun-12 6:01
MichCl13-Jun-12 6:01 
AnswerRe: Exception has been thrown by the target of an invocation. Pin
Pete O'Hanlon13-Jun-12 6:10
mvePete O'Hanlon13-Jun-12 6:10 
GeneralRe: Exception has been thrown by the target of an invocation. Pin
MichCl13-Jun-12 7:12
MichCl13-Jun-12 7:12 
Questioncheck if record already exists in database table Pin
Saidrex13-Jun-12 4:44
Saidrex13-Jun-12 4:44 
AnswerRe: check if record already exists in database table Pin
Eddy Vluggen13-Jun-12 4:53
professionalEddy Vluggen13-Jun-12 4:53 
GeneralRe: check if record already exists in database table Pin
Saidrex13-Jun-12 5:16
Saidrex13-Jun-12 5:16 
AnswerRe: check if record already exists in database table Pin
Pete O'Hanlon13-Jun-12 4:55
mvePete O'Hanlon13-Jun-12 4:55 
GeneralRe: check if record already exists in database table Pin
Saidrex13-Jun-12 5:17
Saidrex13-Jun-12 5:17 
Questionif BindingSource.Filter doesn't have results do... Pin
Saidrex13-Jun-12 3:29
Saidrex13-Jun-12 3:29 
AnswerRe: if BindingSource.Filter doesn't have results do... Pin
Eddy Vluggen13-Jun-12 4:52
professionalEddy Vluggen13-Jun-12 4:52 
GeneralRe: if BindingSource.Filter doesn't have results do... Pin
Saidrex13-Jun-12 5:01
Saidrex13-Jun-12 5:01 
GeneralRe: if BindingSource.Filter doesn't have results do... Pin
Eddy Vluggen13-Jun-12 5:04
professionalEddy Vluggen13-Jun-12 5:04 
GeneralRe: if BindingSource.Filter doesn't have results do... Pin
Saidrex13-Jun-12 5:30
Saidrex13-Jun-12 5:30 
GeneralRe: if BindingSource.Filter doesn't have results do... Pin
Eddy Vluggen13-Jun-12 5:38
professionalEddy Vluggen13-Jun-12 5:38 
GeneralRe: if BindingSource.Filter doesn't have results do... Pin
Saidrex13-Jun-12 7:07
Saidrex13-Jun-12 7:07 
QuestionC# Setup and Deployment Pin
Zeyad Jalil13-Jun-12 1:54
professionalZeyad Jalil13-Jun-12 1:54 
AnswerRe: C# Setup and Deployment Pin
Cracked-Down13-Jun-12 19:11
Cracked-Down13-Jun-12 19:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.