Consuming service in jar using webservice - web-services

I have services in a jar file created by spring mvc.
My question is how to consume this services through rest api in an other spring boot project .
Any help is highly appreciate.
my AppConfig :
package com.Taco;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
#Configuration
#ComponentScan({"org.DAO","org.Service"})
public class AppConfig {
}

Declare your jar as a dependency in your other spring project.
In config class declare your service in #ComponentScan

Related

Exported from Chrome Extension of Talend API Collection and import into Postman is not working?

I have Exported API Collection from Talend API Collection(chrome-extension://aejoelaoggembcahagimdiliamlcdmfm/index.html#requests) Chrome Extension for API Tested and try to import into Postman is not working?. Any one have idea how to make it work in postman
try to import the talend API Collection into POSTMAN tools . but its not working...
I'm guessing you exported a collection from the Talend API Tester tool, if so it's not possible to. The exports of the talend api tester only works within it share with other users or export then manually import it. You can import postman collections in it but not the other way.

API Manager 4.1.0 import CAR by apictl

Is it possible to import CAR archive via apictl into the api manager? Or maybe is there another way to import this archive? I can't use carbon console.
Thanks
You can use CarbonAppUploader admin service to deploy carbon applications in WSO2 products. Refer to the documentation for more details on how to see the available admin services and use them.

EJB Webservice EAR working properly in Weblogic 12.1.3 but not working in weblogic 12.2.1

EJB stateless web service EAR i.e. using #WebService and #Stateless annotation working perfectly in Weblogic 12.1.3 but not working in weblogic 12.2.1, i.e. web service is not getting generated but EAR getting deployed successfully.
I have tried many ways by adding dependent Jars in EAR Lib and also added below in weblogic-application.xml but still web service is not coming.
Please assist.
<wls:prefer-application-packages><wls:package-name>javax.jws.</wls:package-name><wls:package-name>org.apache.neethi.</wls:package-name></wls:prefer-application-packages>

WSO2 AS guice integration

I am using WSO2 application server to deploy my web services. I would like to use guice in my project. I have read a maksim blog about axis2 guice integration. He has used web.xml for injection however i do not know how could i change web.xml in wso2 as.
Thanks
You didn't want to change web.xml on WSO2 AS. You can have web.xml on your WS project.
here is complete guide on developing WS and how to deploy on WSO2 AS using WSO2 Developer Studio.
http://wso2.com/library/articles/2012/09/develop-deploy-web-applications-using-wso2-developer-studio/
Using WSO2 DS you can ease your development effort.
There is no much difference. You implement your webservice/webapp. Web.xml is the part of your webapp . Create the war file and deploy that in AS. Keep the dependency jars(guice lib etc ..) in the repository/components/lib folder.

How to convert JBPM project into Web- service?

I have a working JBPM project that i want to expose as a web service so from my server i can call that web-service. So please let me know is there a any way to expose a JBPM project into a web service.
By default, you can use the jbpm-console service to expose the processes you have deployed there as a REST service. You can also expose your project yourself as a web service using for example the camel integration component (and using camel to set up a WS endpoint) or by writing a custom wrapper yourself.