I trying to invoke the proxy service from java program i'm not able to invoke the service. Please give me some sample program to invoke proxy service from java
Related
We have a couple of microservices managed using AWS API Gateway which also acts as a load balancer. We have not integrated spring cloud and eureka services to perform load balancing and invoke external service calls.
Does it make sense to replace RestTemplate with feign-client only for not writing unit test cases?
Not sure how this is related to unit tests, but you can replace RestTemplate with Spring Cloud OpenFeign for a leaner, more readable API. It may also handle client-side load-balancing for you under the hood. However, you might wish to wait till Spring 6 release and switch to using the new Spring interface client instead.
We can use feign client without using the eureka server and config client. Feign client sits on top of the rest template.
So for better intercommunication between two microservices feign client works fine.
All you need to do is to supply additional parameter for url to the feign client #FeignClient along with name param
The port needs to be a fixed port and cannot be randomized provided by spring boot. So user server port
#FeignClient(name = "user-profile-service",
url="${client.user-profile-service.baseurl}")
application.yml
client:
skill-service:
baseurl: http://localhost:3202
I am trying to call Proccess.Start("") from a WCF REST service hosted in a Windows Service through its OnStart method. And i am returning a bool as Process.Start(), though it is returning true, the process is not started.
Please provide me a way to solve this issue. and how can i start a process from a web service hosted through a windows service
If I have some functionality I want to expose via REST in the WSO2 Application Server and it seems that I have two main choices:
Deploy as a JAX-RS Application
Deploy as a Service
When deploying as a service, it appears that I have options for Quality of Service that don't appear to be available for Applications.
Question: If I am creating a REST based functionality from scratch, should I prefer to design as a service rather than as an application, because the service has more flexibility?
In WSO2 Application Server there are two approaches to create RESTfull services.
Create RESTfull service using Axis2, then you should deploy them as "service"
Create JAX-RS spec based service using CXF, then you should deploy them as "JAX-RS" applications.
How do one invoke a secured SOAP web service deployed on weblogic using WSO2 ESB ? Example's given in the tutorial seems to work only for secured web services deployed on Axis 2 server, using Apache Rampart.
Please guide.
Thanks.
It won't make any difference whether its developed in Axis2 or not. If you want to invoke a secured service through WSO2 ESB you need to attach the corresponding security policy to the end point.If you can share any errors you get with that approach that be helpful to answer better.
The NServiceBus Web service bridge example only demonstrates a Command message scenario. I am interested in a scenario where the web service bridge uses request/reply to do a synchronous response to the client like any other normal web service call. In other words, can I use the web service bridge to create a web service that does the following things
expose a synchronous method e.g. ClassA process(ClassB objectB) via the web service interface
Behind the scenes call various ascynhronous services hosted as NServicebus services.
When I get all my replies back, synchronously respond with a ClassA object to the web service client
Any help is appreciated.
NSB will only allow for the return of an error code(enum) when you expose your endpoint as a web service. This is by design as all communication is meant to be unidirectional to avoid temporal coupling(process A has to wait for process B)