Skip to Content
0
Former Member
Jan 08, 2008 at 02:56 PM

Calling XI web service from .net application (asynchron)

16 Views

Hi all,

i want to call a XI web service from .net C# (asynchron).

rows.ORDER = "XX";

rows.SERIES_NUMBER = "XXXX";

rows.DEVICE = "XXXX";

rows.BIN = "XXXX";

root.ROOT = new WebService.DT_BINRows[1];

root.ROOT.SetValue(rows, 0);

NetworkCredential credentials = new NetworkCredential(user, pass);

proxy.Credentials = credentials;

IAsyncResult ar = proxy.BeginMI_BIN_OUT(root, new AsyncCallback(CallbackSampleMethod), root);

proxy.MI_OUTAsync(root);

private void CallbackSampleMethod(IAsyncResult asyncResult)

{

((WebService.MI_BIN_OUTService)asyncResult.AsyncState).EndMI_BIN_OUT(asyncResult);

}

What's wrong?

regards