Internal server error 500 when I am trying to get all `groupid` from `ektron` in .net (c#) -
my code:
httpwebrequest httpwreq = (httpwebrequest)system.net.webrequest.create(domainurl + "/workarea/webservices/webserviceapi/user/user.asmx/getallusergroups");
asciiencoding encoding = new asciiencoding(); string postdata = "orderby=id"; byte[] data = encoding.getbytes(postdata); httpwreq.method = "post"; httpwreq.contenttype = "application/x-www-form-urlencoded"; httpwreq.contentlength = data.length; using (stream stream = httpwreq.getrequeststream()) { stream.write(data, 0, data.length); } httpwebresponse response = (httpwebresponse)httpwreq.getresponse(); string responsestring = new streamreader(response.getresponsestream()).readtoend(); getxmlvalue1(responsestring);
tested above piece of code @ end (ektron v9),and it's working fine.
the issue may ektron site referring.
check whether ektron website make post request accessible or not.
Comments
Post a Comment