Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# and SOAP (as client)- how to typecast from PHP array?

C# and SOAP (as client)- how to typecast from PHP array?

Scheduled Pinned Locked Moved C#
xmlcsharpjavaphpwcf
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lordgreg
    wrote on last edited by
    #1

    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.

    W 1 Reply Last reply
    0
    • L lordgreg

      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.

      W Offline
      W Offline
      WillemM
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups