Hi,
I have a web service that returns void but internally writes data to
context as shown below:
------------------------------------------------------------------------------------------------------------------------------------------------------
[WebMethod( Description = "Gets the configuration" )]
public void GetChanges( string guid )
{
try
{
string configData = "<test></test>";
byte[] utf8 = Encoding.UTF8.GetBytes( configData );
Context.Response.ContentType = "text/xml";
Context.Response.BinaryWrite( utf8 );
Context.Response.Flush();
}
catch( Exception ex )
{
}
}
------------------------------------------------------------------------------------------------------------------------------------------------------
Now when I utilize this method in my C# code, I get following error:
Response is not well-formed XML.
------------------------------------------------------------------------------------------------------------------------------------------------------
localhost.WebServiceTest asrv = new
TestMSWebService.localhost.WebServiceTest();
asrv.GetChanges("DF61B16D-61AB-4644-91BB-0F0441D6AB43");
------------------------------------------------------------------------------------------------------------------------------------------------------
How do I get the response from the webservice?
Please let me know.
Thanks in advance,
PSI