我已經在mulesoft中使用cxf公開了soap web服務,這是我的接口和java代碼。如何使用cxf公開mulesoft中的異步SOAP web服務
接口是:
@WebService
public interface HelloWorld {
String sayHi(String text);
}
Java類是:
@WebService(endpointInterface = "demo.HelloWorld",
serviceName = "HelloWorld")
public class HelloWorldImpl implements HelloWorld {
public String sayHi(String text) {
/*
Here i am writing the logic which is takes the 15 seconds
and i do not want that caller webservices must be wait to finish
this process.
*/
return "Hello " + text;
}
}
當前呼叫者正在等待在 的sayHi()方法在完成所有的邏輯,但我想要做在異步方式它的意思是sayHi()方法持續進程並且調用方不等待響應。那麼任何想法我怎麼能在mulesoft中實現?
這是騾子的參考軟: https://docs.mulesoft.com/mule-user-guide/v/3.7/building-web-services-with-cxf
我添加了異步組件,並在我內部t的Java組件,現在它的工作。感謝您的迴應。 – ishwar