Hi All,
I try to make an asynchronous call to a web service method as below under MS
visual .NET studio 2003:
WebService webSrv = new WebService();
AsyncCallback cb = new AsyncCallback(TrsWebSvsCallback);
IAsyncResult ar = webSrv.BeginProcessCall( 1, cb, transWeb40);
while (ar.IsCompleted == false)
{
....
}
..
..
..
public static void TrsWebSvsCallback(IAsyncResult ar)
{
WebService webSrv = (WebService) ar.AsyncState;
string strResponse = webSrv.EndProcessCall( ar );
}
But in while statement, ar.IsCompleted is always false.
In the debug environment of Visual .NET Studio 2003, the callBack thread was
created. But it seems stoped at location:
System.Web.Services.UnsafeNativeMethods.OnSyncCall Return.
It never invoke the TrsWebSvsCallback method. And also ar.IsCompleted never
be set to 'true'.
Anybody have idea on this would be appreciated.
Thanks in advance,
Jim 4 2308
Sounds like your getting closer to the problem that is being reported in
several current threads on this subject.
Also, have you tried launching multiple callbacks ( in a loop ) ?
Question: does the call to the web service appear in your iis server logs?
jim wrote: Hi All,
I try to make an asynchronous call to a web service method as below under MS visual .NET studio 2003:
WebService webSrv = new WebService(); AsyncCallback cb = new AsyncCallback(TrsWebSvsCallback); IAsyncResult ar = webSrv.BeginProcessCall( 1, cb, transWeb40);
while (ar.IsCompleted == false) { ... }
. . .
public static void TrsWebSvsCallback(IAsyncResult ar) { WebService webSrv = (WebService) ar.AsyncState; string strResponse = webSrv.EndProcessCall( ar ); }
But in while statement, ar.IsCompleted is always false.
In the debug environment of Visual .NET Studio 2003, the callBack thread was created. But it seems stoped at location: System.Web.Services.UnsafeNativeMethods.OnSyncCall Return.
It never invoke the TrsWebSvsCallback method. And also ar.IsCompleted never be set to 'true'.
Anybody have idea on this would be appreciated.
Thanks in advance, Jim
--
Texeme Textcasting Technology http://www.texeme.com
Sounds like your getting closer to the problem that is being reported in
several current threads on this subject.
Also, have you tried launching multiple callbacks ( in a loop ) ?
Question: does the call to the web service appear in your iis server logs?
jim wrote: Hi All,
I try to make an asynchronous call to a web service method as below under MS visual .NET studio 2003:
WebService webSrv = new WebService(); AsyncCallback cb = new AsyncCallback(TrsWebSvsCallback); IAsyncResult ar = webSrv.BeginProcessCall( 1, cb, transWeb40);
while (ar.IsCompleted == false) { ... }
. . .
public static void TrsWebSvsCallback(IAsyncResult ar) { WebService webSrv = (WebService) ar.AsyncState; string strResponse = webSrv.EndProcessCall( ar ); }
But in while statement, ar.IsCompleted is always false.
In the debug environment of Visual .NET Studio 2003, the callBack thread was created. But it seems stoped at location: System.Web.Services.UnsafeNativeMethods.OnSyncCall Return.
It never invoke the TrsWebSvsCallback method. And also ar.IsCompleted never be set to 'true'.
Anybody have idea on this would be appreciated.
Thanks in advance, Jim
--
Texeme Textcasting Technology http://www.texeme.com
Yes, after calling BeginProcessCall( 1, cb, transWeb40), the ProcessCall web
method was called. When it finished and returned successfully, ar.IsCompleted
still was kept 'false' and Callback function never be called.
Thanks,
Jim
"John Bailo" wrote: Sounds like your getting closer to the problem that is being reported in several current threads on this subject.
Also, have you tried launching multiple callbacks ( in a loop ) ?
Question: does the call to the web service appear in your iis server logs?
jim wrote:
Hi All,
I try to make an asynchronous call to a web service method as below under MS visual .NET studio 2003:
WebService webSrv = new WebService(); AsyncCallback cb = new AsyncCallback(TrsWebSvsCallback); IAsyncResult ar = webSrv.BeginProcessCall( 1, cb, transWeb40);
while (ar.IsCompleted == false) { ... }
. . .
public static void TrsWebSvsCallback(IAsyncResult ar) { WebService webSrv = (WebService) ar.AsyncState; string strResponse = webSrv.EndProcessCall( ar ); }
But in while statement, ar.IsCompleted is always false.
In the debug environment of Visual .NET Studio 2003, the callBack thread was created. But it seems stoped at location: System.Web.Services.UnsafeNativeMethods.OnSyncCall Return.
It never invoke the TrsWebSvsCallback method. And also ar.IsCompleted never be set to 'true'.
Anybody have idea on this would be appreciated.
Thanks in advance, Jim
-- Texeme Textcasting Technology http://www.texeme.com
Yes, after calling BeginProcessCall( 1, cb, transWeb40), the ProcessCall web
method was called. When it finished and returned successfully, ar.IsCompleted
still was kept 'false' and Callback function never be called.
Thanks,
Jim
"John Bailo" wrote: Sounds like your getting closer to the problem that is being reported in several current threads on this subject.
Also, have you tried launching multiple callbacks ( in a loop ) ?
Question: does the call to the web service appear in your iis server logs?
jim wrote:
Hi All,
I try to make an asynchronous call to a web service method as below under MS visual .NET studio 2003:
WebService webSrv = new WebService(); AsyncCallback cb = new AsyncCallback(TrsWebSvsCallback); IAsyncResult ar = webSrv.BeginProcessCall( 1, cb, transWeb40);
while (ar.IsCompleted == false) { ... }
. . .
public static void TrsWebSvsCallback(IAsyncResult ar) { WebService webSrv = (WebService) ar.AsyncState; string strResponse = webSrv.EndProcessCall( ar ); }
But in while statement, ar.IsCompleted is always false.
In the debug environment of Visual .NET Studio 2003, the callBack thread was created. But it seems stoped at location: System.Web.Services.UnsafeNativeMethods.OnSyncCall Return.
It never invoke the TrsWebSvsCallback method. And also ar.IsCompleted never be set to 'true'.
Anybody have idea on this would be appreciated.
Thanks in advance, Jim
-- Texeme Textcasting Technology http://www.texeme.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Marty McDonald |
last post by:
I create and start several threads, each thread executes the same method -
within the method, a web service is invoked. I find that the more threads I
use, the longer it takes for all of the...
|
by: orekinbck |
last post by:
Hi There
This question is about calling an asynchronous web service from the UI
thread. Unless I am making a fundamental error, it appears that the
asynchronous web service call seems to spark...
|
by: Chris |
last post by:
Hello,
With asynchronous programming :
Why does the callback-function (running in a worker thread) may not update
the state of a control on the main-form ?
The docs say that you must use a...
|
by: Alexander Kaplunov |
last post by:
I have two different scenarios:
1. I have an application that calls a web service and passes an
object. Web Service takes that object and does some stuff with it, which
could take...
|
by: Bob Davies |
last post by:
Hi
I have a webservice that retrieves data from a database, this is then
returned to the calling client application built in windows forms within a
dataset, however upon attempting to create...
|
by: Dave |
last post by:
If I'm making several asynchronous web service calls using the services
Begin/End methods. How do you return the results of the webservice back to
the main thread or calling page?
Here's my...
|
by: kkao77 |
last post by:
Someone help me please.
I've tried to write an asynchronous method, but it didn't call my web
service, do I need to do something in my webservice project to make it
work?
or if there is...
|
by: Morten Wennevik |
last post by:
Hi,
We have a web page running in the context of a windows user (windows
authentication). This page calls several web services, all of which runs
in the context of this user. However, when...
|
by: jtbjurstrom |
last post by:
Bear with me because we are new to WCF and have been going through
documentation and samples trying to absorb as much as possible in a
short amount of time. Any suggestions would be much...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |