Questions tagged [ws-client]

63 questions
2
votes
1 answer

UnmarshallingFailureException, unexpected element (uri:"http://schemas.xmlsoap.org/soap/envelope/", local:"Fault")

i am trying write a webservice-client for my local webservice. I am debugging (at server) everything is fine and response message is true (my object). And also i try using SOAP UI there was no problem. Here is my appcontext.xml
ibrahimKiraz
  • 401
  • 5
  • 15
2
votes
1 answer

Groovy: WSClient throwing JAXBException

I am trying to call a simple public Web Service with WSClient in a Groovy script, but it explodes when initializing ... TestService.groovy: @Grab(group='org.codehaus.groovy.modules', module='groovyws', version='0.5.2') import…
pinei
  • 2,233
  • 1
  • 24
  • 25
1
vote
0 answers

grails wsclient "file not found" consuming a .net web service

first of all, I want to apologize if my question is stupid, but I'm really new in consuming .net web service in grails. There's a SOAP WS (wich I can't manipulate in any way) that I consume whis way: def wsdlURL =…
Johnny C.
  • 368
  • 1
  • 5
  • 20
1
vote
1 answer

How to convert response body in Json using play framework

override def accessToken(): ServiceCall[RequestTokenLogIn, Done] = { request=> val a=request.oauth_token.get val b=request.oauth_verifier.get val url=s"https://api.twitter.com/oauth/access_token?oauth_token=$a&oauth_verifier=$b" …
md samual
  • 305
  • 3
  • 15
1
vote
1 answer

How to make a large number of GET requests with StandaloneAhcWSClient

How to make a very large number of simple get requests with StandaloneAhcWSClient in Scala? (it's the default http client bundled with Play2 framework). In my case, I got ~100K GET requests to make to an external API. Future.traverse() does not cut…
Vasily802
  • 1,703
  • 2
  • 18
  • 35
1
vote
1 answer

How to inject WSClient in a Play framework project when using Maven?

When creating a Play framework project and using WSClient to make REST call, the official Play framework documentation suggests to add ws to the build.sbt to manage dependencies. If using Maven the ws dependency is included in:
Jac
  • 531
  • 1
  • 4
  • 19
1
vote
0 answers

How to upload multiple files using play framework 2.6 WsClient?

This is the code for uploading Single file in as Play Documentation. Any Idea for Multiple Files? ws.url(url) .post(Source(FilePart("hello", "hello.txt", Option("text/plain"), FileIO.fromPath(tmpFile.toPath)) :: DataPart("key", "value") :: List()))
1
vote
1 answer

gzip request from Play Framework's WSClient

I'm trying to call a webservice using the WSClient API from Play Framework. The main issue is that I want to transfer huge JSON payloads (more than 2MB) without exceeding the maximal payload size. To do so, I would like to compress the request…
1
vote
1 answer

java.lang.illegalstateexception: closed by using WSRequest : Play Java

I have created a WSClient according to the Play Documentation. And using that client object I use WSRequest to get my response. But all I'm getting is a null body and 0 as the server response code. And when I debug to where i request get() it says…
Akila Randil
  • 205
  • 1
  • 10
1
vote
1 answer

Play Scala Call Controller Method From Another Method

I have been using the Play Framework for Scala and Have Run Into Some Trouble. I am trying to Call Another Controller Method From A Controller Method. At First I tried Using The WSRequest/Response To Call the Other Controller Method's Route however…
1
vote
0 answers

WSClient++ get Server Error Messege

I have a problem to try connect webServis with WSClient++. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final DoveMan d = new…
Mustafa Erturk
  • 73
  • 3
  • 12
1
vote
1 answer

Sonar - java.lang.NoClassDefFoundError: org/sonar/wsclient/services/Query

I am trying to use the sonar-ws-client plugin. but when i run mvn sonar:sonar getting the error [FATAL ERROR] org.sonar.maven.SonarMojo#execute() caused a linkage error (java.l ang.NoClassDefFoundError) and may be out-of-date. Check the…
ѕтƒ
  • 3,547
  • 10
  • 47
  • 78
1
vote
2 answers

Web Service client generated by wsdl not working with Deployed web service

I have generated a WSDL from a java class using axis2 java2wsdl utility as follows; java2wsdl -o C:\temp -cn com.temenos.webservices.customer.CustomerServiceWS Then I have deployed the same web service within an Application Server (say jBoss) in…
SJunejo
  • 1,316
  • 4
  • 23
  • 39
1
vote
1 answer

Grails handling network connection stall

I am using Grails Ws-Client Plugin but my application waits for the SOAP response back from the server from which i am consuming web service and my application waits from this code def proxy = webService.getClient(wsdlUrl) This mostly occours when…
Shashank.gupta40
  • 915
  • 1
  • 8
  • 26
0
votes
2 answers

Class 'WSClient' not found PHP

I'm using wsf/php/2.1.0 using wamp 2.2, I've loaded and enabled wsf.dll and php_xsl.dll and configured my php.ini but still I 'm getting this fatal error. Fatal error: Class 'WSClient' not found modification in php.ini and…
MZH
  • 1,414
  • 4
  • 29
  • 57