aspose file tools
The moose likes Web Services and the fly likes SOAPFaultException: Endpoint {http://test.com/}TestPort: does not contain operation meta data Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "SOAPFaultException: Endpoint {http://test.com/}TestPort: does not contain operation meta data" Watch "SOAPFaultException: Endpoint {http://test.com/}TestPort: does not contain operation meta data" New topic
Author

SOAPFaultException: Endpoint {http://test.com/}TestPort: does not contain operation meta data

Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
Hi,

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,
Sushma

Here is code for my WebService class, web.xml, wsdl and client:



Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
It looks like you have written a JAX-WS web service which you then try to use from a JAX-RPC client.
The following imports are all imports of JAX-RPC classes:


I would rewrite the client so that it uses JAX-WS. I suspect this is the cause of the problem.
Best wishes!
Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
Thanks Ivan.
I changed the client to use SOAPConnection and I was able to invoke the web service. but for some reson, the parameter I passed is always received null in the web service method.
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi again!
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.
Best wishes!
Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
Thanks Ivan.
I installed soapUI today and tested my Web service with it. Turns out I was making mistake in passing parameter from the client.

Sushma
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: SOAPFaultException: Endpoint {http://test.com/}TestPort: does not contain operation meta data
 
Similar Threads
java.rmi.RemoteException: does not contain operation meta data
REST client with POST verb - some help needed
Errors when using clientgen
How to write a webservices client
want to send pdf file to client from server. pdf is generated at server