Are there any Objective-C web frameworks? - objective-c

Are there any Objective-C web frameworks? The only frameworks I've found is frothkit.
I'm primary looking for a way to write RESTful json web services in Objective-C.

GNUStepWeb is a web framework based on the Objective-C version of NeXT's WebObjects (Apple's WebObjects being Java only), but it has no particular support for JSON. It's certainly possible to get it to write JSON data, of course.

This doesn't do REST, but SudzC will generate an Objective-C web services proxy for invoking a web service. They recently upped the documentation and sample code specific to the WSDL that you point it to or upload. Check it out.

There is nothing stopping you from just using a JSON C library to handle the JSON stuff. Heck if you were feeling adventurous you could even write it yourself.

Related

Is there any solution for generating the restfual api code both for client and server

The functions for operating the restful api is quite same. Is there any project that can generate the source code for different platform such android,ios and backend stuff.
I suggest you to use API description languages such Swagger ou RAML.
After having described your RESTful application with a language like this, you will be able to generate things like server skelekons and client sdks with different technologies and languages. You can even generate documentations.
With Swagger, swagger-codegen will do that. swagger-ui may also interest you for the documentation part.
To finish, I would like to mention the Restlet studio that allows to define graphically and quickly the structure of RESTful applications and generate then the corresponding Swagger and RAML contents. The APISpark plaform provides a mecanism to introspect Restlet applications and generate the corresponding contents with these languages. It also allow you to generate a set of server skelekons and client sdks.
Hope it helps you.
I will suggest you to use Spring RESTful webservices starter kit. Which will manage your back-end with centralized database. Also Spring has its own android libs to communicate with REST Apis.

Are there any native iOS solutions for communication with SOAP web service?

Is it true, there's no native built-in libs or frameworks for communicating with a web service via SOAP? There's some Web Services Core framework that deals with SOAP but it's available only for mac os. All stack overflow posts mention about 3rd party libs for dealing with SOAP (CSoap and other)...
Currently, I'm looking for a wrapper API like "sendRequestWithMessage:" and "receiveResponseWithMessage:". I would prefer higher level API instead of manual construction of HTTP request, setting headers (length and etc), and maybe simplified XML construction.
SudzC.com generating files are not a library , it generates your classes based on your wsdl file, it generates purely objective c source code.

Can you use JIRA's SOAP API in a VB.NET desktop application?

I tried using JIRA's REST API but the function that I needed wasn't there and found it at JIRA's SOAP API. A newbie like me wants to know if you can use JIRA's SOAP API in a VB.NET desktop application? Thanks!
Absolutely. The point of a SOAP service is to allow access to the data and functionality of application from another application regardless of the language it is written in. All you need is something in your program that understands how to talk to and work with a SOAP service.
I have no doubt that a VB.NET application can talk to a SOAP service without issue, but I am not a .NET programmer so I can not provide any specific guidance on how to do it.
What you will want to search for is "Consuming SOAP services with VB.NET". I did that myself and came up with some god looking tutorials.
http://www.codeproject.com/KB/vb/vbwebservice.aspx
http://www.vbdotnetheaven.com/Uploadfile/SrinivasSampath/WebServiceusingSOAPToolkit11242005002126AM/WebServiceusingSOAPToolkit.aspx
http://visualbasic.about.com/od/learnvbnet/a/LVBE_L6_3.htm
Like I said, I think everything you need will be built into the .NET framework. I don't think you will need to download anything additional or include extra libraries.

wsdl2objc - had to manually modify the soap message to make it work

I tried to call a web service from iphone. I used wsdl2objc to generate the stub. To make the web service call really work, I had to manually modify the soap message. Any better framework for ios soap?
I've had success with SudzC in recent projects, which will read a WSDL and generate a complete set of Objective-C (or Actionscript, or Javascript) classes, with supporting frameworks and an Xcode project, for working with your web service. Is that what you're looking for?

Consuming JSON-RPC web services in .NET

A business partner has suggested building a web services library with JSON-RPC rather that SOAP. (note they are not building in .NET necessarily, but I am)
I am a potential consumer of this data.
I've used JSON for client-based Ajax calls in the past, but this web services library will be used primarily for server-side calls and syncing large amounts of data.
I don't have much experience with JSON-RPC.
Questions:
Can I easily build a JSON-RPC
consumer in .NET?
Are JSON-RPC web services self
documenting and discoverable, like a
SOAP WSDL?
Can I easily add a Web Reference in
Visual Studio to a JSON-RPC web service?
Thanks
Can I easily build a JSON-RPC consumer
in .NET?
Yes. JSON-RPC services are simple to consume as long as you have a robust JSON parser or formatter. Jayrock provides a simple client implementation JsonRpcClicnet that you can use to build a consumer. There is also a small demo sample included.
Are JSON-RPC web services self
documenting and discoverable, like a
SOAP WSDL?
No, there is nothing standardized but there are ideas being floated around like Service Mapping Description Proposal.
Can I easily add a Web Reference in
Visual Studio to a JSON-RPC web
service?
This can work if the server-side implementation provides a WSDL-based description of the JSON-RPC service but none are known to provide this to date.
Check out Jayrock.
Jayrock is a modest and an open source
(LGPL) implementation of JSON and
JSON-RPC for the Microsoft .NET
Framework, including ASP.NET. What can
you do with Jayrock? In a few words,
Jayrock allows clients, typically
JavaScript in web pages, to be able to
call into server-side methods using
JSON as the wire format and JSON-RPC
as the procedure invocation protocol.
The methods can be called
synchronously or asynchronously.
Can I easily build a JSON-RPC consumer in .NET?
Shouldn't be difficult as long as you know what you're doing.
Are JSON-RPC web services self documenting and discoverable, like a SOAP WSDL?
Discoverable yes, documenting in as much as you can get function names and parameter lists. (not entirely sure what you're asking for as far as documentation goes).
Can I easily add a Web Reference in Visual Studio to a JSON-RPC web service?
I don't think so, no. (Though, I have no idea, it's possible. My experience with JSON-RPC is in PHP/JS mostly)
Relevant links:
http://json-rpc.org/wiki/specification
http://json.org/
http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
Maybe you could have a look at json-wsp which is much like json-rpc but with a discription specification. It is implemented as an interface in Ladon for python.
http://pypi.python.org/pypi/ladon
I have some sample Json-Rpc 2.0 clients for .net and windows phone 7 in the Json-RPC.NET sources.
Check them out: .Net Client and WP7 Client