Sorry I don't have any help for you, however, I noticed that you have accomplished something that I have yet to figure out. How do I expose my local session bean as a web service using jboss.net?
I have written some entity CMP beans, which xdoclet creates a session facade (management beans) for. I think these session beans are good candidates for web services, but I don't know what to do once the session beans are generated.
Any help would be appreciated...
I've attached a zip file that you can deploy into jboss. I deployed into a build I made from a nightly build there the other day so maybe you wanna make sure you're up to date.
If you've any problems get back to me or else subscribe to the jboss users mailing list on the sourceforge website. The folks there know their stuff I tells ye.
Apologies for the delay in getting back to you but I only got it working in the past few minutes myself.
Ahem and for my next trick I'm going to...wait for it... actually remember to post the zip file!!! Yeaeeaahahhy. Tas been a long day..
...Hmm she doesn't seem to want to upload...
Here I've hosted it here. By the by there's .classpath and .project files in there so you can import it directly into eclipse2.0.2 at least.
Here's the url, don't hesitate to ask us questions and I'll do my best to answer them.
If in the web-service.xml, if you set allowmethods="*" and you attempt to check and see what services you have at
you'll get a NullPointerException this is something to do with the compatibility of some of the EJB methods and the provider that generates the WSDL. (Lads on the mailing list snared that one. Nice one cheers).. Anyway make sure that allowedMethods="hello" i.e. the business method.
Thanks for the help! I got this working, I think.
I found an xdoclet add-on for auto-generating the web-services.xml file for me. I made a small tweak to the xdoclet template for the session facade that I am having xdoclet generate, so that it will also publish the session facade beans as web services.
I then wrapped the generated web-services.xml into a wsr, and dropped it into my deploy folder. I had to restart jboss for it to read that (wouldn't hot-deploy the wsr), but after that, I was able to obtain the wsdl by putting in the URL to my service in my web browser.It looked OK.
Right now, I am trying to use WSD2Java to generate some client-side stubs, etc. I was using the latest axis WSDL2Java to do this (it integrates nicely with ant), but the resulting files would not compile.
So I am going to try the WSDL2Java that comes with the jboss-net axis package that I have, but unfortunately, I think ant doesn't automatically support that one.
Could you please post more information about the ant task you used to automatically create web.xml
I tried with 'jbossnet' task and I get an error saying task doesn't support 'jbossnet' element.
could you repost the zip file.
the http link is invalid.