WebServicePlugin - how to use correctly?

I have last webservice plugin for idea (ver 5.1.2 and demetra 5561).
My problem is that I dont know what is wrong with my configuration..

I do:

1. New WebApp Module.
2. Create simple class
3 Enable WebService support from menu.
4. I configure and run an instance of Tomcat 5.5.17. Application context is /test
5. run tomcat - I see web pages localhost:8080/ and localhost:8080/test/services
6. generate wsdl from java code
7. deploy java class as web service and I see:

Axis servlet is not preset (if context name field is empty)
Nonvalid server context (if context name is "test")


Is there any simple use case of plugin for dummies? ;)

3 comments
Comment actions Permalink

'Nonvalid server context' message is issued when
localhost:8080/test is not accessible for some reason

0
Comment actions Permalink

Plugin need some index file in the context directory. Copy index files from axis archive (like index.html, index.jsp etc.) to resources directory in idea module can help.

My next problem is:
I have deployed service. I can invoke this service in a web browser. It works. I can see response. But when I try to invoke service from java code I see:
AxisFault:
..
faultString: No such operation 'd'
..

My part of service code is:
public String hello2(String d) {
return "hello " + d + "!";
}

0
Comment actions Permalink

Hi,

Plugin need some index file in the context directory. Copy index files from axis archive
(like index.html, index.jsp etc.) to resources directory in idea module can help.


This, indead, makes localhost:8080/test accessible, the issue will addressed in next version of the plugin.

I have deployed service. I can invoke this service in a web browser. It works. I can see > response. But when I try to invoke service from java code I see:
AxisFault:
..
faultString: No such operation 'd'

>..

Your client seems to incorrectly specify ws operation to invoke.
You can check input SOAP request in special tab that appears after invoking 'Monitor SOAP messages' action invoked.

0

Please sign in to leave a comment.