File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes how to build a soap response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to build a soap response" Watch "how to build a soap response" New topic

how to build a soap response

Helen Ross

Joined: Feb 23, 2012
Posts: 13

Can some one please give me some guidelines on how I would go about creating a SOAP response.

Thanks in advance.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42952
Generally you'd use a SOAP stack like Metro or Axis-2.
Helen Ross

Joined: Feb 23, 2012
Posts: 13
apologies for the delay in getting back to you. thank you for the information.

I am more looking how can I edit the display of values in the response.

I have a web service that sends out the data with firstname , middlename and lastname and it looks something like this

i want my soap response to fed back something like

but all i am getting is

Am I meant to be declaring something somewhere. I am currently returning them as a String Array.
Any help is greatly appreciated. I want to make it easier for the people that are implementing my system if they know what values things map to especially if they are getting "strange" values back. Or is the values I am getting back in my response acceptable?
It is sorta covered in the JavaRanch Style Guide.
subject: how to build a soap response