Java TimeCard Example

From
(Difference between revisions)
Jump to: navigation, search
m
 
(One intermediate revision by one user not shown)
Line 7: Line 7:
 
https://timecardweb.econz.com/axis/services/timecard1Soap?WSDL
 
https://timecardweb.econz.com/axis/services/timecard1Soap?WSDL
  
After than any method in the interface can be called in the following manner:
+
After that any method in the interface can be called using java in the following manner:
<code>
+
<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");  
</code>
+
</source>
  
  
 
Javadoc for the interface can be accessed here
 
Javadoc for the interface can be accessed here
 
[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html]
 
[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]

Personal tools
MediaWiki Appliance - Powered by TurnKey Linux