Win a copy of Securing DevOps this week in the Security forum!

Arun Kumar

Ranch Hand
+ Follow
since Oct 10, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arun Kumar

could you provide the stack trace?
6 years ago
you could follow the same steps mentioned in the link/video (copy your java file content to the new file and create a web service out of it)
6 years ago
You could use a soap UI tool to test your web services or with the following code snippet


6 years ago
where can i find scdjws 5 quiz or sample questions?
6 years ago
Try this in your code
@SOAPBinding
(
style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.WRAPPED
)
6 years ago
one of the ways is by using handlers on client/server side.
handlers would have access to both request and response.
6 years ago
do not think it can be done.
experts please advise
6 years ago
Answers in-line


1. If I want to send data as a String data, how to send that from the function (say sendData()) in my Java class as examples on the internet have shown sending only one String as a response?
Yes, you can send it (String can have values with some delimiter)

2. Is it possible/OK to send/return POJO as a response?
Yes, you can send POJO.

3. If I want to send data as POJO, how client which is a Android application can know which type of data is this and retrieve data from POJO?
You can use XML to send the data

6 years ago
could you provide more details on how the client is generated?

do you see any exceptions

6 years ago
you can use jdbc/hibernate to get the data from database and pass it as POJO/String response via apache-cxf
6 years ago
Vijaykumar, may be posting the complete error would help
6 years ago
Xolan, did you get this to work? I have same issue with Axis2.
6 years ago
You are getting a WARNING. I think you can still continue to create web service.

To resolve the warning, provide more info on com.tcee.myapps.WebService
6 years ago