Skip navigation.
 
mlRe: Complex data for webservices
FROM : Niklas Saers
DATE : Thu Apr 24 10:40:23 2008

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

Related mailsAuthorDate
mlComplex data for webservices Niklas Saers Apr 20, 14:07
mlRe: Complex data for webservices Niklas Saers Apr 21, 13:45
mlRe: Complex data for webservices Niklas Saers Apr 21, 14:15
mlRe: Complex data for webservices Jeff LaMarche Apr 21, 15:30
mlRe: Complex data for webservices Niklas Saers Apr 23, 14:41
mlRe: Complex data for webservices Jeff LaMarche Apr 23, 16:25
mlRe: Complex data for webservices Niklas Saers Apr 24, 10:31
mlRe: Complex data for webservices Niklas Saers Apr 24, 10:40
mlRe: Complex data for webservices Niklas Saers Apr 25, 09:22