Questions tagged [java-ws]

87 questions
1
vote
2 answers

Play Framework REST API call

I'm new to Play framework, and trying to use JavaWS to make a call to a RESTful API. I've been struggling a lot with it. This is what I have so far: This code is based on the JavaWS documentation (which I found quite confusing), and is meant to make…
1
vote
1 answer

Can a query parameter name be variable? Like: @QueryParam("//anything")

I have a resource class and within it a @GET that takes one query param called operation (this should be static) and then I want to take a variable number of other query params that can be named anything. My first thought was to do something like…
SuperCow
  • 1,523
  • 7
  • 20
  • 32
1
vote
0 answers

php webservice and jax-ws client ServerSOAPFaultException

My nusopa php service located on link: http://localhost/SOAP/soapWebService.php?wsdl
Wolfgang
  • 109
  • 1
  • 10
1
vote
0 answers

Testing RESTFUL service with RestEasy - cant convert to object

The code below works, so I know I'm getting the right response text: {"id":2,"name":"Liverpool"} However I want to put the response into a Location class. Thats when I get the problem. If i uncomment this line List location =…
Storms786
  • 416
  • 1
  • 7
  • 20
1
vote
1 answer

Need to create javax.ws.rs.client.Client for each webservcie call

Create a javax.ws.rs-ap.jar client and send the request to the server: javax.ws.rs.client.Client client = ClientBuilder.newBuilder().build(); I have writtten the above code to call multiple api(get user by id, get all users and deleteUser). My…
VIKASH SINHA
  • 250
  • 3
  • 17
1
vote
0 answers

jax: instead of ser: - JavaWS

Request from my Web Service looked like this: Now, it looks like…
Goldbones
  • 1,407
  • 3
  • 21
  • 55
1
vote
1 answer

Java: PUT request without id getting submitted as POST

I have create and update api calls for same entities. If user send a PUT request with no object id, controller accepts it as a POST request and creates a new object. How can I prevent…
Himanshu Yadav
  • 13,315
  • 46
  • 162
  • 291
1
vote
1 answer

SoapExtension not logging request and response

I consume Java Web Service with my c# console client. I need to get request and response. How can I do this with SoapExtension. I realize TraceExtension Class like this: using System; using System.IO; using System.Web.Services.Protocols; // Define…
Javid
  • 25
  • 1
  • 5
1
vote
2 answers

what is a singleton class? Can it help me running single instance of a class for two related services?

This might sound complex but i will ask anyway: I am running a service A which uses class X. I want to start another service B which uses classes A besides new classes. Service A is already running. I do a hot deployment of Service B. Here is the…
AJ.
  • 2,561
  • 9
  • 46
  • 81
1
vote
4 answers

Webservice - Operation has timed out

The project that I'm working on is the following: I've got a Java webservice that encrypts data (Des, 3Des). The data is send from a C# application. With I want to encrypt/decrypt a file of the size 1MB. I'll get an exception. The file are put in a…
Martijn Haex
  • 137
  • 1
  • 11
1
vote
3 answers

Java Web Start doesn't pass arguments to application when running in browser

I'm having trouble passing arguments to a Java application started using Java Web Start. My system is Ubuntu Linux 12.04.1 Precise, but the same also happens in Windows 7. Both use Oracle Java version 1.7.0_09. Edit: I'm investigating if a Web Start…
stereolegged
  • 83
  • 3
  • 7
1
vote
1 answer

How can I use Java WebService to push data to client

I have some CMS. and have a requirement that these CMS can send article together whenever needed. I think I can use WebService to solve my problem by do following: CMS-01 invoke WS by sending data(article and received CMS(s)) when it want to send…
Chan Tee
1
vote
0 answers

Java client to WCF web service - first element of 2d arrray parameter is dropped

Update I have posted soap generated by java WCF clients. The WCF one works fine. Have also posted the schema of the message for the method from the WSDL that was used to generate both clients. One potential isuse with the java client is that it…
Shane
  • 2,271
  • 3
  • 27
  • 55
0
votes
0 answers

XML Exception with Java-WS

this is the code for java webservices and keep get the same error with soapUI and the same error for the xml, I'm working with jdk 8 I have issue with the endpoint of the java web services as it's show in the code but it's keep giving me this…
0
votes
1 answer

Java certificates shown in javaws.exe don't match keytool -list

Environment: Windows 10pro 64bits, Java 1.8.0_261 (32bits) Certificates imported with javaws dialog are not shown with keytool command, and viceversa. Case 1) javaws.exe -viewer --> Security --> Manage certificates No certificates at all are…
Diego
  • 31
  • 4