• 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
Complex data for webservices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Complex data for webservices


  • Subject: Complex data for webservices
  • From: Niklas Saers <email@hidden>
  • Date: Sun, 20 Apr 2008 14:07:26 +0200

Hi guys,
I'm making a Cocoa based application that will communicate with a webservice that I've already written other applications for and works great. The server part is written in C# and uses SOAP as WS communication protocol. Now, I've made the stubs by


WSMakeStubs -x ObjC -name testStub  -url http://mydomain.com/myService.asmx?WSDL

but most of my functions either accept or return arrays of complex data types. That is, arrays of objects. I expected WSMakeStubs to create stubs for these objects, but I apparently not with the line above. How does Cocoa handle compex types? For instance, I have my Authentication object that's defined:

Class Authentication:
   String username
   String password
   int userlevel

The only definition I get I find in testStubs.h/m: - (void) setParameters:(CFTypeRef /* Complex type webservices.mydomain.com/ mySpace|TestAuthentication */) in_parameters;

So I know I have to create some kind of CFTypeRef, but how do I make a CFTypeRef object to match the Authentication class definition above? And how do I make a CFTypeRef to match an array of Authentication objects?

Cheers

	Nik
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Complex data for webservices
      • From: Niklas Saers <email@hidden>
  • Prev by Date: Re: Implementing a Slightly Unusual NSTableView
  • Next by Date: how to get what tells fileURL has been changed by others
  • Previous by thread: Re: A cursor bug in DragItemAround example
  • Next by thread: Re: Complex data for webservices
  • Index(es):
    • Date
    • Thread