Forum Discussion
Hi,
It sounds as though your SoapUI cannot see the internet. I am guessing this because the starter page is effectively a browser that loads some web based content and when a WSDL wont load due to problems resolving network/web based dependencies, this often means that SoapUI cannot see the internet.
Common causes for this are:
- Needing to configure proxy settings (in SoapUI preferences > Proxy Settings).
- Needing to allow SoapUI access in firewall settings.
Whilst the internet isn;t strictly required to use SoapUI for testing local web services etc, it would affect the two things you listed.
Cheers,
Rupert
Rupert,
Thanks for your reply. I am going to see what I can do to apply your suggestions.
It may be of interest that I have installed SoapUI on an Apache server -- which is my development machine for http://localhost development. Don't know if this is significant.
Also - I think that I posted the additional info about the error log while you were also responding. So this might also be significant. Sorry for not posting that info before you responded.
Thanks,
tjay
- rupert_anderson10 years agoValued Contributor
Hi tjay,
Ok, no problem.
I have been able to build a SOAP project based on http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl e.g.
So that WSDL is fine. I am using SOapUI 5.2 Beta.
Have you tried making requests from that box from outside of SoapUI e.g.
curl http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl
Assuming you have curl (or similar basic shell based means of making an http request), if that doesn't work then SoapUI wont be able to see the WSDL either.
Cheers,
Rupert
- tjay10 years agoOccasional Contributor
Thanks for responses Rupert.
I have not tried curl. I do have php-soap enabled.
I have been able to open url www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl with no problems on the browser.
I have been a PHP programmer for years. I am trying to learn SOAP and understand all its elements. I have a main source for wsdl file for a major project, and am able to communicate with it through PHP's SoapClient - but don't understand SOAP well enough for smooth communications yet. I was hoping SoapUI would be the program that would speed up my learning process. That may help you know where I am coming from.
I assume you read the error log that I added to my first post while you were sending your first respons - and if so, did that tell you anything.
Thanks - tjay
- rupert_anderson10 years agoValued Contributor
Hi tjay,
Ok, so from that Apache box php SOAP is able to make a SOAP/HTTP request successfully?
Whilst SoapUI wont necessarily teach you SOAP funcdamentals, which can be rather confusing, especaially hand crafting WSDLs etc, SoapUI is definately an excellent tool for testing SOAP web services once you get going.
Sorry, I didn't remark on the stacktrace, as it appears to be the standard error that can occur even if you mispel the WSDL URL e.g. I made a typo and got:
Thu Aug 13 17:47:00 BST 2015:DEBUG:Loading WSDL: http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl]
Thu Aug 13 17:47:00 BST 2015:DEBUG:Returning baseInputSource [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl]]
Thu Aug 13 17:47:00 BST 2015:ERROR:An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details
Thu Aug 13 17:47:35 BST 2015:DEBUG:Connection closeddue to the trailing ]
Where you say that the wsdl opens in a broswer I am assuming this too is from the Apache box, meaning that browsers and PHP SOAP have no problem on the box.
Do you have a firewall or proxy running on that box that might prevent SoapUI from accessing the internet over port 80?
Just incase it helps, here is the output when SoapUI imports the WSDL (note the multiple imports from withim the WSDL):
Thu Aug 13 17:48:10 BST 2015:DEBUG:Getting wsdl component from [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl]
Thu Aug 13 17:48:10 BST 2015:DEBUG:Attempt 1 to execute request
Thu Aug 13 17:48:10 BST 2015:DEBUG:Sending request: GET /wcf/StockQuoteService.svc?wsdl HTTP/1.1
Thu Aug 13 17:48:10 BST 2015:DEBUG:Receiving response: HTTP/1.1 200 OK
Thu Aug 13 17:48:10 BST 2015:DEBUG:Connection can be kept alive indefinitely
Thu Aug 13 17:48:11 BST 2015:DEBUG:Getting wsdl component from [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd0]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Stale connection check
Thu Aug 13 17:48:11 BST 2015:DEBUG:Attempt 1 to execute request
Thu Aug 13 17:48:11 BST 2015:DEBUG:Sending request: GET /wcf/StockQuoteService.svc?xsd=xsd0 HTTP/1.1
Thu Aug 13 17:48:11 BST 2015:DEBUG:Receiving response: HTTP/1.1 200 OK
Thu Aug 13 17:48:11 BST 2015:DEBUG:Connection can be kept alive indefinitely
Thu Aug 13 17:48:11 BST 2015:DEBUG:Getting wsdl component from [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd2]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Stale connection check
Thu Aug 13 17:48:11 BST 2015:DEBUG:Attempt 1 to execute request
Thu Aug 13 17:48:11 BST 2015:DEBUG:Sending request: GET /wcf/StockQuoteService.svc?xsd=xsd2 HTTP/1.1
Thu Aug 13 17:48:11 BST 2015:DEBUG:Receiving response: HTTP/1.1 200 OK
Thu Aug 13 17:48:11 BST 2015:DEBUG:Connection can be kept alive indefinitely
Thu Aug 13 17:48:11 BST 2015:DEBUG:Getting wsdl component from [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd3]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Stale connection check
Thu Aug 13 17:48:11 BST 2015:DEBUG:Attempt 1 to execute request
Thu Aug 13 17:48:11 BST 2015:DEBUG:Sending request: GET /wcf/StockQuoteService.svc?xsd=xsd3 HTTP/1.1
Thu Aug 13 17:48:11 BST 2015:DEBUG:Receiving response: HTTP/1.1 200 OK
Thu Aug 13 17:48:11 BST 2015:DEBUG:Connection can be kept alive indefinitely
Thu Aug 13 17:48:11 BST 2015:DEBUG:Getting wsdl component from [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd1]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Stale connection check
Thu Aug 13 17:48:11 BST 2015:DEBUG:Attempt 1 to execute request
Thu Aug 13 17:48:11 BST 2015:DEBUG:Sending request: GET /wcf/StockQuoteService.svc?xsd=xsd1 HTTP/1.1
Thu Aug 13 17:48:11 BST 2015:DEBUG:Receiving response: HTTP/1.1 200 OK
Thu Aug 13 17:48:11 BST 2015:DEBUG:Connection can be kept alive indefinitely
Thu Aug 13 17:48:11 BST 2015:DEBUG:Loading Definition...
Thu Aug 13 17:48:11 BST 2015:DEBUG:Loading WSDL: http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl
Thu Aug 13 17:48:11 BST 2015:DEBUG:Returning baseInputSource [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Returning latest import URI [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd1]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Returning latest import URI [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd2]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Returning latest import URI [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd0]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Returning latest import URI [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd2]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Returning latest import URI [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd3]
Thu Aug 13 17:48:11 BST 2015:DEBUG:Returning latest import URI [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd1]
Thu Aug 13 17:48:11 BST 2015:INFO:Loading schema types from [http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl]
Thu Aug 13 17:48:11 BST 2015:INFO:Getting schema http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl
Thu Aug 13 17:48:11 BST 2015:INFO:Getting schema http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd0
Thu Aug 13 17:48:11 BST 2015:INFO:Getting schema http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd2
Thu Aug 13 17:48:11 BST 2015:INFO:Getting schema http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd3
Thu Aug 13 17:48:11 BST 2015:INFO:Getting schema http://www.restfulwebservices.net/wcf/StockQuoteService.svc?xsd=xsd1
Thu Aug 13 17:48:12 BST 2015:DEBUG:Loaded Definition: ok
Thu Aug 13 17:48:12 BST 2015:INFO:Finding importer for {http://www.restfulwebservices.net/ServiceContracts/2008/01}BasicHttpBinding_IStockQuoteService
Thu Aug 13 17:48:12 BST 2015:INFO:Importing binding {http://www.restfulwebservices.net/ServiceContracts/2008/01}BasicHttpBinding_IStockQuoteService
Thu Aug 13 17:48:12 BST 2015:INFO:importing endpoint http://www.restfulwebservices.net/wcf/StockQuoteService.svc
Thu Aug 13 17:48:12 BST 2015:INFO:importing operation GetStockQuote
Thu Aug 13 17:48:12 BST 2015:INFO:importing operation GetWorldMajorIndices
Thu Aug 13 17:48:45 BST 2015:DEBUG:Connection closedCheers,
Rupert
Related Content
- 2 years ago
- 12 years ago
Recent Discussions
- 15 years ago