1 5 package org.exoplatform.services.communication.sms.mock; 6 7 8 12 public class MockResponse { 13 14 public static String RESPONSE_FAIL = "<?xml version=\"1.0\"?>" + 15 "<SESSION>"+ 16 "<LOGON>FAIL</LOGON>"+ 17 "<REASON>Username/password is incorrect.</REASON>"+ 18 "</SESSION>"; 19 20 21 public static String RESPONSE = "<?xml version=\"1.0\"?>" + 22 "<SESSION>" + 23 "<LOGON>OK</LOGON>" + 24 "<REASON></REASON>" + 25 "<MSGLST>" + 26 "<MSG>" + 27 "<ID>1</ID>" + 28 "<STATUS>OK</STATUS>" + 29 "<INFO></INFO>" + 30 "</MSG>" + 31 "<MSG>" + 32 "<ID>2</ID>" + 33 "<STATUS>OK</STATUS>" + 34 "<INFO></INFO>" + 35 "</MSG>" + 36 "<MSG>" + 37 "<ID>3</ID>" + 38 "<STATUS>FAIL</STATUS>" + 39 "<INFO>Receiver address (2002) must be at least 9 digits including country-code.</INFO>" + 40 "</MSG>" + 41 "</MSGLST>" + 42 "</SESSION>\n"; 43 44 } 45 | Popular Tags |