Newbie Setting Web Service namespace
Newbie Setting Web Service namespace
- Subject: Newbie Setting Web Service namespace
- From: Vineet Bhatia <email@hidden>
- Date: Sun, 12 Nov 2006 22:50:24 -0500
- Thread-topic: Newbie Setting Web Service namespace
Hi,
How do I set the namespace for a Web Service Method Invocation?
NSURL *soapURL;
WSMethodInvocationRef soapCall;
NSMutableDictionary *params;
NSArray *paramsOrder;
NSDictionary *result;
NSString *methodName;
methodName = @"getRate";
soapURL = [NSURL URLWithString:@"http://services.xmethods.net:80/soap"];
soapCall = WSMethodInvocationCreate((CFURLRef) soapURL,(CFStringRef)
methodName,(CFStringRef) kWSSOAP2001Protocol);
//[soapCall addNamespace:(NSXMLNode *)@"urn:xmethods-CurrencyExchange"];
params = [NSMutableDictionary dictionaryWithCapacity:2];
[params setObject:@"united states" forKey:@"country1"];
[params setObject:@"india" forKey:@"country2"];
paramsOrder = [NSArray arrayWithObjects:@"country1", @"country2", nil];
WSMethodInvocationSetParameters(soapCall, (CFDictionaryRef)params,
(CFArrayRef)paramsOrder);
result = (NSDictionary *) WSMethodInvocationInvoke(soapCall);
NSLog(@"Result: %@", result);
Thanks in advance.
Vineet
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden