aspose file tools*
The moose likes Web Services and the fly likes Not able to get wsdl file from remote server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Not able to get wsdl file from remote server" Watch "Not able to get wsdl file from remote server" New topic
Author

Not able to get wsdl file from remote server

mishug Goyal
Ranch Hand

Joined: Aug 19, 2008
Posts: 57
Hi All,

I created and deployed a web services on my local server and able to get that wsdl file by calling URL http://localhost:8084/CPService?wsdl.
But the problem is when i tried to get this file via ftp from remote server it returns me time out error. However i am able to GET the default file if i issue command like "GET http://localhost:8084/CPService". So please let me know if i am able to get later file than why its giving time out error if tried to fetch "http://localhost:8084/CPService?wsdl".

Please advice.

Thanks.


SCJP 1.5, SCDJWS 5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42639
    
  65
It's an HTTP resource - why do you think you can get to it via FTP? It's very likely that it's not a file anyway.


Ping & DNS - my free Android networking tools app
mishug Goyal
Ranch Hand

Joined: Aug 19, 2008
Posts: 57
Hi Ulf,

means we can not get this ?wsdl file via ftp as like any other http resource. So, how can i confirm to my client that my web service is up and running. Basically our client is a telecom operator and they provides us "Delivery Notification" and we need to give them some wsdl url to which they can call and hence we can get that notification. According to them their system is not able to recall our web service. Do not know what could be the problem. Do we require any type of configuration at either side?

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42639
    
  65
Is the machine where the service runs accessible from wherever the client is trying to access it? "localhost" generally indicates your own machine, which in all likelihood is not accessible from the outside (which is just as well, since it's bound to be down at random times).

Which URL did you give them? Can YOU access that URL from outside of your company network?
mishug Goyal
Ranch Hand

Joined: Aug 19, 2008
Posts: 57
Yes, client is able to access that service and application is running on production server at our end. I am also able to call that service url from outside of my company network. There is no restriction at firewall also.
I have given them this URL- http://172.27.105.79:80/AstroPTCPA/PTInterface?wsdl

One more thing I have built this application using NetBeans 5.5 IDE and deployed .war file created by it on my production server. We have tomcat server running over there.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42639
    
  65
Yes, client is able to access that service and application is running on production server at our end.

That being the case, I don't understand what you mean by "how can i confirm to my client that my web service is up and running" and "According to them their system is not able to recall our web service." If the client is able to access the service, then that confirms that it is up and running, no?
mishug Goyal
Ranch Hand

Joined: Aug 19, 2008
Posts: 57
Oops, sorry i wanted to say that client is able to access the machine on which service is running. And not able to access that service URL. sincere apologies
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42639
    
  65
i wanted to say that client is able to access the machine on which service is running. And not able to access that service URL.

What does that mean, exactly? They can get to http://172.27.105.79:80/ but not to http://172.27.105.79:80/AstroPTCPA/PTInterface?wsdl ? What error are they experiencing? Can you see their accesses in the log files, both the successful and the unsuccessful ones?

I can't even do an nslookup on 172.27.105.79, by the way; is that a publicly accessible IP address?
mishug Goyal
Ranch Hand

Joined: Aug 19, 2008
Posts: 57
Yes they can get to http://172.27.105.79:80/ but not to http://172.27.105.79:80/AstroPTCPA/PTInterface?wsdl .

Client is doing following to check wsdl file-
telnet 172.27.105.79 80
Trying...
Connected to 172.27.105.79.
Escape character is '^]'.
GET http://172.27.105.79:80/AstroPTCPA/PTInterface?wsdl

Connection closed by foreign host.

No access log created. Public IP is 202.186.147.78
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42639
    
  65
The folks apparently don't know how to access an HTTP server through Telnet. If I recall correctly, the line to enter would be something like

GET /AstroPTCPA/PTInterface?wsdl HTTP/1.1

I'm sure that googling for "http telnet" or some such will find the proper syntax to use.
mishug Goyal
Ranch Hand

Joined: Aug 19, 2008
Posts: 57
Ulf Dittmer wrote:The folks apparently don't know how to access an HTTP server through Telnet.


No, its correct, GET http://172.27.105.79:80/AstroPTCPA/PTInterface?wsdl
I tried this and got the file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to get wsdl file from remote server