Last post Jul 22, 2019 11:57 AM by sachintek
Jul 19, 2019 07:26 AM|sachintek|LINK
I am sending a post request to secure soap service from C# .net application, i am getting return status ok, but server is not receiving my request. but when i am sending request from SOAPUI, then server is receiving request. please solve this issue.
Jul 22, 2019 01:27 AM|Nan Yu|LINK
Hi sachintek .
How do you confirm that server side is not receiving the request ?Could you please show related request details ?
Jul 22, 2019 08:09 AM|XIII|LINK
when i am sending request from SOAPUI, then server is receiving request
How do you confirm in this case that the server's receiving the request properly? If you have that base what's different with the C# application when determining that it doesn't get the request? You get back a status OK so the server seems to be responding?
When you debug the service (in both cases) can you see what the difference is? If so alter your code as to get the correct request being sent.
Jul 22, 2019 11:57 AM|sachintek|LINK
Solved after made these changes
usernamePassword = Convert.ToBase64String(Encoding.Default.GetBytes(usernamePassword));
request.Headers["Authorization"]= "Basic " + usernamePassword;