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. webmethod call with parameter xml

webmethod call with parameter xml

Scheduled Pinned Locked Moved ASP.NET
csharphelpsysadminxmltutorial
5 Posts 3 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.
  • A Offline
    A Offline
    A M SOMAN
    wrote on last edited by
    #1

    Can anybody please tell me how to send an xml file to a remote webmethod as an input? we dont have any access to the webmethod code and dont know the implimentation part. We just need to send our input file in xml format or the xml text itself to the webmethod and the webmethod is going to return an output xml string to us. I need to do this using aspx page and c#.net language. I tried sending the xml text with httpRequest and Response, but I got forbidden error from the server. my problem is just how to send a text in the form of parameter to any webmethod? thanks in advance, regards, anil

    S M 2 Replies Last reply
    0
    • A A M SOMAN

      Can anybody please tell me how to send an xml file to a remote webmethod as an input? we dont have any access to the webmethod code and dont know the implimentation part. We just need to send our input file in xml format or the xml text itself to the webmethod and the webmethod is going to return an output xml string to us. I need to do this using aspx page and c#.net language. I tried sending the xml text with httpRequest and Response, but I got forbidden error from the server. my problem is just how to send a text in the form of parameter to any webmethod? thanks in advance, regards, anil

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      Hi Anil, Hope this article will help http://msdn.microsoft.com/msdnmag/issues/02/09/XMLFiles/[^]

      with regards Satips

      A 1 Reply Last reply
      0
      • A A M SOMAN

        Can anybody please tell me how to send an xml file to a remote webmethod as an input? we dont have any access to the webmethod code and dont know the implimentation part. We just need to send our input file in xml format or the xml text itself to the webmethod and the webmethod is going to return an output xml string to us. I need to do this using aspx page and c#.net language. I tried sending the xml text with httpRequest and Response, but I got forbidden error from the server. my problem is just how to send a text in the form of parameter to any webmethod? thanks in advance, regards, anil

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        Because the server response says something about forbidden , so IMO you first need to make sure that the web service is accessible to your client side code, then have a look at the contract of the service to make a call properly.

        A 1 Reply Last reply
        0
        • S Sathesh Sakthivel

          Hi Anil, Hope this article will help http://msdn.microsoft.com/msdnmag/issues/02/09/XMLFiles/[^]

          with regards Satips

          A Offline
          A Offline
          A M SOMAN
          wrote on last edited by
          #4

          thanks for the link...will go through it.

          1 Reply Last reply
          0
          • M minhpc_bk

            Because the server response says something about forbidden , so IMO you first need to make sure that the web service is accessible to your client side code, then have a look at the contract of the service to make a call properly.

            A Offline
            A Offline
            A M SOMAN
            wrote on last edited by
            #5

            thanks for the suggesion. i finally found out that there was one tag which was not being accepted by the webservice. there was no syntactical problem with the tag. but after removing that tag, the request went successfully! this is strange. but i am trying to find the real casue. any way.. thanks for your help. -- modified at 2:45 Monday 28th August, 2006

            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