Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebServices and Currency Update

Status
Not open for further replies.

NigelJewell

Programmer
Apr 26, 2007
1
GB
Hi,

We want to update the AccPac (5.4a) currencies using Web Services.

We need access to view CS0005, but we cannot access this.

We are told it is related to the DBLinkType but we can't find any reference to this.

This doesn't work:

ACCPACWebServiceSystemServices Accpac = new ACCPACWebServiceSystemServices();
String session = Accpac.SessionOpen("xxx", "xxx", "xxx", DateTime.Today);
string CurrencyHeader = Accpac.SessionOpenView(session, "CS0005");

We are told that this should work (but this seems to be for an different version of AccPac).

sessionToken = ws.SessionInit("CS", "CS0001", "54A");
ws.SessionOpen(sessionToken, "xxx", "xxx", "xxx", DateTime.Today);
AccpacDBLink dblink = ws.SessionOpenDBLink(sessionToken, DBLinkType.System);
string CurrencyHeader = dbLink.SessionOpenView(sessionToken, "CS0005");

Any ideas?

Regards,
Nige.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top