I am developing an Android application which consumes some wcf services and visualises the data to the user. I connect with the service using KSOAP2 exchanging buffered messages.
The thing is that some services return large amount of data so the only way for this to be done is via streamedRespose, and then do a lazy load of the data to the user.
My question is how can I receive and use a stream with ksoap2 from a wcf web service.
Related
I have java web services that are consuming by many external clients. web service is available on both HTTP(9090) and HTTPS(443).
My question is that, Can we identify whether the traffic is coming from HTTP(9090) or HTTPS(443) through java code?
I'm building a soap web service using Java for bank payment methods, and I'd like to know how can I use or consume this web service in another web application create with php as a e-commerce web site to use these methods for payment.
There are three method to consuming web service (Soap) using php client, please refer to the below link:
Consuming web service (Soap) using php client
I have a Swing based application which uses a MySQL Database. Currently I am using a direct database connection to connect to the database to fetch/update data. But now I am thinking to create a web service like my android application is using (I am using a PHP web service with JSON for android).
The web service can be consumed by performing a simple GET request. If I paste the URL in a browser, I can see the json decoded echo response.
I have NO experience with Java based web services. Is there any method to use that PHP/JSON based service in Java or to create a very simple web service for my Java application without involving complex libraries/classes?
I have a WCF Web Service that is hosted in a Windows Service. The WCF Web Service is to be used by a Java based frontend, which will make http calls and will receive a JSON response. The problem I am getting is whilst I can get the web service to run, if I type "mydomain.com/myservice/mymethod", I get bad request back.
The web service initially had mex set for service end points, and I tried the same again, but still no luck. I took mex off, but still no luck. All this was being set on the start of the windows service. The web service is only using BasicHttpBinding.
So, my question is this - "How do I can a web service method using basichttpbinding hosted in a window service through the browser in order for this to be used by a non .net client?"
Thanks
WCF uses SOAP as its primary native protocol for communication. If your client does not want to communicate using SOAP you can make your WCF service RESTFUL with ease. Have a look at the following:
WCF REST Services
Brand new services ideally should be implemented in WebAPI rather than RESTFUL WCF. Also have a look at
REST WCF vs. WebAPI
I am currently developing a web application in the Google App Engine using Java and PrimeFaces. I have to access a remote MySQL server, my clients website's database. This website contains all the data which my application requires.
I have searched the web and found out that there is no direct method to access any database with Google app engine.
So I decided to create a PHP script on the web server which will accept SQL queries as HTTP requests on behalf of the MySQL server and send the returned data as a HTTP response. (Encrypted of course!)
How can I send a large result set over HTTP from a PHP web server to Google App Engine?
The problem I am facing here is that, although I can manage to get a HTTP request via GET in PHP. How do I send them back, just flushing wont do, and how do I redirect them back to the Google App Engine's my application specifically.
Thanks!
You can use the UrlFetch api to send requests from appengine to your MySQL server. You'll get a response, and can parse it directly in appengine.
You can set up servlets in your appengine app that your MySQL server can trigger with requests. Your MySQL server can send a request (your php GET function) to yourapp.appspot.com/servletpath, which will start your appengine servlet. Appengine can return a response from there.
If dataset is too big to be transferred in one lump then just split it over several requests by adding a range limit to your query. Also make use of task queue to split this job over several tasks. It is common practice on appengine to split everything what takes too long/too big into several tasks. Divide and conquer.