// set debug props
WSMethodInvocationSetProperty(soapReq, kWSDebugIncomingBody, kCFBooleanTrue);
WSMethodInvocationSetProperty(soapReq, kWSDebugIncomingHeaders, kCFBooleanTrue);
WSMethodInvocationSetProperty(soapReq, kWSDebugOutgoingBody, kCFBooleanTrue);
WSMethodInvocationSetProperty(soapReq, kWSDebugOutgoingHeaders, kCFBooleanTrue);
Adding this to the genCreateInvocationRef method in your generated code from WSMakeStub did not require a lot of effort. I'd probably recommend it for each call.
e.g.
- (WSMethodInvocationRef) genCreateInvocationRef
{
WSMethodInvocationRef ref = [self createInvocationRef
/*endpoint*/: @"[URL]"
methodName: @"Generate"
protocol: (NSString*) kWSSOAP2001Protocol
style: (NSString*) kWSSOAPStyleDoc
soapAction: @"[method]"
methodNamespace: @"[namespace]"
];
WSMethodInvocationSetProperty(ref, kWSDebugIncomingBody, kCFBooleanTrue);
WSMethodInvocationSetProperty(ref, kWSDebugIncomingHeaders, kCFBooleanTrue);
WSMethodInvocationSetProperty(ref, kWSDebugOutgoingBody, kCFBooleanTrue);
WSMethodInvocationSetProperty(ref, kWSDebugOutgoingHeaders, kCFBooleanTrue);
return ref;
}