Questions tagged [java-ws]
87 questions
0
votes
1 answer
Java RS null pointer exception when switching from Intellij to Maven build
I had some code working when building using Intellij. I switched to Maven because I wanted an easily executable jar file, but now the service isn't behaving the same way.
I'm expecting to be able to do
curl -X POST http://localhost:8080/api/values…

FutureShocked
- 779
- 1
- 10
- 26
0
votes
1 answer
Writing and reading to a local file with Java RS
I've written a small web application that allows the client to POST values and then GET the sum of those values, using a glassfish server in intellij. I want the sum to persist across service restarts. Currently, the sum is being tracked with a…

FutureShocked
- 779
- 1
- 10
- 26
0
votes
1 answer
Getting Tiehandler null error and faultcode S:Server Java SOAP Service
I have created a Soap service in spring-boot using the following blog
https://www.javacodegeeks.com/2016/07/writing-consuming-soap-webservice-spring.html
The Endpoint Publish Url
@Override
public void run(String... arg0) throws Exception {
//…

Abhimanyu
- 705
- 7
- 20
0
votes
1 answer
apache CXF WebService annotation is not present on class
I using maven, Apache CXF with spring on weblogic 10.3.6 to expose Soap web service
my web service depended on another web services client that i loaded as maven dependency
while i trying to call exposed web services i faced the below exception…
0
votes
1 answer
How to explicitly add arguments to Java web client app?
I have created a Web Service client in Eclipse (java) from wsdl but when I try to run it by providing user credentials it gives me
HTTP transport error : javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException:
No subject…

magic_turtle
- 1,243
- 3
- 17
- 37
0
votes
1 answer
posting file in form data using JavaWS
In postman I post form data to an API built on play2 framework. Now I want to make this same call in another API build on play2 framework.
ws.url(url).setContentType("application/x-www-form-urlencoded")
.post("key1=value1&key2=value2");
can…

Anirudh
- 15,107
- 2
- 14
- 26
0
votes
1 answer
how to get response from post in javaws playframework 2.5
please help me, i want send json data to some API which use basic auth and i want catch respon from that API. this is my code:
@Inject
WSClient ws;
public Result testWS(){
JsonNode task = Json.newObject()
.put("id", 123236)
…

rizrusn
- 1
- 1
- 6
0
votes
1 answer
Bad header in CXF
I'm working with CXF WebClient, i tried to do a webclient service and make the call with it, i set JSON type in header, but i getting the wild card in the header
I did this for make the webClient
client =…

nicearma
- 750
- 2
- 8
- 21
0
votes
2 answers
How do I implement TLS in my axis2 web service client?
I have an axis2 web service client running on a j2ee server (jboss 4.0.4) that has been working with a web service hosted on tomcat. Recently the tomcat admin turned on TLS, and now my axis2 client does not work. How do I turn on TLS for my axis2…

user_vs
- 1,021
- 3
- 16
- 29
0
votes
1 answer
Create POJO for HTTP POST Request javax.ws
Using javax.ws I need to create a POJO object for POST to a service.
The input that I must POST:
{
"attributes": {
"firstname": "John",
"surname": "Doe",
"birthyear": 1965
}
}
I set this up in a class below and then try to call it…

Lennie
- 1,999
- 4
- 27
- 42
0
votes
1 answer
Find the right response to a soap request (java-ws)
I need to save the soap request and response in the database. Is there a simple way to find which response belongs to which request? Do we have something like sessionID in soap messages?

nolazem
- 45
- 5
0
votes
1 answer
Java REST client - rewrite curl code into Java code
I am writing a simple REST client in Java that sends requests to a server and retrieve some data. The server uses a token for authorization which has to be included in header (according to documentation).
The problem is I am not sure how to rewrite…

Smajl
- 7,555
- 29
- 108
- 179
0
votes
1 answer
java webstart jnlp version issue
I'm trying to launch a javaws jnlp with a bundled version of Java. It was working fine when I only had java 6 installed on the system but breaks when java 6 and 7 are concurrently installed.
One thing I noticed when launching in verbose mode was…

George Kendros
- 792
- 3
- 10
- 23
0
votes
1 answer
Servlet does not have a default constructor.
I have this Servlet which consists its constructor as well but when i am trying to run my application on Weblogic server it gives me an error that "SocialMediaSessionHandler" does not have a default constructor. That application is running well on…

user3548196
- 355
- 1
- 9
- 32
0
votes
1 answer
Why is java ws rs ExceptionMapper is picking non application exceptions also?
I have a web application in which I throw some custom exceptions(application exceptions annotated with @ApplicationException) and there is an exception mapper(provider annotated with @Provider) for each. Recently I forgot to annotate an exception…

Krishna Chaitanya
- 2,533
- 4
- 40
- 74