Re: WSMakeStubs code issues
Re: WSMakeStubs code issues
- Subject: Re: WSMakeStubs code issues
- From: Dave Kvach <email@hidden>
- Date: Wed, 12 Feb 2003 09:27:50 -0500
Thanks for the tips Josh.
I tried using @"kWSMethodInvocationTimeoutValue" instead of the
constant and just got bad access errors. I also tried changing the
seconds param in CFRunLoopRunInMode like:
while (fResult == NULL)
CFRunLoopRunInMode(wsGeneratedMode, 10.0, true);
hoping it would time out and return... didn't work.
Then I tried just making a synchronous call and it deadlocked in the
WSMethodInvocationInvoke call.
I'm wondering if there isn't something wrong on our server side. We
are actually calling a web service repeatedly inside of a for loop when
it gets hung randomly in the middle of the loop, maybe the server can't
handle it. I guess I'll have to experiment some more.
Thanks again,
Dave
On Tuesday, February 11, 2003, at 12:09 PM, Josh Ferguson wrote:
I've also noticed a couple issues with the CFRunLoopRunInMode() (I
don't get a hung app, I just occasionally don't get any results).
Typically, the reason you'd be getting a link error is because you're
not linking the framework into the app. The other issue may be that
you're linking against an old version of the framework? It doesn't
seem likely that this would be the problem (you'd probably be getting
other undefined symbols). One work around would be to try just using
@"kWSMethodInvocationTimeoutValue" instead of the constant (I don't
know if this will work, but I know a lot of instances where the
constant is the same as the actual value). BTW: The constant is
actually only declared in the header file, not actually defined.
As far as switching to synchronous, this is alright except that
execution of your application will pause while it's waiting to receive
the results, so if you have a progress bar or something, it will
appear frozen (unless you use threads). This may not be an issue to
you, and in that case doing a synchronous call is probably easier.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.