KanikaVarma / sudzc

Automatically exported from code.google.com/p/sudzc
0 stars 0 forks source link

Setting session token in header #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create service request
2. Alter header of service request (add session token)
3. Request service

What is the expected output? What do you see instead?
I expect the session token to be stored in the header of the SOAP message. 
Instead it is set to nil and the service won't respond

What version of the product are you using? On what operating system?
Current version of sudzc (as of Jul 5th, 2011); Mac OS X 10.6.8

Please provide any additional information below.
I experience the error when using generated code for the Betfair API. For 
additional information (including API reference guide) see: 
http://bdp.betfair.com/

Here is a code-snippet of the relevant function:

- (void)getInPlayMarkets {

    BFExchangeService *service = [BFExchangeService service];
    service.logging = verbose;

    GetInPlayMarketsReq *inPlayMarketsReq = [[GetInPlayMarketsReq alloc] init];
    inPlayMarketsReq.header.sessionToken = self.sessionId; //session ID is stored in instance variable

/*
after the operation above, header.sessionToken is not set to self.sessionId, 
but still nil
*/

    [service getInPlayMarkets:self action:@selector(getInPlayMarketsHandler:) request:inPlayMarketsReq];
}

Hope anyone can help.

Many thanks,
Alex

Original issue reported on code.google.com by alex_v...@web.de on 5 Jul 2011 at 5:10