M
magister pips
there is no example in the webservice description of how to access a
WebService Method with Http-Get with a URL in ASP.NET 2.0
I have tried:
http://localhost/WebService/MyService.asmx/UpdateUser?cId=9130&bID=808101
http://localhost/WebService/MyService.asmx/UpdateCandidate/cId=9130&bID=808101
http://localhost/WebService/MyService.asmx/UpdateCandidate/?cId=9130&bID=808101
http://localhost/WebService/MyService.asmx?op=UpdateCandidate&cId=9130&bID=808101
Always just get:
"Request format is unrecognized for URL unexpectedly ending in " &
The Webservice is simple:
[WebMethod]
public string MyService(int candidateId, string bondID)
{
customer MyCandidate = CustomerMapper.Instance.Get(cId);
......
return "done";
}
In the application web.config I have the following:
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
<add name="HttpSoap"/>
<add name="Documentation"/>
</protocols>
</webServices>
How do I do this...
WebService Method with Http-Get with a URL in ASP.NET 2.0
I have tried:
http://localhost/WebService/MyService.asmx/UpdateUser?cId=9130&bID=808101
http://localhost/WebService/MyService.asmx/UpdateCandidate/cId=9130&bID=808101
http://localhost/WebService/MyService.asmx/UpdateCandidate/?cId=9130&bID=808101
http://localhost/WebService/MyService.asmx?op=UpdateCandidate&cId=9130&bID=808101
Always just get:
"Request format is unrecognized for URL unexpectedly ending in " &
The Webservice is simple:
[WebMethod]
public string MyService(int candidateId, string bondID)
{
customer MyCandidate = CustomerMapper.Instance.Get(cId);
......
return "done";
}
In the application web.config I have the following:
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
<add name="HttpSoap"/>
<add name="Documentation"/>
</protocols>
</webServices>
How do I do this...