Click here to Skip to main content
Sign Up to vote bad
good
Hi! I must use a PHP WebService by C# but I can't send multidimensional array parameter to PHP WebService. How can I send a multidimensional array to PHP WebService.
 
string[,] _multidimensionelArray = new string[5, 5];
richTextBox1.Text = _imp.importSelling(_token, _selling, _multidimensionelArray);
Turned error message is: Error 2 Argument '3': cannot convert from 'string[*,*]' to 'WindowsFormsApplication2.exportSelling.SepetList' D:\Belgelerim\Desktop\WindowsFormsApplication2\WindowsFormsApplication2\Form1.cs
Posted 11-May-12 22:48pm
Edited 11-May-12 22:53pm


1 solution

Error 2 Argument '3': cannot convert from 'string[*,*]' to 'WindowsFormsApplication2.exportSelling.SepetList
Error says it all. Your 3rd parameter in webservice is of type SepetList defined by you. But, in the code lines above, you are trying to pass a string[*,*] as a parameter. Hence the error.
 
Either, convert your data into 'WindowsFormsApplication2.exportSelling.SepetList' and then pass it.
OR
Change the implementation in the webservice. Replace the argument with type string[*,*]
OR
Overload webservice with a new method to allow your call.
  Permalink  
Comments
Yasin KARATAŞ - 12-May-12 5:04am
I can't change the webservice because it is programmed by another human.
Sandeep Mewara - 12-May-12 5:29am
I already told why the error and how it can be handled. Pick the one that you can do.
Yasin KARATAŞ - 12-May-12 5:52am
Thank you very much.
Sandeep Mewara - 12-May-12 5:56am
Your welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Prasad_Kulkarni 407
1 Sergey Alexandrovich Kryukov 340
2 _Amy 338
3 Christian Graus 273
4 Rohan Leuva 250
0 Sergey Alexandrovich Kryukov 6,649
1 Prasad_Kulkarni 3,281
2 _Amy 3,065
3 OriginalGriff 2,989
4 CPallini 2,696


Advertise | Privacy | Mobile
Web04 | 2.6.130617.1 | Last Updated 12 May 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid