WSMakeStubs code issues
WSMakeStubs code issues
- Subject: WSMakeStubs code issues
- From: Dave Kvach <email@hidden>
- Date: Tue, 11 Feb 2003 11:44:49 -0500
We're developing a client app in Cocoa using generated code from
WSMakeStubs. We have, for the most part, been successful communicating
with some web services we developed.
But, there is on occasion a situation when this code:
while (fResult == NULL)
CFRunLoopRunInMode(wsGeneratedMode, -1.0, true);
from method getResultDictionary in WSGeneratedObj.m will loop
infinitely and result in a hung app.
So, I tried adding the following code to the createInvocationRef (per
the documentation), trying to set a timeout value for the invocation:
NSNumber *timeout = [NSNumber numberWithInt:10];
WSMethodInvocationSetProperty(ref,
kWSMethodInvocationTimeoutValue, timeout);
[timeout release];
This code compiles fine, the constant kWSMethodInvocationTimeoutValue
is defined in WSMethodInvocation.h along with all the other kWS...
constants, but I get a link error that kWSMethodInvocationTimeoutValue
is an undefined symbol.
What's up wit dat???
Would using synchronous WS calls perform better than asynchronous?
Does WSMakeStubs have any flags to tell it generate certain code,
besides language??
Thanks for any input,
Dave
_______________________________________________
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.