File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes help me in webservices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "help me in webservices" Watch "help me in webservices" New topic

help me in webservices

soso salim

Joined: Dec 02, 2009
Posts: 3
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

Joined: Jan 10, 2002
Posts: 63858

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.

[Asking smart questions] [About Bear] [Books by Bear]
Ivan Krizsan
Ranch Hand

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

Joined: Dec 02, 2009
Posts: 3
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
I agree. Here's the link:
subject: help me in webservices
jQuery in Action, 3rd edition