Loading...

Posted in: Forums > Reports, settings and regionalization

Subscribe to topic RSS

 

GetEvent API function is giving no results via SOAP

Tue, 7 Feb '12 @ 6:45 AM
Hi,

I'm trying to retrieve timesheet information through the API and am using the method GetEvent.

While the method DOES give a result when applying is via the web interface:
http://companyname.worketc.com/xml?op=GetEvent,
it gives an empty response when I'm calling it via a SOAP connection. Other methods DO give valid results via SOAP.

Can somebody tell me what could be the cause of this.

regards
Frank
Simon
Nova Scotia, Canada
Fri, 10 Feb '12 @ 8:03 AM
I think empty result can only happen if EntryID doesn't exist.

Which platform are you coding on? If using .NET runtime, maybe update the service reference. If you're using the newer Windows Communication Foundation (WCF) soap service reference (instead of legacy "web reference") you might want to find & replace "\[System.Xml.Serialization.*(*Order=*)\]" with nothing, in your Visual Studio Reference.cs file so that changes to the API doesn't silently break the reference definition. I'm not sure why Microsoft added stupid [Order] attributes under WCF, they're not needed and make everything far less robust.

If you're not using .NET, can I get you paste a copy of your soap request packet? maybe there's a difference in letter casing for the "EntryID" parameter causing the value to be completely ignored and ending up fetching EntryID "0".