我无法得到我正在处理的页面的完整网址.这是我想要获取的网址http://localhost:54570/Shipment/ShipmentDetails.aspx?HawbBLNo=NEC00000004#BFT结果仅适用http://local/Shipment/ShipmentDetails.aspx?HawbBLNo=NEC00000004于此代码
protected void btnSave_Click(object sender, EventArgs e)
{
url = HttpContext.Current.Request.Url.AbsoluteUri;
UpdateDetails();
Response.Redirect(url);
}
Run Code Online (Sandbox Code Playgroud) 尝试使用soapui连接到webservice时,我收到连接被拒绝错误.当我尝试在URL中使用127.0.0.1时,错误是ECONNREFUSED,但是当我尝试10.0.2.2时,错误是连接超时.请有人帮忙.谢谢.这是我在主要活动上的代码.
private static final String SOAP_ACTION = "http://tempuri.org/GetSMSOutgoing";
private static final String INSERT_INCOMING_SMS = "SaveSMSIncoming";
private static final String GET_OUTGOING_SMS = "GetSMSOutgoing";
private static final String NAMESPACE = "http://tempuri.org/";
private static final String URL = "http://127.0.0.1:62499/WSsmsandroid.asmx?wsdl";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
try {
getOutgoingSMS();
} catch (Exception e) {
Log.d("NOT CONNECTED: IOException", "NOT CONNECTED");
e.printStackTrace();
}
}
});
thread.start();
}
public String getOutgoingSMS() {
String …Run Code Online (Sandbox Code Playgroud)