tag:blogger.com,1999:blog-5993809922163266453.post6333116828200760899..comments2018-05-22T10:45:13.587-07:00Comments on brian's blog: iPhone Development: Accessing SOAP Services with WSDL2ObjCbrismithhttp://www.blogger.com/profile/00141311042336579161noreply@blogger.comBlogger50125tag:blogger.com,1999:blog-5993809922163266453.post-69638760420561935832012-10-10T04:55:55.437-07:002012-10-10T04:55:55.437-07:00I press button, and I get this error...I press button, and I get this error...@manhttps://www.blogger.com/profile/15175417570474897691noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-79973456136563043802012-10-10T04:45:00.699-07:002012-10-10T04:45:00.699-07:00ResponseError:
Error Domain=NSURLErrorDomain Code=...ResponseError:<br />Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x6858800 {NSErrorFailingURLKey=http://www.ripedevelopment.com/webservices/LocalTime.asmx, NSErrorFailingURLStringKey=http://www.ripedevelopment.com/webservices/LocalTime.asmx}<br />2012-10-10 15:37:44.593 TestWebService2[7930:207] ResponseError:<br />Error Domain=Connection Authentication Code=0 "Authentication Error" UserInfo=0x6850ee0 {NSLocalizedDescription=Authentication Error}@manhttps://www.blogger.com/profile/15175417570474897691noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-91687856178958890982012-08-07T18:31:30.354-07:002012-08-07T18:31:30.354-07:00I am following your example and I have achieved th...I am following your example and I have achieved the result successfully. The example here returns "<<b>LocalTimeByZipCodeResult</b>>8/7/2012 9:10:03 PM<<b>/LocalTimeByZipCodeResult</b>>". But my service actually returns an array of objects. It looks like this:<br /><<b>getAllCategoriesResult xmlns:a="http://schemas.datacontract.org/2004/07/DocSyncService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"</b>><br /> <<b>a:Category</b>> <<b>a:categoryId</b>>4<<b>/a:categoryId</b>> <<b>a:categoryName</b>>IT<<b>/a:categoryName</b>><br /><<b>/a:Category</b>><br /><<b>a:Category</b>> <<b>a:categoryId</b>>6<<b>/a:categoryId</b>> <<b>a:categoryName</b>>CPG<<b>/a:categoryName</b>><br /><<b>/a:Category</b>><br /><<b>/getAllCategoriesResult</b>><br />I want to display the values in <<b>a:categoryName</b>>("IT" and "CPG" in this case) in a tableview. Can you pls help me achieve this?from.NetToiOShttps://www.blogger.com/profile/16178433471570014383noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-13816359961590741912012-08-01T01:48:27.906-07:002012-08-01T01:48:27.906-07:00BusinessService.h:57:83: error: expected a type [1...BusinessService.h:57:83: error: expected a type [1]<br /> - (WSHttpBinding_IBusinessServiceBindingResponse *)ProceedtoEsignUsingParameters:((null))aParameters ;<br /> ^<br />fatal error: too many errors emitted, stopping now [-ferror-limit=]<br /><br /><br />I am getting this error wile compilingkiran kumarhttps://www.blogger.com/profile/15168364629852542868noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-76890027394481277012012-07-24T18:04:11.470-07:002012-07-24T18:04:11.470-07:00Hi brismith,
I am getting the following error whe...Hi brismith,<br /><br />I am getting the following error when I click on Test Button in the localTime code and that is why the responseBodyParts remains NULL<br /><br /><br />App[4549:f803] ResponseError:<br />Error Domain=LocalTimeSoapResponseHTTP Code=500 "internal server error" UserInfo=0x6ab3a80 {NSLocalizedDescription=internal server error}<br /><br />Can you please help?Rachanahttps://www.blogger.com/profile/09868746391398628550noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-44858097279972417902012-04-27T07:37:10.462-07:002012-04-27T07:37:10.462-07:00Glad to hear you got the project to build. About t...Glad to hear you got the project to build. About the '.' in the WSDL, there are a few posts at StackOverflow about this: http://stackoverflow.com/questions/9459986/use-of-dot-notation-in-web-service-wsdl-causes-sudzc-compile-errorsbrismithhttps://www.blogger.com/profile/00141311042336579161noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-48771492958812280512012-04-26T12:18:47.228-07:002012-04-26T12:18:47.228-07:00ok, I have solved my problem, but what should I do...ok, I have solved my problem, but what should I do if WSDL value has a '.' in name? for example: "user.id". Xcode translate it of course with error because of using . and id:/ksiedzulekhttps://www.blogger.com/profile/01482152595488550292noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-53520867034647164972012-04-25T12:13:46.157-07:002012-04-25T12:13:46.157-07:00hi, great tutorial! thx, but I still have problem ...hi, great tutorial! thx, but I still have problem how to configure Xcode 4.3.2, I set under:<br /><b>Project>Build Settings>Linking>"Other Linker Flags" to "-lxml2"</b>, and under <b>Project>Build Settings>Apple LLVM compiler 3.2 - Language> "Other C Flags" to "-I/usr/include/libxml2"</b> and I have error: 'libxml/tree.h' file not found....could you help me?ksiedzulekhttps://www.blogger.com/profile/01482152595488550292noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-72519434306823960562012-04-12T05:10:58.582-07:002012-04-12T05:10:58.582-07:00I am getting following error....
i changed applica...I am getting following error....<br />i changed application/soap+xml<br />to text/xml<br />in my Project. <br /><br />ResponseError:<br />Error Domain=BasicHttpBinding_IService1BindingResponseHTTP Code=400 "bad request" UserInfo=0x6e42e70 {NSLocalizedDescription=bad request}umeshhttps://www.blogger.com/profile/09174081626362227337noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-22203315050947128132012-02-29T02:30:55.516-08:002012-02-29T02:30:55.516-08:00Hi i m getting following error
ResponseError:
Err...Hi i m getting following error<br /><br />ResponseError:<br />Error Domain=LocalTimeSoapBindingResponseHTTP Code=500 "internal server error" UserInfo=0x6dad150 {NSLocalizedDescription=internal server error}gouravhttps://www.blogger.com/profile/13283555176952419021noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-10179315654870540302012-02-29T02:30:13.338-08:002012-02-29T02:30:13.338-08:00HI i m getting error
ResponseError:
Error Domain...HI i m getting error <br /><br />ResponseError:<br />Error Domain=LocalTimeSoapBindingResponseHTTP Code=500 "internal server error" UserInfo=0x6dad150 {NSLocalizedDescription=internal server error}gouravhttps://www.blogger.com/profile/13283555176952419021noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-51217019463533501522011-11-14T11:24:07.625-08:002011-11-14T11:24:07.625-08:00Hi,
I found that wsdl2objc does not create all cl...Hi,<br /><br />I found that wsdl2objc does not create all classes when web services are JAX-WS based.<br /><br />In particular, the ..SoapBinding class is not created.<br /><br />On the wsdl2objc wiki, someone wrote.<br /><br />"It turned out that the issue was that the referenced xsd namespace files were not accessible. In my case I had to place them in the appropriate location on my local system before it would generate the code correctly."<br /><br />Unfortunately this solution is useless, because it does not tell which is the "appropriate location" for the namespace files.<br /><br />I would like to know if the author of this very good tutorial, or any reader, could help me.<br /><br />Thanks in advance<br />MicheleM. A.https://www.blogger.com/profile/14514854641799380699noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-36344923167313231952011-07-15T07:41:59.887-07:002011-07-15T07:41:59.887-07:00I'm having a problem at the following line:
L...I'm having a problem at the following line:<br /><br />LocalTimeSoap12Response *resp = [binding LocalTimeByZipCodeUsingParameters:request];<br /><br />I understand this is not the exact code in the example, but the compiler didn't like your code and this seemed to be the only code the compiler would like. I end up getting a 500 Internal Server Error after calling the line above. I did follow the wsdl2objc Usage Instructions as well. Here's the error I get:<br /><br />TimeProject[1335:40b] ResponseError:<br />Error Domain=LocalTimeSoap12ResponseHTTP Code=500 "internal server error" UserInfo=0x4e03790 {NSLocalizedDescription=internal server error}<br />Terminating in response to SpringBoard's termination.<br /><br />Any hints would be greatly appreciated.webmasterhttps://www.blogger.com/profile/02817494678248119396noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-18939926135168544552011-06-24T21:33:44.629-07:002011-06-24T21:33:44.629-07:00Thank you dude, you have help me today to finally ...Thank you dude, you have help me today to finally be able to obtain some information from a SOAP service<br /><br />Have an excellent day :)LeGermanhttps://www.blogger.com/profile/02049798644971657647noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-49665946091107229102011-05-18T11:50:17.161-07:002011-05-18T11:50:17.161-07:00Cillian, when I added xmlNewNs...tempuri.org...Ser...Cillian, when I added xmlNewNs...tempuri.org...Service to serializedFormusingHeaderElements, my outbound xml includes xmlns:Service="http://tempuri.org" Is that what you're looking for? I would've expected the wsdl to provide the namespace defsbrismithhttps://www.blogger.com/profile/00141311042336579161noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-18952369680031383632011-05-18T06:08:13.688-07:002011-05-18T06:08:13.688-07:00This is a brilliant tutorial, thank you.
But I ne...This is a brilliant tutorial, thank you.<br /><br />But I need to do one thing, I need to add WSA addressing to the SOAP header in order for it to connect correctly.<br /><br />The code needed to add is basically:<br /><br /> http://url.com/etc.svc<br /><br />Could you by any chance let me know how to achieve this?<br /><br />I've been trying to add it to the section where the SOAP message is created, EG: xmlNewNs(root, (const xmlChar*)"http://tempuri.org/", (const xmlChar*)"Service");<br /><br />To no avail.<br /><br />Any pointers appreciated.<br /><br />Sincerely,<br />Cilliankeeffecanflyithttps://www.blogger.com/profile/02436177199345387255noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-77115857364127753892011-04-13T11:05:17.033-07:002011-04-13T11:05:17.033-07:00A great job! It works nice to me! God bless you, B...A great job! It works nice to me! God bless you, Brian!Gerson Freire de Amorim Filhohttps://www.blogger.com/profile/17973505755128865966noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-44169751613703958902011-03-28T03:36:41.330-07:002011-03-28T03:36:41.330-07:00First, thanks for a great tutorial.
When I press ...First, thanks for a great tutorial.<br /><br />When I press "Parse WSDL" using <i>http://www.ripedevelopment.com/webservices/LocalTime.asmx?wsdl</i> to generate code it just says Finished! but no files are generated.oscarhttps://www.blogger.com/profile/10302332971733391984noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-15589551009432144152011-02-22T02:26:35.520-08:002011-02-22T02:26:35.520-08:00Thank you Brian, very good description, I was sear...Thank you Brian, very good description, I was searching for this only, My work was done because of this descriptionFriendhttps://www.blogger.com/profile/05283798414453316098noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-47677545849964731952011-01-27T07:50:34.285-08:002011-01-27T07:50:34.285-08:00Selim, did you remember to import LocalTime.h? (se...Selim, did you remember to import LocalTime.h? (see step 4)brismithhttps://www.blogger.com/profile/00141311042336579161noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-8116082087330924342011-01-26T06:48:22.958-08:002011-01-26T06:48:22.958-08:00Hi Brain
Thank you it is a great article.
But I ha...Hi Brain<br />Thank you it is a great article.<br />But I have some problems too.<br />I have no LocalTimeSoap12Binding LocalTimeSoapBinding and didnt check tickbox.<br />Is any body can compile this sample , if yes can you send the sample code via email to me.<br /><br />pilot007@gmail.com<br /><br />best regards<br />SelimUnknownhttps://www.blogger.com/profile/10841868641197228679noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-29873619369044140302011-01-24T03:40:00.099-08:002011-01-24T03:40:00.099-08:00Good tutorial!
I am facing an issue. I followed al...Good tutorial!<br />I am facing an issue. I followed all the steps to generate the source for a webservice named "eQSOASingletonServiceSvc" ( I checked the 'Add tag to service name')<br /><br />Now when i try to use below line...<br />eQSOASingletonServiceSvBinding, i get a eQSOASingletonServiceSvBinding undeclared error while building.<br />I have something called eQSOASingletonPortBinding created in eQSOASingletonServiceSvc.h<br />I'm very new to iphone programming. Can you help?Hrishikesh Burkulehttps://www.blogger.com/profile/05963055824140337287noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-74773639535656212982010-11-23T13:45:37.752-08:002010-11-23T13:45:37.752-08:00Vinh,
When I ran this code:
BasicServiceBinding...Vinh, <br /><br />When I ran this code:<br /><br />BasicServiceBinding *binding = [[BasicService BasicServiceBinding] initWithAddress:@"http://demo.qgs.vn/spa/webservices/call/basic"];<br />binding.logXMLInOut=YES;<br /><br />BasicServiceBindingResponse *resp = [binding list_servicesUsingFacility_id: [NSNumber numberWithInt:0]];<br /><br />I got the response <br />?xml version="1.0" encoding="UTF-8"?<br />SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"<br />SOAP-ENV:Body<br />SOAP-ENV:Fault<br />faultcode<br />SOAP-ENV:Server<br />/faultcode<br />faultstring Procedure 'facility_id' not present<br />/faultstring<br />/SOAP-ENV:Fault<br />/SOAP-ENV:Body<br />/SOAP-ENV:Envelope<br /><br />Is this what you were seeing? I noticed that the wsdl let me make calls without building request objects, but I didn't look very far into the code that wsdl2objc createdbrismithhttps://www.blogger.com/profile/00141311042336579161noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-5888297258285486052010-11-23T13:39:54.426-08:002010-11-23T13:39:54.426-08:00Udhaya, you probably forgot to add -lxml2 to Linke...Udhaya, you probably forgot to add -lxml2 to Linker Flags, and -I/usr/include/libxml2 to Other C Flagsbrismithhttps://www.blogger.com/profile/00141311042336579161noreply@blogger.comtag:blogger.com,1999:blog-5993809922163266453.post-37142075287470745272010-11-22T23:54:41.013-08:002010-11-22T23:54:41.013-08:00Hi, thank you for your instruction. It's reall...Hi, thank you for your instruction. It's really helpful. I can build and go successful with your tutorial. But I can't implement it with my SOAP. Please help me. My SOAP: http://demo.qgs.vn/spa/webservices/wsdl/basic <br /><br />Thanks so much.Gheorghe Cenahttps://www.blogger.com/profile/11162615784645264754noreply@blogger.com