Passing Parameters

R

RajeevSekar

Hi Experts,
I am trying to invoke a web service created in asp.net from asp, i did
that through this code
postUrl ="
http://localhost/RajeevProjects/F10...e/F10CRMLeadCreationWS.asmx/LeadCreation?XML="
Set xmlhttp = server.Createobject("MSXML2.XMLHTTP") xmlhttp.Open
"POST",postUrl,false xmlhttp.setRequestHeader
"Content-Type","application/x-www-form-urlencoded" xmlhttp.send
Response.Write(xmlhttp.responseText)

But when i try to pass some string to the web service(i modified the web
service to accept string as parameter) using
Dim x
x="xxx"
xmlhttp.send x

But it doesnt work it throws one Exception "Parameter Missing"
Can anyone please help me


Thanks & Regards
S.Rajeev.
 
N

Nitin Mittal

Hi Rajeev

Try adding following tag in your web.config under <system.web> section
<webServices>
<protocols>
<add name="HttpPost"/>
</protocols>
</webServices>

Regards
Nitin Mittal
 
N

Natraj

Hi, i am trying to access a Web Service from ASP. Can u plz tell me how can i do this
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top