Click here to Skip to main content
15,892,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear all,

I am having problem with my android webservice call after my company changed domain. Previously, I have the webservice like "http://dev.mycompany.com/services/operationservice.asmx" which was hosted on IIS on our own server with fixed IP address (Domain is on Namecheap). Now, company removed the fixed IP and decided to use No-IP. So, my actual webservice url became "http://dev-mycompany.ddns.net/services/operationservice.asmx". Then, I redirect URL from namecheap like "dev.mycompany.com" to "dev-mycompany.ddns.net". Also added additional binding "dev-mycompany.ddns.net" in IIS.

It works fine on browser. When I browse the original URL, it redirect me to new NO-IP url. I can also see the web service content through browser. But through my android app, it is not able to work with original URL. It works if I change webservice url to No-IP. I have forwarded all required ports through my router. Since I can access through browser, port forwarding should not be the problem, I think.

One more thing, I can use both Old and New URL if my app is in the same network with the server. Is that because of Local DNS is working properly while external DNS are not?

So, what should I do instead of changing the URL in my app? I don't want to change URL because we may use another url later. Please advice. Below is the line where my app cannot connect to the server.

HttpTransportSE androidHttpTransport = new HttpTransportSE("http://dev.mycompany.com/services/operationservice.asmx");
androidHttpTransport.call("http://tempuri.org" + "UserLogin", envelope);

Please advise.
Thanks in advance.
Thant Sin Lin

What I have tried:

- URL Redirect from NameCheap to No-IP
- Required Ports Forwarded on Router
- Setup Local DNS
- Added Additional Binding on IIS
- Allow Anonymous Access to the site on IIS
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900