C# and SOAP (as client)- how to typecast from PHP array?
-
hi there :) alot of people told me, including some assitants on our faculty, that if i want to use methods on diferent programming languages is, to use SOAP standard, which also is the best option i would like to use. so let me give you few information on what i want to use first: i have an XML file with alot of data- let's say it is the data of URL links to diferent informational sites (linux distros, diferent tools for linux etc). now, the server part would be written in PHP using the SOAP standard to send data. the thing is, i don't know how to send data if we assume that the clients could be written in C#, Java or any other possible language. i googled it a bit and i found only simple SOAP examlpes, where server sends int or string type, array is nowhere to find :S i mean, i know the client part would call a method defined in WDSL, but- what if PHP would merge all URL links into PHP's Array() like this: var $ArrayOfLinks = array( 0 => 'http://domainA.com/', 1 => 'http://domainB.com/', 2 => 'http://domainC.com/', ); how could i then typecast from this type of array into C# readable type (ArrayList or similar)? please help me out with this.. it's killing me.
-
hi there :) alot of people told me, including some assitants on our faculty, that if i want to use methods on diferent programming languages is, to use SOAP standard, which also is the best option i would like to use. so let me give you few information on what i want to use first: i have an XML file with alot of data- let's say it is the data of URL links to diferent informational sites (linux distros, diferent tools for linux etc). now, the server part would be written in PHP using the SOAP standard to send data. the thing is, i don't know how to send data if we assume that the clients could be written in C#, Java or any other possible language. i googled it a bit and i found only simple SOAP examlpes, where server sends int or string type, array is nowhere to find :S i mean, i know the client part would call a method defined in WDSL, but- what if PHP would merge all URL links into PHP's Array() like this: var $ArrayOfLinks = array( 0 => 'http://domainA.com/', 1 => 'http://domainB.com/', 2 => 'http://domainC.com/', ); how could i then typecast from this type of array into C# readable type (ArrayList or similar)? please help me out with this.. it's killing me.
If I'm correct you can send an array of strings using soap to your C# client,the C# client should interpret this as an array of strings. You can then convert it to an arraylist by using the AddRange method of the ArrayList. WM.
What about weapons of mass-construction?