I can successfully send a SOAP message over a java client and get the response. Now let's say I need to receive a JSON response, what would be the approach?
My client looks like this:
Code:
SOAPConnection soapConnection = SOAPConnectionFactory.newInstance().createConnection();
MessageFactory messageFactory = MessageFactory.newInstance();
// Create a message from the message factory.
SOAPMessage soapMessage = messageFactory.createMessage();
//build soap message and add format attribute and set it to JS in the message
soapMessage.saveChanges();
URLEndpoint endpoint = new URLEndpoint("https://zimbra-box:7071/service/admin/soap");
SOAPMessage reply = soapConnection.call(soapMessage, endpoint);
//Modify this part to return a JSON string Any hints or suggestions?