my task is to create a client to some web-service. I want to test this web-service with some third-party software to be sure it works ok.
I have Eclipse web-services Explorer and free version of SoapUI.
1) web-service is password protected. in Eclipse the problem is that I dont know how to include the login-password into the query. When I code this I do something about "stub.setPropery(PASSWORD_PROPERTY, passwprd)" etc. But I dont understand how can I do this is Eclipse web-service Explorer.
2) in SoapUI I create a project, set WSDL, see the generated method names, but when I try to run some request to a method in says: Error getting response; java.lang.IllegalArgumentException: host parameter is null How can I fix it?
I think the easiest way to test it is through the client that you have generated.
You can turn on the TCP/IP monitor in eclipse and see the soap request and response.
This way if you further want to test it with SOAP UI you will have a soap request that works.
If you want to test your client, then you may want to set up a mock service with soapUI and have your client send requests to the mock service.
An alternative is to let the client send request through a monitoring proxy, such a TCP Monitor or Membrane SOAP Monitor, to the real web service - this way you will be able to manually inspect the requests and responses.
Ivan, probably I was not very accurate while writing my question. The thing is that I want to test web-service, but not by client. I want to see whether it works or not. What I want is to run some program which will make correct requests to some web-service basing on its WSDL. I have 2 programs of that kind - Eclipse WS Explorer and SoapUI, and have problems with them which I described in initial post..
OK, probably I should really use the TCP/IP monitor also.
Joined: Oct 04, 2006
Just in case you haven't found it yet (took me a while ):
In soapUI you can configure authorization for individual requests, setting username, password, domain, outgoing and incoming WS-Security configuration to use.
This configuration is available if you open a request and click the Aut button in the lower left corner.
Hope this helps!