Reputation: 1323
I create a simple jsf page, i want to call webservice in jsf, but i can't find document which wrote about webservice in jsf. Can you give me some link
about it? thank for your helping
Upvotes: 0
Views: 1181
Reputation: 3387
If you need to call a published soap-WS (i.e: wsdl is online) inside your code you should create a ws-client for example with the wsimport tool (comes with JDK). this will give you a java client that you can use to communicate with the WS (even an EJB will simplify your work). From the jsf perspective you are still using a Pojo, so, the client could be injected in a @ManagedBean.
About how to generate a ws-client: http://ayazroomy-java.blogspot.com/2013/07/using-wsimport-tool-to-generate-client.html
Upvotes: 1