Java TimeCard Example
From
(Difference between revisions)
m (New page: {{MainSectionLinks}} __TOC__ Stubs can be generated from the WSDL file located here: https://timecardweb.econz.com/axis/services/timecard1Soap?WSDL After than any method in the interfa...) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
https://timecardweb.econz.com/axis/services/timecard1Soap?WSDL | https://timecardweb.econz.com/axis/services/timecard1Soap?WSDL | ||
− | After | + | After that any method in the interface can be called using java in the following manner: |
− | < | + | <source lang="java"> |
//get reference to the Timecard1Soap object | //get reference to the Timecard1Soap object | ||
− | |||
Timecard1Soap timecard = new Timecard1Locator().gettimecard1Soap(); | Timecard1Soap timecard = new Timecard1Locator().gettimecard1Soap(); | ||
// then can call any method eg: addNewTask | // then can call any method eg: addNewTask | ||
− | |||
timecard.addNewTask(new UserIDBean("pass", "username", NADSWebserviceVersion.TIMECARD_VERSION_1), "test"); | timecard.addNewTask(new UserIDBean("pass", "username", NADSWebserviceVersion.TIMECARD_VERSION_1), "test"); | ||
− | </ | + | </source> |
Javadoc for the interface can be accessed here | Javadoc for the interface can be accessed here | ||
− | [http://eservice.econz.co.nz/SOAP/timecardsoap1] | + | [http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html] |
Latest revision as of 11:11, 2 August 2012
Main Page | Latest News | F.A.Q. | EService | Timecard | Web Services | Client Software | Downloads |
Stubs can be generated from the WSDL file located here:
https://timecardweb.econz.com/axis/services/timecard1Soap?WSDL
After that any method in the interface can be called using java in the following manner:
//get reference to the Timecard1Soap object Timecard1Soap timecard = new Timecard1Locator().gettimecard1Soap(); // then can call any method eg: addNewTask timecard.addNewTask(new UserIDBean("pass", "username", NADSWebserviceVersion.TIMECARD_VERSION_1), "test");
Javadoc for the interface can be accessed here [1]