I am new to JSON and I am not able to find a way to call JSON service (remote) from my c# consle app. When I try to use the HTTPWebRequest, it returns the HTML content of the login page. Hence, I believe it is not accepting the authentication header I pass
using the code.
Can someone throw some lights on how to access this service with WS-Security authentication enabled.
When I try to use the HTTPWebRequest, it returns the HTML content of the login page. Hence, I believe it is not accepting the authentication header I pass using the code.
It seems that the authentication header contains user credential was not properly or the user do not have the permission to access this JSON service. Could you post the code calling JSON service and JSON service and the request soap message?
Jagannathan
0 Points
1 Post
Call JSON from C# Console app with WS-Security
Apr 28, 2012 11:21 PM|LINK
Hi,
I am new to JSON and I am not able to find a way to call JSON service (remote) from my c# consle app. When I try to use the HTTPWebRequest, it returns the HTML content of the login page. Hence, I believe it is not accepting the authentication header I pass using the code.
Can someone throw some lights on how to access this service with WS-Security authentication enabled.
Regards,
Jagan
Peter pi - M...
Star
12871 Points
1786 Posts
Re: Call JSON from C# Console app with WS-Security
May 02, 2012 03:05 AM|LINK
It seems that the authentication header contains user credential was not properly or the user do not have the permission to access this JSON service. Could you post the code calling JSON service and JSON service and the request soap message?
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework