I'm trying to create a new alfresco web service, I followed http://forums.alfresco.com/en/viewtopic.php?f=27&t=11113 , and successfully created a simple WS: so the steps below, after creating a new java class and generating a wsdl and wsdd:
1. wsdl copied to \alfresco\wsdl; 2. wsdd content copied to server-config.wsdd; 3. java library copied to \lib\.
And I'm able to access the newly created WS. The next step would be to develop the new service a bit more, so that it can work with alfresco repository etc.
Any ideas how can I access alfresco from the java class + deploy this to alfresco?
To access the Alfresco APIs you would normally inject (via Spring) the ServiceRegistry bean. This may be difficult to do for custom Web Service classes, so you can also use the ApplicationContextHelper (http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/util/ApplicationContextHelper.htm...) to statically retrieve it, if need be (note that this isn't as elegant as using dependency injection, so try to use that if you can).
Hi, Though I have worked on Web Services, I am new to Alfresco. I was trying to create and deploy a "Hello World" Web Service in Alfresco, but i couldn't succeed. I have followed the same old instructions given in the following link except the fact that I have used "Top Down Approach" for creating a web service (generate code from WSDL) http://forums.alfresco.com/en/viewtopic.php?f=27&t=11113 1. Created a sample WSDL using eclipse 2. Generated the code for the WSDL using axis 3. Copied the content server-config.wsdd (generated one) in the server-config.wsdd of the alfresco. 4. Copied the WSDL in \wsdl folder 5. Copied the jar file in \lib folder 6. Restarted the server