Quantcast
Channel: Question and Answer » web-services
Viewing all articles
Browse latest Browse all 136

WF gets canceled status while WS call

$
0
0

I’ m trying to call HTTP WS from WF. Unfortunately, it gets canceled every time and I can’t understand a reason. In a browser service works fine. Would you mind telling me what’s wrong?

WS source code:

    [WebMethod]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
public void GetData(string id)

{
    var l = new Login {Name = "MI"};
    var sr = new JavaScriptSerializer();

    Context.Response.ContentType = "application/json";
    Context.Response.Write(sr.Serialize(l));       
}

WF:

enter image description here


Viewing all articles
Browse latest Browse all 136

Trending Articles