I have a web service operation called getJobCostToDate (string jobman), when the job number passes it's job The cost will be refunded by date.
The page I am displaying shows job data in the row, and till date the job cost is a column of table data.
I've found that I should be able to call back the Web Service operation using a managed bean, but I want to know enough information about JSF or web service proxy clients No, how should I do this?
I want to be able to call an operation call in backend beans and want to pass the job number of the row to display the cost, but I have read that JSF does not work like this.
I have seen some JSF books in the bookstore and they do not have good examples of how to call web service operations to use JSF beans. I have some good articles searching in Google Or have difficulty finding examples.
Can someone recommend good books or articles that cover it? Or can someone tell me in the right direction?
Any help would be greatly appreciated!
Some vendors have JSF tooling that will generate beans from WSDL, effectively it seems that You drag that WSDL onto the page. I work with IBM Eclipse-based products, who have this capability, but it is possible that you may need to have free eclipse tooling.
In a very bad situation, it should not be difficult to roll yourself: / P>
1). Generate a Java client from WSDL, Eclipse should deal with that.
2). If that is the generated Code Bean, then OK, now you have something to use with JSF if not, then write a simple Java Bean
public class MyServiceBean {Private ServiceClient myServiceCaller; / * Plus variables to retain service results * / Public MySerben () {/ * init code * /} Private Invoices service () / OUV service, to save results * /} public getSomeValue () {invokeService () ; / * Return value * /} / * Other gates * /} Now you have bean that any kind of lust can be used equally you serve in the backing bean I can call for - I do not see any reason to call the service there.
Comments
Post a Comment