• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie Setting Web Service namespace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Newbie Setting Web Service namespace
      • From: Brian Smith <email@hidden>
  • Prev by Date: Re: Strange crash with multithreading and -[NSUserDefaults synchronize]
  • Next by Date: Bounds questions
  • Previous by thread: Re: XMPP framework?
  • Next by thread: Re: Newbie Setting Web Service namespace
  • Index(es):
    • Date
    • Thread