ThinkGeo.com    |     Documentation    |     Premium Support

WMS open errow

Hi,


I use mapserver as my WMS server, run my application on my PC, and found something strange:


If my PC can access the internet, my application can open the WMS layers successfully.but if I remove the privilege of my PC to access internet, the application will throw exception which means unable to open the remote server when open the layer, i track the code and find that the application want to access "66.244.86.50:80  ".  but I never set it to access that IP, I guess something limit because of my evulation version. Is that true?


BTW, if I use QGIS to access the WMS server, it work well at both situation.


Thank you for your help.


Senlin


 



Senlin, 
  
 Thanks for your interests in MapSuite product. 
  
 This is not a limit of evaluation edition; this should be exactly same with Full edition.  
  
 If I am not making a mistake, what you are trying to do is set up a WMS server and a client application consuming the server in the same local machine, and your problem is it will not work if the network is off. Right? If so, I guess the problem is probably hidden the setup of the server side. Could you send us your code for the server or at least send us the GetCapabilitiesResponse.asp file attached in the server? 
  
 Besides, could you verify the IP you mentioned is the IP of your local machine? 
  
 Any more information would be appreciated. 
  
 Thanks. 
  
 Yale 
   


Yale, thank you for your quick reponse. 
 “what you are trying to do is set up a WMS server and a client application consuming the server in the same local machine, and your problem is it will not work if the network is off. " 
 >a little same but not all. 
 I use Mapserver(the open source WMS server) as remote server within our intranet, the client app is on another PC, our network limit the privilege to access outside website(internet) by IP. If I give my PC privilege to access outside websit, my app works, or it will throw exception i descripted.  but if I use QGIS on my PC as client to access the server, it work well even my PC have no privilege to access outside website. 
  
 I check the IP"66.244.86.50”, it’s not my local machine, but an IP related OGC. you can search it by google. 
  
 Senlin

Senlin, 
  
 It is very strange, we have tested against the server and client on the same local machine, it works fine. 
  
 Could you let me know which version are you trying to use now? 
  
 Thanks. 
  
 Yale 


Hi, Yale, 
 This problem occurs in both  RC2 and the previousr one. 
 Do u test it in the network which can not access internet? 
  
 Senlin

Senlin, 
  
   How are you disabling your internet?  Can you send us the step by step instructions on how you are doing this.  Also can you send a small sample of both sides of the application, I mean specifically a client and small sample server?  The issue we are having now is that you have a special configuration that we have no idea how to re-create.  We need a concrete way to test this to move forward.  Thanks for all the information you can provide. 
  
 David

Hi, David, thank u. 
 Well, we use domain to control if an PC can access internet, it’s a long story and I am not very familar with it. 
 If you want to recreate it, you can put you server app and client app on two PC within LAN which can not access internet.  
 Or place both app on one PC which you have pluged out the internet cable. 
 I think it will occur. 
  
 Senlin

Senlin, 
  
 We did more tests and I think it should work properly when setting the GetCapability.asp file correctly, also could you verify that you can ping your server from the client side without any problem when the network is disabled? We found that if the firewall will block the communications which will cause the exception. 
  
 Any more questions please feel free to let me know. 
  
 Thanks. 
  
 Yale 


Yale, 
 Thank you for your time. 
 But I tested with QGIS and ARCGIS as client using the same server application. They works well. 
  
 Senlin

Senlin, 



Could you send us your server side GetCapability.asp file that would be helpful? We cannot recreate your problem in our test environment. 



Any more information would be appreciated.



Thanks. 



Yale 

 



Yale, 
 we use Mapserver(it’s an open soure WMS server) as the server, we seem never change  GetCapability.asp, and we can not find it either. 
  
 Senlin

Senlin, 
  
 We finally recreated your problem after setting up a MapServer locally. The problem is basically because the XML passed from the server need to connect to some website (open-source one).  
  
 I have added this issue to our work tracking system, please respond back to keep this thread alive so we can continue to work on this. 
  
 Thanks for your patience. 
  
 Yale 


Yale, thank you for your time. 
  
 Is it a defect? or we can resolve it by setuping the mapserver? 
  
 Senlin

Senlin,


You are welcome. That should be considered as a defect in our product.
 
You can get the latest build from following link or contact our support for its fix.
gis.thinkgeo.com/Products/MapSuiteFreeTrialDownloads/tabid/152/Default.aspx
 
 
Any more questions please feel free to let me know.
 
Thanks.
 
Yale

Hi, Yale, 
 the new release fixed it. 
 Thank you very much! 
  
 Senlin

Senlin, 
  
 Glad to hear it!  Thanks for letting us know your status! 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale