Forums Register Login

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

+Pie Number of slices to send: Send
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:



+Pie Number of slices to send: Send
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:


# import javax.xml.rpc.Call;
# import javax.xml.rpc.Service;
# import javax.xml.rpc.ServiceFactory;
# import javax.xml.rpc.ParameterMode;



I would rewrite the client so that it uses JAX-WS. I suspect this is the cause of the problem.
Best wishes!
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
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
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 12797 times.
Similar Threads
java.rmi.RemoteException: does not contain operation meta data
REST client with POST verb - some help needed
want to send pdf file to client from server. pdf is generated at server
How to write a webservices client
Errors when using clientgen
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:14:11.