This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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://aspose.com/file-tools
 
subject: SOAPFaultException: Endpoint {http://test.com/}TestPort: does not contain operation meta data