on 01-08-2008 2:56 PM
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
Hi,
i have found my error.
At the interface name was one letter missing.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
thanks.
The web service call should be asynchron!!!
We have another example which is used by an external company and there it is running successfully.
But i don't know how they have made it.
Any ideas?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wolfgang,
This is XI forum. Not all the people here are expets in Java or .NET or even ABAP. ITs a mixed ground. IF you could let us know the error you are getting, we might be able to help you.
Are you asking about any complie error or runtime error or any access related??
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also,
Look like, since you are using a call back function, it might be the case that the Web Service is actuallyy synchrnous in nature but you are trying to call it asynchronously, and then use this call back function for processing the response.. Just a thought..
In that case, SXMB_MONI would show it as Sync only..
VJ
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.