WSMethodInvocationInvoke Exc_bac_access
WSMethodInvocationInvoke Exc_bac_access
- Subject: WSMethodInvocationInvoke Exc_bac_access
- From: 王 胜海 <email@hidden>
- Date: Fri, 26 Sep 2008 06:27:15 +0800
hi,all:
when I use WSMethodInvocationInvoke to call a service, a
Exc_bac_access occurs, anyone can help me.
here is the code:
NSURL *url = [NSURL URLWithString:[command endpointURI]];
NSString *method = [command method];
NSString *namespace = [command namespace];
// setup HTTP request headers
NSMutableDictionary *dict = [NSMutableDictionary
dictionaryWithDictionary:[command requestHeaders]];
[dict setObject:[command SOAPAction] forKey:@"SOAPAction"];
NSMutableDictionary *reqHeaders = [NSMutableDictionary
dictionaryWithDictionary:dict];
[reqHeaders removeObjectForKey:@" "];
NSString *headerXMLString = [command headerXMLString];
NSArray *soapHeaders;
if ([headerXMLString length]) {
soapHeaders = [NSArray arrayWithObject:headerXMLString];
} else {
soapHeaders = nil;
}
// get binding style
CFStringRef bindingStyle = kWSSOAPStyleRPC;
if ([[[command bindingStyle] lowercaseString]
isEqualToString:@"document"]) {
bindingStyle = kWSSOAPStyleDoc;
}
// setup soap request params
NSArray *paramOrder = [command paramOrder];
NSArray *paramTypes = [command paramTypes];
NSDictionary *params = [command params];
CFDictionaryRef cfParams = nil;
if (params) {
cfParams = checkDictionaryForIntegers(params);
}
WSMethodInvocationRef soapCall = [self methodInvocationWith:url
method:method
namespace:namespace
HTTPHeaders:reqHeaders
SOAPHeaders:soapHeaders
bindingStyle:bindingStyle
paramOrder:paramOrder
paramTypes:paramTypes
params:cfParams];
// invoke soap call
NSMutableDictionary *result;
//@try{
result = [NSMutableDictionary dictionaryWithDictionary:
(NSDictionary*)WSMethodInvocationInvoke(soapCall)];
here is the call stack:
#0 0x939f4d16 in __CFStringChangeSizeMultiple
#1 0x939fe067 in CFStringAppend
#2 0x92f26a7b in _CFHTTPMessageCopySerializedHeaders
#3 0x92f26514 in transmitHeader
#4 0x92f22852 in httpWrFilterCanWrite
#5 0x92f260b2 in httpWrFilterStreamCallBack
#6 0x939eb5e9 in _CFStreamSignalEventSynch
#7 0x939ed187 in CFWriteStreamSignalEvent
#8 0x92f13785 in _SocketCallBack
#9 0x939e27b1 in __CFSocketDoCallback
#10 0x939e3f55 in __CFSocketPerformV0
#11 0x939d9615 in CFRunLoopRunSpecific
#12 0x939d9cf8 in CFRunLoopRunInMode
#13 0x93577753 in WSMethodInvocationInvoke
#14 0x001858c8 in -[SOAPServiceWSCoreImpl doExecuteCommand:] at
SOAPServiceWSCoreImpl.m:114
#15 0x914dabad in -[NSThread main]
#16 0x914da754 in __NSThread__main__
#17 0x950ac6f5 in _pthread_start
#18 0x950ac5b2 in thread_start
thanks in advance
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden