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 09-12-2010, 01:27 PM   #1 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 16
NiBE is on a distinguished road
Default NuSOAP connection

Hi everybody,
I'm trying to connect to a SOAP web service to get a json object.
Does anybody has a tutorial or an easy example to show me?
Thank you very much

nibe
NiBE is offline   Reply With Quote
Old 09-12-2010, 02:44 PM   #2 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Amsterdam, The Netherlands
Posts: 782
TUX2K is on a distinguished road
Default

Well no, because SOAP is XML and not JSON.
And every SOAP envelope is diverent.
Communicating with the server is the easy part, just open a socket set the url, the method to POST and set the url body to the SOAP envelope.
Now you will have to parse the results.
TUX2K is offline   Reply With Quote
Old 09-13-2010, 02:43 PM   #3 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 16
NiBE is on a distinguished road
Default

Hi Tux2k,
thank you for your reply, let's say it gives me back an xml, I'm still stuck on how to create a soap connection, here from the web service side I have these informations:

Name: GetData
Binding: wsDataBinding
Endpoint: http://IPADDRESS/ws/wsGetData.php
SoapAction: uri:wsGetData/GetData
Style: rpc
Input:
use: encoded
namespace: http://UPADDRESS2/
encodingStyle: http://schemas.xmlsoap.org/soap/encoding/
message: GetDataRequest
parts:
password: xsd:string
Output:
use: encoded
namespace: http://UPADDRESS2/
encodingStyle: http://schemas.xmlsoap.org/soap/encoding/
message: GetDataResponse
parts:
return: xsd:string
Namespace: http://UPADDRESS2/
Transport: http://schemas.xmlsoap.org/soap/http
Documentation: blah BLAH blah

Anybody can put me on the right way to how connect and get the data from this soap?
I really appreciated and good advice.

Thank you very much

NiBE
NiBE 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: 341
10 members and 331 guests
cgokey, givensur, iGamesDev, jenniead38, linkmx, mraalex, PixelInteractive, raihan.zbr, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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