Testing connectivity with external services [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm writting an app that connects with external services (Facebook, Twitter, SMS service ...). Some of them charge money to send and receive messages.
How do I simulate those services for my functional testing? (Don't want to use the real thing, but simulate the protocol). Is there a generic tool for that (preferable opensource/free)?

The best solution depends on your product, but generally, if you don't want to actually use those services from your tests you should somehow replicate the response from those services.
For example you can send a test request only once to get a real response from the service and cache the whole response in a format which works for you, then write a simple Mock/Test Wrapper to use this cached response instead of actually communicating with the service.

Related

How to make members chat with each other on an android app [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
am working on an e-commerce app, where buyers and sellers should be able to initiate conversation via an in-app chat interface and negotiate prices and setup meeting points for exchange .
Is there a Chat SDK that can make this easy for me or do i have to build a chat interface for my app from scratch and if so, what's the logic to be used.
A good example is a cryptocurrency platform like paxful.com where sellers and buyers Chat on the platform and carry out transactions or Upwork where freelancer and employer initiate chat on the platform about how the project should be carried out.
Firebase-Chat-Sdk will be helpful for you. You can see this Demo application using Firebase chat.
Other than this if you want to make a chat interface along with your own back end server then you need to create back end API and front end interface from your own.

Java REST server the enterprise way [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have a web app that uses a PHP backend. The server gets requests and sends back data in json. In that sense its a simple REST server.
I want to reimplement the server in Java. What technology/framework should I use. More like, how will an enterprise solution look like?
The question is of poor quality. You can get this by simple google search
Spring (Spring Boot: Latest light weight one of spring)
Struts
Play
SparkJava
Dropwizard
And so on are popular java frameworks... Each has its own advantage. Where spring is the strongest and vast one. I would suggest Spring if its a heavy application. Else you can go for any of them.
See this
All of them are REST supported

Implementing simple socket communication between android device and java server using json objects [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm trying to build an Android application which runs a service.
The service needs to pass certain device information to a custom server and receive some from the server.
Currently I've chosen a simple socket programming and JSON objects to implement this.
Can anyone suggest a suitable library for implementing this communication?
I'm a newbie and foresee a number of complications in implementing this.
The Android Volley Library will make your life easy if you are looking for a library and don't want to get into low level connection handling and they got some sample too on their Page.
Use Smak library its simple and free. Its based on SMTP. You should go through it, consider it for future enhancement

Java API to make a phone call [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Is there any Java API to make a phone call to a mobile(provided that service provider support will be arranged to make that call)?
myProgram(A) --> Java API to make a call like Skype(B) --> PSTN/Mobile network support(c)
Module A will be my Java code and it'll call the B's API which will in turn transfer the call to my service provider.
I'm looking for an API at level B. Also, I'm not using Android. I want to run this code on my server.
I tried and landed upto skype.
For using Skype, Skype should be installed on the machine(which I don't want).
Is there any other solution to do this?
Did you already take a look on Asterisk? There is a Java API.
There is Java Telephone API (JTAPI). You can take a look at that. It have different implementations, like xtapi, gjtapi. I have worked with xtapi.
It allows you to make/receive a call.

Recommendations for a Java library to SMS internationally [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I want to make an application that can send an SMS to person in another country.
I have heard that using an international SMS gateway is the best way to do it, and is cheap (possibly even free).
What is the best library for achieving this?
There are a couple of options:
1) Use a java library such as smslib, which allows direct communication with a mobile phone modem to send or receive messages.
2) Register with one of the SMS gateway providers such as Clickatell or csoft and use their supplied apis. I would start by looking at the HTTP api here and here.
A number of similar previous questions have covered this topic:
Programmatic SMS
How do I implement an SMS service?
Sending SMS

Categories

Resources