Hi WS-Core (one of Apple Core Services) works but is far from bein
nearly as comfortable as say java. ALL Parameters a NSDictionaries.
Each being a WSDL complexType with members being the attributes.
WSMakeStubs makes stubs for the WSDL methods but passing it the
correct param (Some NSDictionary is up to you)
//set correct type information
[dict setObject:@"" forKey:(NSString*)kWSRecordNamespaceURI];
[dict setObject:@"m:TUser" forKey:(NSString*)kWSRecordType];
//pay attention to order.. we never had to but with the new software
we do
[dict setObject:[NSArray arrayWithObjects:
@"clientLogInfo",
@"clientName",
@"clientVersion",
@"errorCode",
@"errorMessage",
@"localeID",
@"opID",
@"sessionID",
@"wipeVersion",
@"EMailAddress",
@"acceptNewsletter",
@"acceptPromotion",
@"addresses", //array of some sort
@"customerCardID",
@"firstname",
@"lastname",
@"loyaltyID",
@"name",
@"orderTrackingInfo",
@"password",
@"paybackID",
@"sex",
nil] forKey:(NSString*)kWSRecordParameterOrder];
return dict;
}
! addSpecialValue == my methods so nil can be added and the xml
reads: <name xsi:nil="true"/> but heavily modifing the generated xml
is hopefully not needed.
normally you setObect:x forKey@"name" just as you normally would.
Pass that to WSCore and get a Dictionary back.
==> Hope you find a better solution than WSCore which is not fully
developed IMHO but you can make it work (although later youll need
nasty workarounds)
Regards,
Dominik
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com