Changeset 16105
- Timestamp:
- 2008-06-23T12:16:22+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/resources/java/QBRSOAPServer.java.in
r16103 r16105 737 737 Element response = mr.process(message); 738 738 // won't be null, MR always returns some response 739 739 740 // Return it as a String formatted for display 741 String responseMsg = this.converter.getPrettyString(response); 742 // this.converter.getString(response); 743 740 744 // In order to avoid "Content is not allowed in prolog" exception on the 741 745 // web services' client end (problem encountered in GS mailing list), need 742 746 // to make sure no characters (incl spaces) preceed the XML sent back 743 747 // from here. It may also require the <?xml?> tag at the very start. 744 return "<?xml version=\"1.0\" encoding=\"utf-8\"?>"745 + this.converter.getString(response).trim();746 // Return it as a String formatted for display747 // return this.converter.getPrettyString(response);748 748 if(responseMsg.charAt(0) == ' ') { 749 responseMsg = responseMsg.trim(); 750 } 751 752 return "<?xml version=\"1.0\" encoding=\"utf-8\"?>"+responseMsg; 749 753 } 750 754
Note:
See TracChangeset
for help on using the changeset viewer.