MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
a_matijaca
Post subject: java to wsdl  PostPosted: Jul 18, 2006 - 04:57 PM
Veteran Member
Veteran Member


Joined: Jan 31, 2005
Posts: 10

Hi there,

is there a way of generating a WSDL file, using a Java class as
a 'source' for it (the WSDL file should have all the exposed methods
in the WSDL??)?

Thanks, Alex.
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jul 19, 2006 - 07:27 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2515

Alex,

Use our top down wizard and specify that you have an existing class.
Create the service and deploy your application.

go to http://<serveraddress>:<port>/<webapp>/services

to get a list of the services and you will see a WSDL link next to each; this WSDL file is generated on the fly from the java class you provided by XFire.

In fact, if you have your service ready class, you don't really need the WSDL for your service to work as XFire will generate one for you automatically (as you can see above)
If you need the wsdl for something else, you can follow the above steps.

We realize it is a bit convoluted right now, but we're working on making WSDL generation simpler.

Let us know if you require further assistance,
Brian.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
a_matijaca
Post subject: ok cool  PostPosted: Jul 19, 2006 - 08:58 PM
Veteran Member
Veteran Member


Joined: Jan 31, 2005
Posts: 10

Thanks Brian,

that makes a lot more sense -- in any case, I should be able to point to that URL,
and do a "save-as" and save the WSDL XML file. The reason I was asking about this is,
that very often, third-party clients are looking for a WSDL file so that they can connect
to us etc...

Systinet had a great feature regarding this -- you could right-click on a class, and one of the
menu choices was "make WSDL". Furthermore they also had an ability to go the other
way, suck in a WSDL and generate Java classes from that... I know that some of this
can be done with some kind of a command-line tool, but the purpose of myeclipseide
is to get away from that :). Is there a way to do this also?? If not, please do consider
it for future releases. One of the things that makes it very easy to integrate between
entities using WS is the easy exchange of WSDL files, and generating both java classes,
and WSDLs as needed.

In my opinion you have a great start with this WS environment. I have never used Xfire
before, and I like it's simplicity. A "generate client" (generating XFire code)
feature would be useful too...


Thanks, Alex.
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
a_matijaca
Post subject: duuuh  PostPosted: Jul 19, 2006 - 09:02 PM
Veteran Member
Veteran Member


Joined: Jan 31, 2005
Posts: 10

sorry, java to wsdl -- that's obvious -- please ignore that portion of my previous message..

cheers, alex.
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jul 19, 2006 - 10:41 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2515

Quote:
you could right-click on a class, and one of the menu choices was "make WSDL".

Yes, this is a use case we are thinking about. It probably won't make 5.0GA but definitely soon after.

Quote:
Furthermore they also had an ability to go the other way, suck in a WSDL and generate Java classes from that...

We already have this, coupled with client generation. Have you tried the top down wizard?

Quote:
In my opinion you have a great start with this WS environment. I have never used Xfire
before, and I like it's simplicity.


Thank you :)

Sorry I didn't understand your last post completely, if you had meant that WSDL to Java was obvious.

Best,
Brian.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits