sudzc

Performning sudzc webservice using GCD

寵の児 提交于 2020-01-06 20:01:16
问题 I'm a bit confused about GCD I try caling a class where my webservice call is executed: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [searchService doSearch:self.searchData]; }); I'm using Sudzc-generated webservice. The actual service call to the service generated with Sudzc and is inside the SearchService class is the following: [service doSearch:self action:@selector(doSearchHandler:) e: searchArgs]; Once the call is done I should return to: - (void)

Performning sudzc webservice using GCD

梦想的初衷 提交于 2020-01-06 20:01:12
问题 I'm a bit confused about GCD I try caling a class where my webservice call is executed: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [searchService doSearch:self.searchData]; }); I'm using Sudzc-generated webservice. The actual service call to the service generated with Sudzc and is inside the SearchService class is the following: [service doSearch:self action:@selector(doSearchHandler:) e: searchArgs]; Once the call is done I should return to: - (void)

Sudzc with iOS 5 and ARC

丶灬走出姿态 提交于 2019-12-20 09:43:17
问题 I've been trying to get a webservices working using Sudzc. Whenever I convert my WSDL to obj-c without automatic reference counting it works just fine. The problem is, we are building all our applications in iOS 5 now and all our code uses ARC. Sudzc now also allows you to create a bundle with ARC enabled but when I run this code it always returns null. I tried debugging the Sudzc code and it does receive a correct xml response back from the service. Somewhere something is lost in translation

SudzC ARC version - objc_msgSend call causes EXC_BAD_ACCESS using 64-bit architecture

南楼画角 提交于 2019-12-17 15:33:41
问题 Edit - I've tracked the below issue to a 64-bit vs 32-bit architecture issue... see my posted answer for how I resolved I've used SudzC to generate SOAP code for a web service. They supply you with a sample application, which I was able to use successfully, both on device and simulator. I then started building out my app. I imported the SudzC generated files into a new XCode project using the blank application template (with CoreData and ARC enabled). I got the first SOAP request up and

Handling SUDZC's response result-NSMutableArray

我的梦境 提交于 2019-12-13 02:37:16
问题 I am using SUDZC with a web service that responds with several different arrays: E_ANT, EFULLNAME, E_RULE, E_VACDAYS. But when I take a look into the request result there are only the values for the E_ANT visible. How can I access the other items or is this not possible with sudzc? <n0:Z_COM_URL_GETRECORDSResponse xmlns:n0="urn:sap-com:document:sap:rfc:functions"> <E_ANT> <item> <MANDT>010</MANDT> <USERID>00000016</USERID> <VAC_DATE>2012-01-09</VAC_DATE> </item> <item> <MANDT>010</MANDT>

iOS call soap functions in thread

眉间皱痕 提交于 2019-12-12 04:12:48
问题 guys I'm a new iOS developer, I'm having a problem when calling soap functions in new thread. Here is more details: I have a function calling soap web service: WebService *webService = [[[WebService alloc]init]retain]; [webService getUser:self action:@selector(getUserHandler) userName: usnm encPassword: pswd]; This function is simply generated from sudzc.com(Great Website! Thanx!) simply calling this function I can get <user><username>XXX</username><userStatus>XXX</userStatus><companyCode>XXX

How to access array fields in sudzc.com SOAP result?

做~自己de王妃 提交于 2019-12-11 06:20:57
问题 Sorry to perhaps ask stupid questions, but I'm still having issues with Objective-C syntax. So, I've got this SOAP response from my sudzc.com generated code. It should contain a SQL SELECT result with veh_id and version as columns. What I get as a response object is a NSMutableArray, NSMutableArray* soapArray = (NSMutableArray*)value; so I walk through it: unsigned count = [soapArray count]; while (count--) { id myobj = [soapArray objectAtIndex:count]; NSLog(@"myobj: %@", myobj); } What I get

How do I pass arrays of values to SudzC-generated webservice classes?

人盡茶涼 提交于 2019-12-06 04:42:49
问题 I have a sudzc service class generated from a WSDL that accepts an ArrayOfInt and ArrayOfString objects as parameters. The service method signature is this: - (SoapRequest*) Search: (id <SoapDelegate>) handler filters: (NSMutableArray*) displayedAttributes: (NSMutableArray*) displayedAttributes; My question is, how do I pass values into the parameters that expect NSMutableArrays? In the above method signature, the "displayedAttributes" parameter is expecting an ArrayOfInt object (which should

How do I pass arrays of values to SudzC-generated webservice classes?

时光总嘲笑我的痴心妄想 提交于 2019-12-04 10:48:26
I have a sudzc service class generated from a WSDL that accepts an ArrayOfInt and ArrayOfString objects as parameters. The service method signature is this: - (SoapRequest*) Search: (id <SoapDelegate>) handler filters: (NSMutableArray*) displayedAttributes: (NSMutableArray*) displayedAttributes; My question is, how do I pass values into the parameters that expect NSMutableArrays? In the above method signature, the "displayedAttributes" parameter is expecting an ArrayOfInt object (which should be populated with several integers in an int tag, e.g., <int>1</int><int>2</int><int>3</int> etc).

Sudzc deserializeAsDictionary: over written dictionary

耗尽温柔 提交于 2019-12-04 02:42:54
问题 The Sudzc generated code is over writing a dictionary for deserialized nodes. If I use the NSLog(@"The Child Node: %@", [[[element children] objectAtIndex:0] stringValue]); it will write the correct items out each time it passed through. When I try to retrieve the results in code only the last one is available (Jackson 3). What am I doing wrong? // Deserializes the element in a dictionary. +(id)deserializeAsDictionary:(CXMLNode*)element { if([element childCount] == 1) { CXMLNode* child = [