11-02-2005 03:50 PM
11-03-2005 09:33 AM
11-03-2005 09:39 AM
11-03-2005 11:56 AM
using
System;using
Microsoft.Web.Services2;using
Microsoft.Web.Services2.Addressing;using
Microsoft.Web.Services2.Messaging;namespace
Example{
public class SOAPSenderWithEvents : SoapSender{
public event AsyncCallback SendCompleteEvent; public SOAPSenderWithEvents() : base(){
}
public SOAPSenderWithEvents(EndpointReference destination) : base(destination){
}
public SOAPSenderWithEvents(Uri arg) : base(arg){
}
public IAsyncResult BeginSendWithEvent(SoapEnvelope envelope, object state){
AsyncCallback delegateInstance =
new AsyncCallback(MyAsyncCallback); return BeginSend(envelope, delegateInstance, state);}
private void MyAsyncCallback(IAsyncResult ar){
if (SendCompleteEvent != null)SendCompleteEvent(ar);
}
}
}
11-07-2005 11:30 AM
When I execute it in LabView I get the following error at the call to the constructor for SOAPSenderWithEvents passing it a Uri as an arg:
Error 1172 occurred at File or assembly name asyncResult, or one of its dependencies, was not found
I’ve seen this with other sample C# web service examples I’ve tried to create and run through LabView. They seem to compile and link in fine, but fail to run.
11-07-2005 04:31 PM