Forum Discussion
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
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
- tjay10 years agoOccasional Contributor
Hi Rupert -
Yes, it is all the same box and am able to make a SOAP/HTTP request successfully in the browser. The firewall is set to accept SoapUI and the Proxy is set to automatic.
I wondered if the [brackets] were part of the problem, but as these were populated into the function by SoapUI, I saw them as out of my control.
I understand what you are saying about SoapUI not a source for learning SOAP fundamentals. The following is why I am trying SoapUI:
All I am interested in is building a SOAP client interface with one .../site_path/APIService.asmx?wsdl
I have the API reference guide and am struggling with how to properly interface with WSDL structure elements through the SoapClient (a PHP method/application).
I came across a site that seemed promising in moving me along here (http://devzone.zend.com/2202/php-and-soap-first-steps/) -- which uses SoapUI as part of its training. ... So this is why I turned my attention to SoapUI.
Thanks so much for your responses and attention to trying to help me. Many kudos to you!
If you see anything in this post that triggers some possible solutions I would be most grateful. I have been working on this for 5 days now.
Blessings on you.
tjay
Related Content
- 2 years ago
- 12 years ago
Recent Discussions
- 15 years ago