Questions tagged [ws-client]
63 questions
0
votes
2 answers
Handling JSON parse errors of third party services in play applications
I'm wondering what's an acceptable approach to parsing JSON from third-party services considering deserialization errors.
For example, this service method:
def signInWithEmailAndPassword(email: String, password: String):…

tgk
- 3,857
- 2
- 27
- 42
0
votes
2 answers
Can not configure AhcWSClient in Akka-http 10.10 to AcceptAnyCertificate
I'd like to get a suggestion how to configure to AhcWSClient in Akka-http 10.10 to AcceptAnyCertificate. It seems either akka-http ignores this setting or overwrites it somewhere. Here it is the config:
val config = new…

Alex Shcherbyna
- 301
- 4
- 9
0
votes
1 answer
play framework call WS inside Scheduled asynchronous tasks
I'am starting using play framework i want to write a job that makes a certain number of ws calls.
I wrote 2 classes as following:
@Singleton
public class AutoGateJob {
@Inject
private ActorSystem actorSystem;
@Inject
private ExecutionContext…

atacraft
- 25
- 1
- 7
0
votes
0 answers
How to use Play Framework WSClient to share the same session to invoke multiple services in Scala?
I tried to get more information about WSClient, but did not get enough information on the web.
Here is the scenario:
I'm invoking 3 different rest services from an application in the following order. Login -> UploadFile -> Submit
I want to share…

Rajashree Gr
- 519
- 1
- 9
- 18
0
votes
1 answer
Scale-play response jsondata to view List
I got json data using ws.
And then we will
want to display it in a list format in view.
I do not know how to do it.
Please help me!
*MyGoal:

starful
- 3
- 2
0
votes
0 answers
Limit WsClient download size
I'm performing an url parsing with WsClient. However, I don't want to parse a remote resource that contain large amount of data (for example, a url that points to a video).
Is there a built-in option to set the remote content limit in WsClient?
Is…

Teimuraz
- 8,795
- 5
- 35
- 62
0
votes
0 answers
Grails- WSClient for SSL
I am using WSClient to connect to a wsdl server.
def proxy = new MyWSClient("https://", this.class.classLoader)
proxy.initialize()
All works as expected with http request.
But when I use SSL(https) I get an error "The document has moved", in the…

user5488223
- 35
- 6
0
votes
1 answer
Need list outside map in play ws api call
In a play-scala application, Im making a WS call:
def getaddresses : ListBuffer[String] = {
var lb = new ListBuffer[String]()
var url = "xyz@xyx.com/someapi"
WS.url(url).get.map {
response =>
var emailsSeq = (response.json \\…

surm
- 167
- 2
- 11
0
votes
0 answers
how to consume a RESTful web service as a jar in JAVAEE
I have a RESTful web service developped using (Spring-Java)
and it is a JAR file
I have created a Java EE web app that must consume this web service (using Eclipse)
running on WildFly9
How can I do to run the web service (JAR file) so that the web…

Hadjer Kh
- 53
- 7
0
votes
0 answers
Unable to de-sereailize WSresponse asJson() from HTTP server in Play with WSClient
I get a WSResponse(form Play framework) response from an HTTP service as
{"authToken":"d4b4bf6d5ff3f35366a75b498c8dbb58"}
which I am trying to read as JSON and print on console using
System.out.println(response.asJson());
I get the response…

user1242321
- 1,578
- 2
- 18
- 30
0
votes
1 answer
WSClient++ generates empty class for element of default type
In my XSD I have something like this
<---CHECK THIS
…

Android
- 3,828
- 9
- 46
- 79
0
votes
1 answer
Webservices - Axis2 ClientStub policy error
Trying to invoke a webservice usign the AXIS genereated client stubs .
When i run my standalone java program am getting
Exception in thread "main" java.lang.NullPointerException
at…

user2232290
- 13
- 1
- 6
0
votes
1 answer
WebServices ant WSDLToJava with HTTPProxy user and password
Using the ant build file am generating the java classes from the WSDL file. As am behind a firewall teh ant task is complaining unknown host exception.
Looking at the docs , i set up the proxy host name and proxy port but not clear on how to
set…

user2232290
- 13
- 1
- 6
0
votes
1 answer
Wso2 ESB - Generated Java Client Error
When I generated a Java Client through the web page of wso2esb for a deployed service "Hello". In addition to the HelloServiceCallBackHandler.java and HelloServiceStub.java I created the class entitled HelloClient.java:
package…

Yanni
- 71
- 8
0
votes
3 answers
Eclipse can not compile SOAP WebServices client generated by Eclipse
I have created a client for my SOAP WebService in Eclipse 4.2.
The project itself (where this client is) was generated by Maven.
Now Eclipse complains about its own generated sources:
"org.apache.axis.constants cannot be resolved to a…

Dmitry
- 161
- 1
- 1
- 6