how can i build proxy classes from wsdl( wcf services) in android? - android

I need to build proxy from a "WSDL" to call "WCF" services.
please provide me info. about tolls required and steps to do.
i have wsdl document.
and want to create a android client to consume the services.
i have spend a lot time on tht.

Android doesn't have built in SOAP API. You must use some additional library like kSoap2 but those libraries doesn't provide automatic client generation - you must code it. There are products which are able to generate clients but I expect them to be commercial like WSClient++.

Related

How to implement server side google authorization on dotnet core

I need to implement server-side validation for in-app purchases of my android application, in C# dotnet core platform which runs on linux.
I have read this page so many times and finally found about this issue which shows I'm not alone. It looks like Google currently does not directly support dotnet core fully.
Is there anyone who could achieve this using any third party library?
The issue you linked to is about users logging in via MVC.
If you want to use a service account:
If your server is on Google Cloud (e.g. Compute Engine, Container Engine or App Engine) you shouldn't need to do anything
Otherwise, download a service account JSON file by following the instructions here and make sure the server has local access to the file then either:
Set the GOOGLE_APPLICATION_CREDENTIALS environment variable and use GoogleCredential.GetApplicationDefault or
Use the new GoogleCredential.FromFile method (introduced in 1.29.0 of the client library support package)
As far as I know .Net Core does not have an Oauth2 server implementation (yet?)...
There are few posibilities out there as commented here, but most used is Identity Server (something that can be integrated in your custom ASP Net Core project and does the job)
"IdentityServer4 is an OpenID Connect and OAuth 2.0 framework for
ASP.NET Core."
Main link: http://docs.identityserver.io/en/release/index.html
Adding Support for External Authentication:
http://docs.identityserver.io/en/release/quickstarts/4_external_authentication.html?highlight=google
Take a look at the Setup and OVerview part and You'll find that this would fit your needs (I'm pretty sure)
I hope it helps,
Juan

which type of web services can a Android App talk to?

I was reading that SOAP is really not for Android. Rather Android prefers REST web services. So my question is, are there any other kinds of restrictions ? For example, some web services are built with JAXB. Is that ok for Android apps ?
I other words, does it matter how the REST web service is built ?
What if the web service returns data in XML format, is that ok with Android ?
It does not matter what kind of Webservice you are communicating with.
You communicate using HTTP protocol. If you use SOAP then you can parse your xml at client side.
Also there are many SOAP clients already available so you dont have to do much work.
Check this - http://code.google.com/p/ksoap2-android/
There is no restriction with REST web services on Android. Yes android can handle xml. You can get detail knowledge and help by going through GAE (Google app Engine). Find the link below:
https://developers.google.com/appengine/docs/
Android does not provide a built in SOAP client, there are many third party libraries that can be used to call a SOAP web service with native android APIs.
Where as REST is so simple & can be used directly without any third party libraries.

Create webservice in drupal

Can we create webservices in Drupal? Our web development team is creating a website in Drupal and they want to build an android application for the same and for that I need to use webservices to access the database.
Have a look at the services module
A standardized solution of integrating external applications with
Drupal. Service callbacks may be used with multiple interfaces like
REST, XMLRPC, JSON, JSON-RPC, SOAP, AMF, etc. This allows a Drupal
site to provide web services via multiple interfaces while using the
same callback code.
It's build for this reason. Drupalize.me android app is built on the services module, so too for many android applications.
Hope this helps... Muhammad.
Can we create webservices in Drupal?
Yes, You can Do it.
I had done it via JSON webservices.

Soap vs Rest over Android

I am creating an app in android. It will be calling a webservice to fetch some confidential info. I need to verify that the user is authenticated to access the info and the service shouldn't be called from any other source even if the user has all the required credentails to access the service.
What should be used to ensure the security.... REST or SOAP?
For security you should use SSL with client authentification and possibility to revoke cvlient certificates (though not every appplication server will support this). SOAP or REST do not have differences in this context.
In my experience REST is easier to build and has less overhead. I used to build soap services with CXF, which is really easy, but now I use Restlet for the server, which is even easier and quicker. Restlet has integration for Json, Guice, JPA, and all the good stuff. At the Android side, I use a simple rest interface with httpClient, Roboguice and Jackson.

Web Services with Android - why no support for WSDL?

I'm creating a Client/Server application with Android (Client) and WCF (Web Service).
From reading quite alot of discussions, I'm under the impression that there is no tool available to create the web service client in android automatically from a WSDL file.
If this is the situation, what is the easiest approach for creating a communication infrastructure between the client and server, that can be updated easily in the future (plain GET, REST, use SOAP and manually parse responses)
Initially, I wanted to build the web service and have the client created automatically with the provided WSDL file.
Thanks
AFAIK, there is no tool for automatic client generation based on a WSDL.
Android doesn't come with any soap related library.
BTW you can look for ksoap2-Android libraries and see if it's suitable for you.
More infos about using ksoap with Android should be found here

Categories

Resources