I made a web service in ColdFusion. I can successfully call this service, with dynamic parameters, from C#. However, I am unable to call this service from iPhone Xcode. The response shows an operation failed error. So how can I consume this service from Xcode?
We have more than one application using a Coldfusion component via Xcode on an iPhone. Mostly consuming financial data. I believe we use the a call like:
action.cfc?method=blah¶m1=blah¶m2=blah
with a return format of either XML or json - so on the Xcode end of it we are using a parser for one of those technologies to deserialize the object.
Related
Currently i am having two SOAP projects(A and B) imported from WSDL files.
I created a mock server with one of the projects(A) and from my application i am able to call the mock server and get response.
Now i want to go further and try to invoke a request to another service situated in another project(B) when a soap operation is called in mock server project(A).The Project B is a call to another application.
Can i write groovy scripts to do this?
so whenever an operation A1 is called in project A after a time lapse a request needs to be sent from project B which might be an operation B1.
Here actually i am trying to simulate an external application using soap ui.
I understand i can do it by writing a program using java but thought i could do this in short time using soap ui.
As question i wanted to know if my thought is right of using soap ui or should i go do it through another tool or writing a java app.
I am developing iphone app to call a WCF web service. I read about the possible ways of calling a web service using iOS but the problem is currently the client app is using proxy object to call service , is it possible to have same Proxy object in iOS or anyway to simulate it ? OR is there any way to find out what is the final URL or Object that is going to be sent to server ?
my shortcut solution is to use Fiddler.exe to monitor http request and see what is sent to server . but by right it should not be the only way ...
No need to use fiddler , there are a few options in front of you as below :
1- using NSURLConnection , NSXmlParser and NSHttpRequest to implement a SOAP or REST message. (this way is not recommanded because you need to write down all the SOAP structure.)
2- using using SudzC.com to create a iOS Client side, you can find the tutorial on http://www.sudzc.com
Note : there are a few problems when using SudzC, please use below article to handle the issues :
http://blog.exadel.com/working-with-ios-and-soap/
Good luck.
I have an app to send data from iPhone to MySQL server and I got it with request from objective-c and php on server.
Now, I want to receive data from server by XML. I have created a php code to generate data from MySQL to XML. How can I code in objective-c to call this php code? The goal is using this XML to parse and display on iPhone (I have objective-c code to parse xml file from link on server).
Please help me if you know and used to work on that.
Use Web-servces Like XML- RPC, SOAP ,REST
To connect to a mysql database, your best bet is to use JSON/SOAP/XML/PHP or some combo of the mentioned, to talk between your database and your app..
The reason database connection directly from the device is a bad idea, is that you have to enable global external access to it for it to work. You can keep your data safer by having scripts on your server do the communication to the database.
Your server needs to expose a service of some kind (a URL the iPhone app can call).
Your app can call this URL with NSURLConnection (or lots of others).
This will return you an NSData * object.
Your app will then need to parse this raw data into XML (or JSON or a few others). You can use NSXMLParser (and lots of others) to do the parsing.
Then, you need to translate the XML into useful business objects.
I want to create one simple application for sending request from iphone(client) by using http protocol to the server for adding two integer numbers.server process the request and return the response to the client that is my iphone.retrive the result from server and show the result in my iphone.plz giv me a step by step procedure for implement this app.
and also give the detailed explanation for which language is supported for writting the code for implement this application and what are the proticols are used to send the request...
how to retrive the result from server by using which kind of parser like,(xml...)
i'm waiting for ur reply...
Thank u...
There is a good tutorial on the apple developer site on how to make a http request and receive data here.
All app written to the iPhone is done in Objective C using the framework supplied by apple.
The protocol used is http.
If you implement the server part, then you decide what kind of format the result should be. In most cases, depending on the result you want to return, this would be xml. It could also be binary data if it is something like an image.
How can i test a wcf service in a browser? I mean if i only enter the url in the browser it should give me only relevent xml
It depends on what type of WCF service you have:
if you're using a WCF REST service (webHttpBinding), then you should be able to just navigate to the service address, e.g. http://yourserver/somedir/service.svc
if you're using anything else, you have a SOAP service, and you cannot test a SOAP service in a web browser - the browser just doesn't understand and speak SOAP. There's however a WCF Test Client app in your C:\ drive somewhere which you can use for that purpose.
Make a test application for it. It can be as simple as having a UI with a bunch of buttons, when you press a button then a certain function exposed by the WCF service is called, you could maybe echo the output to a textblock in the app. You could also have a bunch of input type UI items (textboxes, dropdowns, whatever) so you can select parameters to pass to the WCF function.
If you want to be really classy, then make a set of unit tests for it - this means that you will have to have it hosted somewhere though so that it can be called any time the tests are run.