FUNCTION AddTicketItem(nTransNum as Integer,; cProductID as String) as Object; * ... code to add record ... * * Return Value - Return the Item number assigned, and the price calculated * LOCAL loReturn as Empty loReturn = NEWOBJECT('Empty') ADDPROPERTY(loReturn, 'nItemNumber', tabledtl.item_nbr) ADDPROPERTY(loReturn, 'nPrice', tabledtl.price) RETURN loReturn ENDFUNCMy code works fine and compiles as a COM object. However, when I try to publish it as a web service I get a message "Error generating WSDL files." If I change the return type to String and return a string value, it all works. I plan on expanding the method that I am using in other situations to much more complex return types, so I would like to be able to use objects.