I have an ASMX service, which has the below method. I want to debug this method, so I have put a breakpoint on it. But I am not able to send a request to it successfully, It gives a 404 error.
[WebMethod]
public void RequestNotification()
{
I have tried these options so far.
Page screenshots for reference.
This is how I am calling from the C# code, and this is also not hitting the breakpoint on the method RequestNotification
of service. and it’s not giving any exceptions also in the C# code.
MyService myService= new MyService ();
myService.RequestNotification();
Update: I have tried as described in the below answer, I am still getting 404.
Please find below the request screenshot.
2
Answers
@Bench Vue's answer has helped me in solving the issue. I am able to solve the issue with the below request.
Request and Response:
Using POST call from Postman with XML Body
Demo code.
I will show this Calculator SOAP service for
Add
operation.POST URL
In body with
XML
ray selectionI got response this from service
If you click
code
button from Postman, you can get thecurl
command too.