Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As long as the soap is the same response you shouldn't have a problem using your code. There is a file that stores the server address. The code generated by sudzc can be modified to any address. I actually created a dynamic way of hitting servers. I will find the file and code I used to do this. You can search the project for your domain you used for sudzc.</p> <p>I'm not in front of a mac right now, but I will update later.</p> <pre><code>UPDATE: </code></pre> <p>Ok, so I created a settings tab and allowed the user to input a specific ip address if necessary. It saves the IP address in a dictionary and then this file retrieves it from the dictionary. I left some of my original comments and added some in the code so you can see both ways. If it confuses you let me know and I'll edit again. In my sudzc generated code I modified the file to this:</p> <pre><code>/* wsUpdateQOH.m The implementation classes and methods for the wsUpdateQOH web service. Generated by SudzC.com */ #import "wsUpdateQOH.h" #import "Soap.h" #import "Settings.h" #define URL @"http://%@/webServiceAddress/updateqoh.asmx" /* Implementation of the service */ @implementation wsUpdateQOH - (id) init { if(self = [super init]) { // take out hard coded address and add variable to have a dynamic IP @"http://www.site.com/webServiceAddress/updateqoh.asmx" // here is the dictionary return and format of the url string NSString *savedValue = [[NSUserDefaults standardUserDefaults] stringForKey:@"serverIP"]; self.serviceUrl = [[NSString alloc] initWithFormat:URL, savedValue]; // uncomment for a hard coded address self.serviceUrl = @"http://%@/webServiceAddress/updateqoh.asmx"; self.namespace = @"http://tempuri.org/webServiceAddress/UpdateQOH"; self.headers = nil; self.logging = NO; } return self; } - (id) initWithUsername: (NSString*) username andPassword: (NSString*) password { if(self = [super initWithUsername:username andPassword:password]) { } return self; } + (wsUpdateQOH*) service { return [wsUpdateQOH serviceWithUsername:nil andPassword:nil]; } + (wsUpdateQOH*) serviceWithUsername: (NSString*) username andPassword: (NSString*) password { return [[[wsUpdateQOH alloc] initWithUsername:username andPassword:password] autorelease]; } // *** Below here is the soap actions *** </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload