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. Web Development
  3. xmlHttp + web services + help needed

xmlHttp + web services + help needed

Scheduled Pinned Locked Moved Web Development
helpcsharpasp-netwcfdata-structures
4 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.
  • N Offline
    N Offline
    Naveed Kamboh
    wrote on last edited by
    #1

    Hi Friends I am creating a web service to use bot in asp and asp.net. its working in both but problem is it returns long string or text value while i want to return values in the form array my servcice is like this publi string[] getinfo(int companyid){ string[] myInfo=new string[2]; myInfo[0]="My Company"; myInfo[0]="Address1"; myInfo[0]="Address2"; return myInfo; } i am using in asp Response.Writ(xmlhttp.responseText) this statement is giving me resut My Company Address1 Address2 I want to store these values in different variables to for the future use, any one can help me please. how can i put those values in variables.

    Naveed Kamboh

    T 1 Reply Last reply
    0
    • N Naveed Kamboh

      Hi Friends I am creating a web service to use bot in asp and asp.net. its working in both but problem is it returns long string or text value while i want to return values in the form array my servcice is like this publi string[] getinfo(int companyid){ string[] myInfo=new string[2]; myInfo[0]="My Company"; myInfo[0]="Address1"; myInfo[0]="Address2"; return myInfo; } i am using in asp Response.Writ(xmlhttp.responseText) this statement is giving me resut My Company Address1 Address2 I want to store these values in different variables to for the future use, any one can help me please. how can i put those values in variables.

      Naveed Kamboh

      T Offline
      T Offline
      Tushar Kothari
      wrote on last edited by
      #2

      Hi Can you please use XML for output so that you can parse the XML in the asp or asp.net pages and store you output in variables Regards

      Tushar kothari

      N 1 Reply Last reply
      0
      • T Tushar Kothari

        Hi Can you please use XML for output so that you can parse the XML in the asp or asp.net pages and store you output in variables Regards

        Tushar kothari

        N Offline
        N Offline
        Naveed Kamboh
        wrote on last edited by
        #3

        thanks how can i do that? any article or coded pls thanks in advance

        Naveed Kamboh

        T 1 Reply Last reply
        0
        • N Naveed Kamboh

          thanks how can i do that? any article or coded pls thanks in advance

          Naveed Kamboh

          T Offline
          T Offline
          Tushar Kothari
          wrote on last edited by
          #4

          Hi You can return XML node from the Web Method and then on other end you have to store that XML node and after parsing you will get the values. Following is the sample code for that public function A() as XMLNode dim XND as new XMLNode .....your code.... .....Store the output in the XML Node return XND On ASPX page dim XNDC as XMLNode XNDc = .A() Then you can parse the xml node for you outout Regards

          Tushar kothari

          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