Re: Complex data for webservices
Re: Complex data for webservices
- Subject: Re: Complex data for webservices
- From: Niklas Saers <email@hidden>
- Date: Thu, 24 Apr 2008 10:40:23 +0200
Sorry for sending the previous mail immaturely. I hit option-shift-D
which I expected to give me the dictionary to look up my spelling, but
which of course delivered my mail. ;-) The previous mail was complete,
except for one suspicion:
On Apr 24, 2008, at 10:31 AM, Niklas Saers wrote:
One issue I've become more suspiscious
One issue I've become more suspicious about is the part where I have
to delete half of what WSMakeStub makes. Doing
WSMakeStubs -x ObjC -name DummyStubs -url http://78.157.102.46:2234/DummyWS/Service1.asmx?WSDL
Gives me double up of everything, or so I think. Am I mistaken here?
$ grep interface DummyStubs.h
@interface testInt : WSGeneratedObj
@interface getValidAuth : WSGeneratedObj
@interface getListOfInvalidAuths : WSGeneratedObj
@interface testAuth : WSGeneratedObj
@interface testString : WSGeneratedObj
@interface testInt : WSGeneratedObj
@interface getValidAuth : WSGeneratedObj
@interface getListOfInvalidAuths : WSGeneratedObj
@interface testAuth : WSGeneratedObj
@interface testString : WSGeneratedObj
@interface myService : NSObject
$ grep implementation DummyStubs.m
@implementation testInt
@implementation getValidAuth
@implementation getListOfInvalidAuths
@implementation testAuth
@implementation testString
@implementation testInt
@implementation getValidAuth
@implementation getListOfInvalidAuths
@implementation testAuth
@implementation testString
@implementation myService
This looks like double up implementations for everything except
myService. Is this a bug in WSMakeStubs, or is this a bug in my
understanding? :-) (I'm really expecting the last one)
For testInt, I've pasted the two implementations below. As you can
see, they look identical.
@implementation testInt
- (void) setParameters:(CFTypeRef /* Complex type http://webservice.mydomain.com/
|testInt */) in_parameters
{
id _paramValues[] = {
in_parameters,
};
NSString* _paramNames[] = {
@"parameters",
};
[super setParameters:1 values: _paramValues names: _paramNames];
}
- (id) resultValue
{
return [[super getResultDictionary] objectForKey: @"parameters"];
}
- (WSMethodInvocationRef) genCreateInvocationRef
{
return [self createInvocationRef
/*endpoint*/: @"http://78.157.102.46:2234/DummyWS/Service1.asmx
"
methodName: @"testInt"
protocol: (NSString*) kWSSOAP2001Protocol
// missing encoding style - defaulting to RPC
style: (NSString*) kWSSOAPStyleRPC
soapAction: @"http://webservice.mydomain.com/testInt"
methodNamespace: NULL /* No Method Namespace specified */
];
}
@end; /* testInt */
and
@implementation testInt
- (void) setParameters:(CFTypeRef /* Complex type http://webservice.mydomain.com/
|testInt */) in_parameters
{
id _paramValues[] = {
in_parameters,
};
NSString* _paramNames[] = {
@"parameters",
};
[super setParameters:1 values: _paramValues names: _paramNames];
}
- (id) resultValue
{
return [[super getResultDictionary] objectForKey: @"parameters"];
}
- (WSMethodInvocationRef) genCreateInvocationRef
{
return [self createInvocationRef
/*endpoint*/: @"http://78.157.102.46:2234/DummyWS/Service1.asmx
"
methodName: @"testInt"
protocol: (NSString*) kWSSOAP2001Protocol
// missing encoding style - defaulting to RPC
style: (NSString*) kWSSOAPStyleRPC
soapAction: @"http://webservice.mydomain.com/testInt"
methodNamespace: NULL /* No Method Namespace specified */
];
}
@end; /* testInt */
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