I want to make a CRUD website using a package from a web service. How can I get JSON format for return response? This code is to select a member using member id
try {
WsOtherLocator locator = new WsOtherLocator();
WsOtherSoap soapws = locator.getWsOtherSoap();
Browse_1_1ResponseBrowse_1_1Result result = soapws.browse_1("0040041100002","admin", "admin", "admin", "PKG_ADMIN.BRW_ADMIN_ID");
System.out.print(result);
}
catch (Exception ex){
ex.printStackTrace();
}
Those are the coding for calling browse_1
method in wsdl file, with one parameter which is member id, calling package pgk_admin
and package method brw_admin_id
. But after I ran it I got
org.tempuri.wynaws.wsother.Browse_1_1ResponseBrowse_1_1Result@41dd0e27
as a result of my code, I want it to be in JSON format, how I can change it?