Register
Sign In
Liferay.com
Navigation
Home
Products
Services
Partners
Community
Documentation
About Us
Downloads
Search
Answer
(
Unmark
)
Mark as an Answer
Forums
Search
Home
»
Liferay English
»
3. Development
Recent Posts
Statistics
RSS
SOAP and WSDD from Service Builder w/o ext environment
Ilya Zverev
3/31/09 7:06 AM
RE: SOAP and WSDD from Service Builder w/o ext environment
Ilya Zverev
4/18/09 4:26 AM
RE: SOAP and WSDD from Service Builder w/o ext environment
Brant Levinson
4/24/09 12:14 PM
RE: SOAP and WSDD from Service Builder w/o ext environment
Ilya Zverev
4/29/09 7:01 AM
RE: SOAP and WSDD from Service Builder w/o ext environment
Threads
Ilya Zverev
Rank: Padawan
Posts: 26
Join Date: 11/25/08
Recent Posts
SOAP and WSDD from Service Builder w/o ext environment
3/31/09 7:06 AM
I'm using service.xml editor in NetBeans and it seems that web services generated with ServiceBuilder are usable only from inside liferay portal. That is, no soap/http/json classes are generated, wsdd deploy/undeploy descriptors are also missing.
Is there a way to generate those so portlet's web services would be available externally?
I mean a normal way, without rebuilding liferay core files, using some ext environment and all.
±0
(0 Votes)
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Ilya Zverev
Rank: Padawan
Posts: 26
Join Date: 11/25/08
Recent Posts
RE: SOAP and WSDD from Service Builder w/o ext environment
4/18/09 4:26 AM as a reply to Ilya Zverev.
Just in case someone is writing their portlet in a regular way, without tweaking Liferay, there's a relatively simple solution.
1. Create service using ServiceBuilder;
2. Create new package apart from your portlet and create an interface there with all service methods;
3. Use Apache Axis' Java2WSDL and WSDL2Java to create all soap classes and deploy.wsdd;
4. Find YourServiceSoapBindingImpl.java and write implementations for all methods to call corresponding YourServiceUtil methods, generated by ServiceBuilder;
5. Build this package and put it into tomcat/webapps/ROOT/WEB-INF/lib folder;
6. Take <service> tag from generated deploy.wsdd file and copy-paste it into tomcat/webapps/tunnel-web/WEB-INF/server-config.wsdd near other services;
7. Copy the jar generated with ServiceBuilder into tomcat/common/lib/ext;
8. Stop, then start tomcat, deploy your portlet;
9. Check http://localhost:8080/tunnel-web/axis for your service. It should be there.
This is too tricky, still. There has to be a way to execute 'build-wsdd' task and to generate all soap classes and wsdd files.
+2
(2 Votes)
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Brant Levinson
Rank: Padawan
Posts: 48
Join Date: 7/12/08
Recent Posts
RE: SOAP and WSDD from Service Builder w/o ext environment
soap
servicebuilder
rest
json
servicce builder
4/24/09 12:14 PM as a reply to Ilya Zverev.
Thanks for sharing,
I don't understand why this isn't automated yet. It should create the JSON, SOAP, and REST interfaces for this.
±0
(0 Votes)
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Ilya Zverev
Rank: Padawan
Posts: 26
Join Date: 11/25/08
Recent Posts
RE: SOAP and WSDD from Service Builder w/o ext environment
4/29/09 7:01 AM as a reply to Ilya Zverev.
Also, I've found a way to use model hints with Portal Pack (and w/o ext env) and added it to
wiki
.
±0
(0 Votes)
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Footer Shortcuts
News
Blog
Twitter
Facebook
Repeat Navigation
Powered by Liferay Portal
Privacy Policy
Sitemap
Contact Us