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. ASP.NET
  4. invoke webservice with xmlhttprequest

invoke webservice with xmlhttprequest

Scheduled Pinned Locked Moved ASP.NET
xmlquestioncsharpdelphiasp-net
3 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.
  • I Offline
    I Offline
    impeesa_01
    wrote on last edited by
    #1

    hi all, i have code that i believe built in delphi as follows : xml_string: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> soap:Body <upload_item xmlns="http://tempuri.org/"> <batch>int</batch> <customer_id>string</customer_id> <customer>string</customer> <city>string</city> <location>string</location> <lot_no>string</lot_no> <net>double</net> <co_no>string</co_no> <ln>string</ln> <item_no>string</item_no> <del_date>string</del_date> <do_no>string</do_no> </upload_item> </soap:Body> </soap:Envelope> XMLHTTPRequest1.open('POST','http://localhost/tmsws/service.asmx?op=upload\_item',false); XMLHTTPRequest1.setRequestHeader('Content-Type','text/xml; charset=utf-8'); XMLHTTPRequest1.Send(xml_string); XMLResult := XMLHTTPRequest1.responseText; how can i do it in asp.net? thanks and regards, edi

    gain new knowledge through knowledge-sharing

    C 1 Reply Last reply
    0
    • I impeesa_01

      hi all, i have code that i believe built in delphi as follows : xml_string: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> soap:Body <upload_item xmlns="http://tempuri.org/"> <batch>int</batch> <customer_id>string</customer_id> <customer>string</customer> <city>string</city> <location>string</location> <lot_no>string</lot_no> <net>double</net> <co_no>string</co_no> <ln>string</ln> <item_no>string</item_no> <del_date>string</del_date> <do_no>string</do_no> </upload_item> </soap:Body> </soap:Envelope> XMLHTTPRequest1.open('POST','http://localhost/tmsws/service.asmx?op=upload\_item',false); XMLHTTPRequest1.setRequestHeader('Content-Type','text/xml; charset=utf-8'); XMLHTTPRequest1.Send(xml_string); XMLResult := XMLHTTPRequest1.responseText; how can i do it in asp.net? thanks and regards, edi

      gain new knowledge through knowledge-sharing

      C Offline
      C Offline
      Cybernate
      wrote on last edited by
      #2

      You can use WebRequest class to do the same at server end. Or create a proxy for the web service using the wsdl tool provided by .Net to achieve Stong type safety

      Regards, Cybernate

      I 1 Reply Last reply
      0
      • C Cybernate

        You can use WebRequest class to do the same at server end. Or create a proxy for the web service using the wsdl tool provided by .Net to achieve Stong type safety

        Regards, Cybernate

        I Offline
        I Offline
        impeesa_01
        wrote on last edited by
        #3

        hi Cybernate, thanks for your reply. but i really new in this field and just a little of web programming. could you give me link where i have to go, meanwhile i am trying to googling. shall i create a webservice to consume it webservice since the target webservice provided by another party, or just create web page to consume the webservice? thanks and regards, edi

        gain new knowledge through knowledge-sharing

        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