Revision: 28592
http://sourceforge.net/p/bibdesk/svn/28592
Author: hofman
Date: 2024-01-11 17:14:10 +0000 (Thu, 11 Jan 2024)
Log Message:
-----------
get soapBinding class from first component of class name of request
Modified Paths:
--------------
trunk/bibdesk/BDSKSoapBinding.m
trunk/bibdesk/WOKMWSAuthenticateService.m
trunk/bibdesk/WokSearchLiteService.m
trunk/bibdesk/WokSearchService.m
Modified: trunk/bibdesk/BDSKSoapBinding.m
===================================================================
--- trunk/bibdesk/BDSKSoapBinding.m 2024-01-11 16:57:49 UTC (rev 28591)
+++ trunk/bibdesk/BDSKSoapBinding.m 2024-01-11 17:14:10 UTC (rev 28592)
@@ -367,6 +367,14 @@
}
- (BDSKSoapBinding *)binding
{
+ NSString *name = NSStringFromClass([self class]);
+ NSUInteger idx = [name rangeOfString:@"_"].location;
+ if (idx != NSNotFound) {
+ name = [name substringToIndex:idx];
+ Class bindingClass = NSClassFromString(name);
+ if ([bindingClass isSubclassOfClass:[BDSKSoapBinding class]])
+ return [bindingClass soapBinding];
+ }
return [BDSKSoapBinding soapBinding];
}
@end
Modified: trunk/bibdesk/WOKMWSAuthenticateService.m
===================================================================
--- trunk/bibdesk/WOKMWSAuthenticateService.m 2024-01-11 16:57:49 UTC (rev
28591)
+++ trunk/bibdesk/WOKMWSAuthenticateService.m 2024-01-11 17:14:10 UTC (rev
28592)
@@ -1,10 +1,6 @@
#import "WOKMWSAuthenticateService.h"
@implementation WOKMWSAuthenticateService_authenticate
-- (BDSKSoapBinding *)binding
-{
- return [WOKMWSAuthenticateService soapBinding];
-}
@end
@implementation WOKMWSAuthenticateService_authenticateResponse
@@ -32,10 +28,6 @@
@end
@implementation WOKMWSAuthenticateService_closeSession
-- (BDSKSoapBinding *)binding
-{
- return [WOKMWSAuthenticateService soapBinding];
-}
@end
@implementation WOKMWSAuthenticateService_closeSessionResponse
Modified: trunk/bibdesk/WokSearchLiteService.m
===================================================================
--- trunk/bibdesk/WokSearchLiteService.m 2024-01-11 16:57:49 UTC (rev
28591)
+++ trunk/bibdesk/WokSearchLiteService.m 2024-01-11 17:14:10 UTC (rev
28592)
@@ -88,10 +88,6 @@
return self;
}
@synthesize retrieveParameters;
-- (BDSKSoapBinding *)binding
-{
- return [WokSearchLiteService soapBinding];
-}
@end
@implementation WokSearchLiteService_retrieve
Modified: trunk/bibdesk/WokSearchService.m
===================================================================
--- trunk/bibdesk/WokSearchService.m 2024-01-11 16:57:49 UTC (rev 28591)
+++ trunk/bibdesk/WokSearchService.m 2024-01-11 17:14:10 UTC (rev 28592)
@@ -186,10 +186,6 @@
return self;
}
@synthesize retrieveParameters;
-- (BDSKSoapBinding *)binding
-{
- return [WokSearchService soapBinding];
-}
@end
@implementation WokSearchService_citedReferences
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit