package cndr;import com.meterware.httpunit.*;
import java.io.IOException;
import java.net.MalformedURLException;
import org.xml.sax.SAXException;import share.sys.Logs;public class Sms{
public boolean sendSms(String msg,String mobile) throws IOException,MalformedURLException,SAXException{
try{
WebConversation wc = new WebConversation();
WebResponse wr = wc.getResponse("http://210.51.188.143:8088/51sms/Delsms.action?customernum=81&mycontent=" + msg + "&password=123456&mobile=" + mobile);
String result=wr.getText();
Logs.logout(result);
Logs.logout("短信:http://210.51.188.143:8088/51sms/Delsms.action?customernum=81&mycontent=" + msg + "&password=123456&mobile=" + mobile);
return true;
}catch(Exception e){
return false;
}
}
}总是提示import com.meterware.httpunit.*;有错
请各位帮帮我啊!
import java.io.IOException;
import java.net.MalformedURLException;
import org.xml.sax.SAXException;import share.sys.Logs;public class Sms{
public boolean sendSms(String msg,String mobile) throws IOException,MalformedURLException,SAXException{
try{
WebConversation wc = new WebConversation();
WebResponse wr = wc.getResponse("http://210.51.188.143:8088/51sms/Delsms.action?customernum=81&mycontent=" + msg + "&password=123456&mobile=" + mobile);
String result=wr.getText();
Logs.logout(result);
Logs.logout("短信:http://210.51.188.143:8088/51sms/Delsms.action?customernum=81&mycontent=" + msg + "&password=123456&mobile=" + mobile);
return true;
}catch(Exception e){
return false;
}
}
}总是提示import com.meterware.httpunit.*;有错
请各位帮帮我啊!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货