aspose file tools*
The moose likes Web Services and the fly likes Need help with SoapUI and/or Eclipse web-service Explorer. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Need help with SoapUI and/or Eclipse web-service Explorer." Watch "Need help with SoapUI and/or Eclipse web-service Explorer." New topic
Author

Need help with SoapUI and/or Eclipse web-service Explorer.

Dmitry Zhuravlev
Ranch Hand

Joined: Apr 14, 2010
Posts: 93
Gentlmen,
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?

Thanks everyone!
Lingan Rajan
Ranch Hand

Joined: Jan 26, 2011
Posts: 30
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.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
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.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Dmitry Zhuravlev
Ranch Hand

Joined: Apr 14, 2010
Posts: 93
Guys, thank you for replies.

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.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help with SoapUI and/or Eclipse web-service Explorer.