Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sushma Sharma
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Sushma Sharma
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic