小编use*_*923的帖子

在服务器端使用url hash获取当前页面的完整URL

我无法得到我正在处理的页面的完整网址.这是我想要获取的网址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)

c# asp.net url

9
推荐指数
1
解决办法
2万
查看次数

ECONNREFUSED(连接被拒绝)android连接到webservice

尝试使用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)

java android web-services econnrefused

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

asp.net ×1

c# ×1

econnrefused ×1

java ×1

url ×1

web-services ×1