C# Console App: Connect to a JSON Service with WS-Security (In Apache) RRS feed

  • Question

  • Hi,

    I am trying to connect to a JSON service from a console application. The JSON service looks like it runs on Apache and has WS-Security enabled. I am not able to consume this service with authentication. I had created a soapenv XML and passed it to the UploadString of the WebClient object. It simply redirects me to the login page (the response I get is an HTML output of the login page).

    I am not sure, what's the best way to consume a JSON service from c# console application. Can someone please throw some lights or with some examples that will be great.


    Regards, Jagan

    Monday, April 30, 2012 8:30 AM

All replies

  • Hi,

    Do you mean the webservice that returns JSON object? If you provide bit code part we will able to help you.

    If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".

    Monday, April 30, 2012 12:39 PM
  • Hi Jagan,

    Please follow this thread.

    Have a nice day.

    Call me ghost for short, Thanks
    To get the better answer, it should be a better question.

    Wednesday, May 2, 2012 11:21 AM