Questions tagged [ws-client]

63 questions
0
votes
1 answer

Specify timeout in wsclient

What is the proper way for specifying the timeout in wsclient. I tried in my griffon controller this : withWs([wsdl: model.wsdl, timeout:1800000]) but it does not seem to work. Any hints? Problem solved by doing this : withWs(wsdl: model.wsdl){ …
Alexandre Blanquart
  • 397
  • 1
  • 3
  • 13
0
votes
0 answers

How to upload upload image/file to akamai server using play framework

This is the code in scala how can we do a similar thing in java using the play framework reference: -> Play WS - post multipart/form-data from scala - Bad Request import akka.stream.scaladsl.FileIO import akka.stream.scaladsl.Source import…
suv1sh
  • 43
  • 1
  • 10
0
votes
1 answer

SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))

def ws_run(): global ws ws = websocket.WebSocketApp(url,on_open=on_open,on_message=on_message,on_error=on_error,on_close=on_close) ws.run_forever()
0
votes
2 answers

Groovy: How to change endpoint using ws-client?

I'm using ws-client in a Grails Project to call an web service. It's ok, but it's reading endpoint from WSDL. How to change endpoint in runtime? def proxy = new WSClient(wsdlURL,…
Topera
  • 12,223
  • 15
  • 67
  • 104
0
votes
1 answer

Permission denied to write file using java

I have created a REST API that is getting called asynchronously (.asyncApply), and that API is trying to write a file but getting permission denied as I have changed all types of permissions are in place in the respective directory. I have…
0
votes
1 answer

Grails: I can't use ws-client plugin

I'm using grails 1.3.6 and installed ws-client plugin. I getting error in the following hello world: def wsdlURL = "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL" def proxy = webService.getClient(wsdlURL) def result =…
Topera
  • 12,223
  • 15
  • 67
  • 104
0
votes
1 answer

Play WS client within a module

I am trying to use the WS client with play 2.7.4 inside a module and I am running into issues. I would prefer to not create the client myself as described here but rather dependency inject it with guice. This doesn't seem to work, my instance is…
kopelitsa
  • 3,723
  • 3
  • 20
  • 24
0
votes
2 answers

Need help creating a dummy WSResponse object (Scala + Play)

I have a code sample as below where I am using WSClient to make API calls. I am using 2.5.x and Scala 2.11.11 (using WSClient provided by Play not stand-alone). In an exception condition I need to return WSResponse object to the caller of this…
NKM
  • 602
  • 1
  • 6
  • 18
0
votes
2 answers

Does Guice DI create a new WSClient instance everytime

I have a Client class that makes an API call to an external vendor. In my controller, I inject the client as follows. @Singleton class AdsController @Inject()(client: MyClient)( implicit ec: ExecutionContext ) extends InjectedController { def…
Deepak
  • 341
  • 1
  • 10
0
votes
1 answer

How to stream 301 redirect from ws client in play framework

I am a writing a middleware program, where it internally calls third party api. The third party api responds with 301 including some headers. I have respond with response i got to front end. Is there any piece of code sample which will do this?
ACB
  • 11
  • 3
0
votes
1 answer

Play framework WSClient testing

I have a service class in my code, for example, UserService. It has a WSClient member which makes calls to a web service. I would like to write test cases for the UserService methods. I did some research on testing WSClient but did not find any use…
BPetike
  • 83
  • 13
0
votes
2 answers

How to create WSClient in Scala ?

Hello I'm writing scala code to pull the data from API. Data is paginated, so I'm pulling a data sequentially. Now, I'm looking a solution to pulling multiple page parallel and stuck to create WSClient programatically instead of Inject. Anyone have…
user670097
  • 159
  • 1
  • 3
  • 11
0
votes
0 answers

Connecting to websocket channels after successful connection

I have been working on a websocket client application. I am currently using the ws client library, because it is easy to add some headers (I need this for authentication purposes). I have made a successful connection to the server, but now I need…
D.Bronder
  • 156
  • 1
  • 13
0
votes
0 answers

Netbeans JAX-WS Client [ERROR] A class/interface with the same name

My WSDL URL is URLhttp://192.168.100.197:4443/PaymentServiceServerWS.asmx?wsdl. I want to generate java client in netbeans from the mentioned wsdl. But it gives a class/interface with the same name is already in use, use a class customization to…
user8938126
0
votes
0 answers

How to turn off WSTestClient logging client name when running tests?

When I run tests in Play 2.6.x that are using the WsTestClient like: WsTestClient.withClient { client => ... I see in the logs: [info] p.a.t.WsTestClient$SingletonWSClient - createNewClient: name = ws-test-client-1 Which I believe is coming from…
tgk
  • 3,857
  • 2
  • 27
  • 42