webmethod call with parameter xml
-
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
-
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
Hi Anil, Hope this article will help http://msdn.microsoft.com/msdnmag/issues/02/09/XMLFiles/[^]
with regards Satips
-
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
-
Hi Anil, Hope this article will help http://msdn.microsoft.com/msdnmag/issues/02/09/XMLFiles/[^]
with regards Satips
-
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.
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