Changeset 16761 for other-projects
- Timestamp:
- 2008-08-13T14:49:47+12:00 (16 years ago)
- Location:
- other-projects/trunk/gs3-webservices-democlient/src/GS3DemoClient/org/greenstone/gs3services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/trunk/gs3-webservices-democlient/src/GS3DemoClient/org/greenstone/gs3services/AdminSOAPServer.java
r16759 r16761 266 266 267 267 // Return it as a String formatted for display 268 return this.converter.getPrettyString(response); 268 //return this.converter.getPrettyString(response); 269 270 // In order to avoid "Content is not allowed in prolog" exception on the 271 // web services' client end (problem encountered in GS mailing list), need 272 // to make sure no characters (incl spaces) preceed the XML sent back 273 // from here. It may also require the <?xml?> tag at the very start. 274 if(responseMsg.charAt(0) == ' ') { 275 responseMsg = responseMsg.trim(); 276 } 277 278 return "<?xml version=\"1.0\" encoding=\"utf-8\"?>"+responseMsg; 269 279 } 270 280 -
other-projects/trunk/gs3-webservices-democlient/src/GS3DemoClient/org/greenstone/gs3services/QBRSOAPServer.java
r16759 r16761 732 732 // otherwise, MR always returns some response 733 733 734 // Return it as a String formatted for display 735 return this.converter.getPrettyString(response); 734 // In order to avoid "Content is not allowed in prolog" exception on the 735 // web services' client end (problem encountered in GS mailing list), need 736 // to make sure no characters (incl spaces) preceed the XML sent back 737 // from here. It may also require the <?xml?> tag at the very start. 738 if(responseMsg.charAt(0) == ' ') { 739 responseMsg = responseMsg.trim(); 740 } 741 742 return "<?xml version=\"1.0\" encoding=\"utf-8\"?>"+responseMsg; 743 736 744 } 737 745
Note:
See TracChangeset
for help on using the changeset viewer.