Building web services in 2012. What SOAP version to choose? [closed] - web-services

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Most web service tools support both SOAP 1.1 and 1.2 but what should be the version to choose when building a new WS?
I'm thinking WSDL 2 wasn't really all that adopted, but is that the case for SOAP also? Is SOAP 1.1 still considered the "de facto" standard when building SOAP web services or should SOAP 1.2 be used?

If the technology you're using permits it, then expose endpoints with both versions of SOAP.

SOAP 1.2 is a bit easier to handle. For example, you don't have to add the SOAPAction header to the request when using SOAP 1.2. The article below has a bit about it.
Request Differences SOAP 1.1, 1.2
The main thing you should check is to confirm that any prospective consumers you will have for your services will be able to consume 1.2. On a side note, if you want to ensure maximum interoperability, try and ensure that you can generate good concrete WSDLs for your services. Avoid included WSDLs, included XSDs as much as you can.
Tools like XMLSpy, SoapUI etc are going to have no issue with 1.1 or 1.2 and included XSDs, WSDLs.

Related

non search pikachu trash can [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Hello this may be fresh and green.
I'm looking to build a responsive web, I am familiar with django however new to AngularJS
The backend I have in mind is Deployd.com which utilizes MongoDB
may I know the perks or downs of :
angularjs as a web framework as compared to django
from research it seems that angular has awesome data binding capabilities
if django, why? anything that django can do well as compared to angular
(other then angular being hard to master)
compatibility of angularjs + django
(no speculations, people with deployment experience only please)
Angular is a front-end javascript framework.
Django is a back-end server framework.
They aren't comparable.

a good server side solution for angular.js [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm using Angular.js for my project. The business logic is developed within Angular I'm just looking for two things:
I need a way for easy user authentication and I don't know how to implement it through Angular.
I need a server side framework that provides a REST Api, an api for implementing a relational data model and good suppport for databases like Postgres or Mysql.
Now I'm using the Django framework for these two things it works perfectly with databases and provides a beautiful api for working with data, but I feel using Django along with angular is not a good solution because I don't use much of the functionalities that Django provides. I just need a simple REST api with a good Data Model api. Any suggestions for me?
I think it really depends what exactly you are using from Django. If the API is simple, you don't use many middleware classes, context processors, etc.. then you could drop it. If you are used to Python there a bunch of lightweight WSGI web frameworks out there, for example Bottle or Flask. They usually perform a little better than Django + they are mostly written so you can easily create REST API's. The "disadvantage" is that if you need specific things like a SQL ORM or some cache handling you have to include these batteries separately and can not use the Django own parts you are probably used to. This also includes to roll your own authentication system.
I think you have to figure out if you really want to rewrite the code. I personally think that the slight performance boost is often not worth the effort and time.
Regarding question 1 (authentication), this blog post + sample explains a great solution :
https://github.com/witoldsz/angular-http-auth
I don't know much about Django but I would be surprised if you couldn't change its "rendering mode". I've been using Express (Node.js) to expose a REST api. It was easy to swap from HTML rendering to JSON.
This may not be appropriate for your environment (not sure what platform you are on), but our current project is using AngularJS with a REST-like back-end built with ASP.NET Web API. It all fits really well together. As Web API is built on top of ASP.NET you get authentication 'for free' and there is no shortage of relational database frameworks out there for .NET. We're using Entity Framework Code-First with a bit of Massive thrown in here and there. That works fine for what we need and is really quick and easy to put together but you could also use NHibernate or any of the many other frameworks which are available for .NET.

Good javascript framework to integrate with Django? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm building a new web app. It will be in Django, but I'm now looking for a good frontend javascript library/framework to use.
I know JQuery, but what about Backbone.js or node.js? Thoughts?
I'm looking past JQuery because an MVC JavaScript library would be nice to use.
The things you're talking about all serve different purposes, and I'm not sure any of them is an exact match for what you said you want.
As you know, jQuery is all about client-side presentation and interaction, implemented in the browser.
Django -- a fine MVC framework for pythonistsas -- is the only thing on your list which codifies the MVC approach.
Node.js really isn't a front-end. It's "just" javascript (V8) grafted on to an event loop. Really. That's it. And your browser migth be running V8 (Chrome does) but it's not going to be running node.js. Node.js is about server-side javascript goodness. Since you're already doing your backend in Django, you've already committed to python. So node.js probably isn;t a consideration.
But here are some things you might like to know if you decide to do your app in javascript instead. Node.js has a lot to offer on the server. While node.js itself mostly provides a solid API abstraction over the network and filesystem layers, the ecosystem is amazing. The most widely used "web back-end framework" there is express. The docs are a little rough compared to what you're used to with Django, but you can build great sites. There is no baked-in MVC model (yet, that I know about, but that could literally change today) and persistence is provided by a bewildering array of database modules for just about every store you'd ever want to use. If you asked node.js proponents, I suspect at least a few of them are not very interested in the "old" MVC approach.
I don't know much about Backbone.js, but as I recall it's focus is on supporting ReSTful implementations and helping you avoid the sort of tangled mess that javascript middleware can easily become. (Of course it's possible to be elegant in javascript; but it's easier to be messy, especially when you add async events.)
I don't know why your question got dinged, and I hope this at least provides some food for thought. Good luck!

Is doing REST with Django different than MVC? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am building my first web app with jQuery/CSS3/HTML in the front end that would GET/POST data from a backend implemented in DJANGO.
For this, I would like to build entities in DJANGO that are ReSTified. The DJANGO site https://www.djangoproject.com/ talks mostly about DJANGO MVC. I dont think I want MVC. Am I thinking right? If so how would I get DJango do ReST for me?
Moreover what style of architecture is better? MVC or ReST?
Can you please advise?
Regards,
Manav
These are completely orthogonal concepts.
Django is built on the MVC pattern (in fact a variant of that, better referred to as MTV). That simply refers to how the application is structured - in Django's case, with models, views and templates. If you're using Django, you can't get away from that.
REST is a pattern for how an application interacts with its caller - ie by using HTTP verbs and serving up (usually) JSON. You can't "build an application in REST", but you can write a REST application using any structure you like, including MVC.
Django itself is an MVC framework. However, there are apps available that will allow you to create an API for your models.
I believe that the most common ones are django-tastypie and django-piston

Running Django on Google App Engine [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am learning Django and has made a simple app. I was thinking of deploying that app to Google AppEngine.
What is the easiest way to do it (i.e. the one which involves changing as little code as possible)?
What is the best way to do it (i.e. the one which supports most of Django's features)?
I know similar questions have been asked here but none of the questions were asked after Nov 2010 (http://code.google.com/appengine/articles/django.html)?
If you want to learn full django with Google App Engine the project to recommend is www.allbuttonspressed.com
It implements full django with Google App Engine. If you want to learn the basics I suggest starting with SDK 1.6 and python 2.7 so that you realize that upgrading from python 2.6 to 2.7 without manually copying in the django you use will break django dependance.
I used much django with app engine but I'm getting out in favor of Jinja2 for template engine and WTForms for forms since with python 2.7 the google.db.djangoforms is not available so for more advanced stuff than basic forms you would want a form framework and WTForms seems OK though I didn't use all of it yet.
I hope some of these opinions from me be relevant.