Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-04-2010, 02:00 AM   #76 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 2
avi.ghostrider is on a distinguished road
Default i use other way to do soap parsing

i can do parsing for you if you want
if your parsing gives value in attributes then use simple parsing. if it give value in nodes only then you have to use xpath query for make it dict.

if your problem is not solved then send me webservice link i send you code that give response in dict or array
avi.ghostrider is offline   Reply With Quote
Old 10-04-2010, 05:42 AM   #77 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 17
mrnos is on a distinguished road
Default

Quote:
Originally Posted by funkyspider View Post
I highly recommend looking at the SOAP service code generator SudzC (alpha) | clean source code from your web services. The author is really helpful too.

I hope this helps people get around the woeful support for SOAP in the SDK.
Hi funkyspider, i try sudzc code generator and i've a question: if i run the example generated by the process and i go to read the log in console, i can see some of this:
"MyMethodName returned the value: <Example: 0x3c4b180>".
If i try to write the value of a node with the script
"NSLog(@"test: %@", result.nodeName);"
i read null value.

If i enable the log with this code
"service.logging = YES;"
i can read the full xml tree.

I suppose that i've an error in the result variable, but this is the code generated automatically:
FormatReturnedByMethod* result = [[FormatReturnedByMethod alloc] initWithNode:value];
where value is the parameter of the method.

I try also the code (different from the code generated by the process) for manage the result that is written in the video tutorial of sudzc but it doesn't work too.

Is there anyone that can help me to resolve my bad problem?

Thanks a lot
Davide
mrnos is offline   Reply With Quote
Old 10-09-2010, 02:42 AM   #78 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

Quote:
Originally Posted by mrnos View Post
Hi funkyspider, i try sudzc code generator and i've a question: if i run the example generated by the process and i go to read the log in console, i can see some of this:
"MyMethodName returned the value: <Example: 0x3c4b180>".
If i try to write the value of a node with the script
"NSLog(@"test: %@", result.nodeName);"
i read null value.

If i enable the log with this code
"service.logging = YES;"
i can read the full xml tree.

I suppose that i've an error in the result variable, but this is the code generated automatically:
FormatReturnedByMethod* result = [[FormatReturnedByMethod alloc] initWithNode:value];
where value is the parameter of the method.

I try also the code (different from the code generated by the process) for manage the result that is written in the video tutorial of sudzc but it doesn't work too.

Is there anyone that can help me to resolve my bad problem?

Thanks a lot
Davide
maybe you should consider to parse manually the xml.

However, i don't know, attach the project, i will take a look.
__________________
dany_dev is offline   Reply With Quote
Old 10-11-2010, 07:54 AM   #79 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 17
mrnos is on a distinguished road
Default

Quote:
Originally Posted by dany88 View Post
maybe you should consider to parse manually the xml.

However, i don't know, attach the project, i will take a look.
i followed your suggestion, i have parsed manually the xml code and now my example works fine.

Now i'm busy but next dayes i will post source code of native project written by sudzc for discuss with you about the problem....

Thanks for the replay.

have a nice day,
Davide
mrnos is offline   Reply With Quote
Old 11-18-2010, 09:50 AM   #80 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 1
lestermoreno is on a distinguished road
Default Hello, thanks for the code

Hello,

I'm new on Obj-C I try to use your code and Im getting the following erros:


/Projects/INTROL/Classes/INTROLViewController.m:52:0 /Projects/INTROL/Classes/INTROLViewController.m:52: warning: 'NSURLRequest' may not respond to '+setAllowsAnyHTTPSCertificate:forHost:'


/Projects/INTROL/Classes/INTROLViewController.m:79:0 /Projects/INTROL/Classes/INTROLViewController.m:79: warning: incompatible Objective-C types assigning 'struct NSData *', expected 'struct NSMutableData *'


/Projects/INTROL/Classes/INTROLViewController.m:82:0 /Projects/INTROL/Classes/INTROLViewController.m:82: warning: unused variable 'theXml'


Any ideas???

Thanks!!
lestermoreno is offline   Reply With Quote
Old 11-26-2010, 07:09 AM   #81 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

these are warning and not errors

1) I think that setAllowsAnyHTTPSCertificate:forHost is a private API, so this is the problem. If work just don't consider it, if not work, take a look here
Alternative method for NSURLRequest's private "setAllowsAnyHTTPSCertificate:forHost:"? - Stack Overflow

2) Just a cast warning, cast NSData to NSMutableData on that line or ignore it.

3) Just a variable that you don't use.
__________________
dany_dev is offline   Reply With Quote
Old 03-18-2011, 08:40 AM   #82 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 2
vikassaini is on a distinguished road
Default Asp.net web-service in Iphone application

Hello,
I am new in objective-c and i am a PHP developer,i want to use web-service in the iphone application.I want to use the asp.net web-service so can u please help me how can i use the asp.net web-service in the iphone application.
vikassaini is offline   Reply With Quote
Old 03-18-2011, 09:13 AM   #83 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 2
vikassaini is on a distinguished road
Default Iphone application code with asp.net web-service

Hello,
I am new in objective-c and i am a PHP developer,i want to use web-service in the iphone application.I want to use the asp.net web-service so can u please help me how can i use the asp.net web-service in the iphone application.

Can anyone send me the code for iphone application in which you used asp.net webservice.
Please send the code my Emailid:-"vikassaini89@gmail.com"
vikassaini is offline   Reply With Quote
Old 05-03-2011, 05:26 AM   #84 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 1
sjcsystems is on a distinguished road
Default

I am a SQL Server developer who has been asked to implement an API for a third party to develop an iPhone app. However rather than calling a web service in SQL, they are talking about an implementation of a middleware layer in PHP. This is alien territory for me.

What do I need to ask or any guidance ?

TIA,
Simon
sjcsystems is offline   Reply With Quote
Old 05-03-2011, 05:47 AM   #85 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

Quote:
Originally Posted by sjcsystems View Post
I am a SQL Server developer who has been asked to implement an API for a third party to develop an iPhone app. However rather than calling a web service in SQL, they are talking about an implementation of a middleware layer in PHP. This is alien territory for me.

What do I need to ask or any guidance ?

TIA,
Simon
why not just use a webservice? however can be done a layer in php that do query(s) and output xml or json is not hard.....

To do something similar, you can follow this tutorial
Using PHP 5's DOM functions to create XML files from SQL data

In both case you need ASIHTTPRequest or NSURLConnection from your iphone client to do http requests.
__________________
dany_dev is offline   Reply With Quote
Old 05-03-2011, 05:49 AM   #86 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

Quote:
Originally Posted by vikassaini View Post
Hello,
I am new in objective-c and i am a PHP developer,i want to use web-service in the iphone application.I want to use the asp.net web-service so can u please help me how can i use the asp.net web-service in the iphone application.
follow this tutorial, work for all type of webservice: WebService [How-To]
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 338
11 members and 327 guests
givensur, glenn_sayers, guusleijsten, ipodphone, jbro, mediaspree, mottdog, mtl_tech_guy, Punkjumper, vilisei, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:30 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0