• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WSMakeStubs code issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Fwd: Re: Displaying my view in a Window
  • Next by Date: Re: Parse errors when declaring local variables.
  • Previous by thread: Re: RTFD File Encoding
  • Next by thread: RE: WSMakeStubs code issues
  • Index(es):
    • Date
    • Thread