Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me in webservices

 
soso salim
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello I want to ask you some question on eclipse program how to write java program associated with xml language , I do all thing but I need help in client stage ,an exception occur I don't know why? this exception is :
Exception occurred during code generation for WSDL : org.apache.axis2.AxisFault: No operation found in the portType element
please help me ,and I'm sorry for my bad English.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65114
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on XYZ. For more information, please read this. This post has been moved to a more appropriate forum.

Also, Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A title such as "help me in webservices" is not helpful. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Your post does lack more detailed information, but I will still attempt a guess.
From where did you get the WSDL?
The <portType> element in a WSDL document is similar to a Java interface; in it the operations (compare to methods in a Java interface) that the web service supports are listed, along with information specifying what data is to be input to the operation and what data will be the result of the operation. Additionally, faults (compare to exceptions in Java) may be listed, to inform the clients of the service what kind of errors may occur when using the operation.
From the error message you supply, I seems like you have an interface (<portType> in the WSDL) that does not contain any methods (operations in the WSDL).
If you can give us a look at the WSDL, it would be of immense help.
Best wishes!
 
soso salim
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i don't write any wsdl in my application because the eclipse it self,can write it to my project ,i just import my xml file to the project and it generate wsdl for it ,like this i do "i don't know is that right or not honestly " ,on the other hand the operation i wrote java class which contain the operation i wish to publish "like a Dom ",i tell you what i do ,and thanks for your post
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic