I am writing my first WebService. Server is jboss 4.2.2. I wrote a bean and registered as a servlet in my web.xml and deployed it to the server. it deployed fine and generated the wsdl. Now, I am trying to writing a client to invoke this service, but I am gettting the following exception:
Can someone please help me run this program.
Thanks for the help in advance,
Here is code for my WebService class, web.xml, wsdl and client:
First of all, make sure that your webservice works as it should by using soapUI to test it.
If that test passes, then you will want to examine what the client sends out. This can be done using some kind of packet sniffing software like Wireshark or some TCP monitoring tool, like the one built into Eclipse or NetBeans.
If the client sends out XML data, copy the contents of the SOAP <body> element and validate it against the XML schema in the WSDL to make sure the format is correct.