Questions tagged [contract]

424 questions
0
votes
1 answer

Android SQL Lite help: creating databasetable

I've been trying to reference the old code to create a table. I changed the key/column names for the new table and everything was working fine. However, when I tried to change the name from "expense" (from the old code) to "transaction" (new code).…
Tai Wu
  • 83
  • 1
  • 3
  • 6
0
votes
1 answer

Inherit view error when install module contract hr_contract_state OpenERP /Odoo 8.0

I have install module Attendance summary for Payroll and I get the following error: ParseError: "ValidateError Field(s) `arch` failed against a constraint: Invalid view definition Error details: Element '
0
votes
0 answers

Why is a contract class final and inner class abstract when working with SQL in Android?

Google provides such an example here: http://developer.android.com/training/basics/data-storage/databases.html#DefineContract public final class FeedReaderContract { // To prevent someone from accidentally instantiating the contract class, …
Eugene Garbuzov
  • 193
  • 1
  • 4
  • 9
0
votes
0 answers

The contract name could not be found in the list of contracts implemented by the service

In the code below I get an error. I guess it is something simple or impossible to do, because I wasn't able to find anything with Google. Anyway the error I am getting is: The contract name 'SchippersStop.Wcf.Balie.Interfaces.IBalie' could not be…
BlueIced
  • 131
  • 1
  • 12
0
votes
4 answers

should a contract draft be reviewed?

in software engineering should a contract draft be reviewed by software developers? or it should be left to legal department and to management?
lisa
  • 9
  • 1
0
votes
1 answer

Can I use a Single WCF method to return a class from multiple classes?

I have this Model class on c# public class Enumerator { int ID {get;set;} string Description {get;set;} } I also have nearly 20 classes that implement a method to convert them to an Enumerator class. My question is simple: Is there a way to write…
ericpap
  • 2,917
  • 5
  • 33
  • 52
0
votes
1 answer

Domain Model and Contracts

I am modelling a DVD Rental Store: A Client gives its clientNumber to the System. The System checks whenever the given clientNumber is valid. The Client gives the name of the DVD he wants to rent. ... ...I will later have to form an association…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
0
votes
1 answer

Contract could not be found in the list of contracts

I've got a project that i need to test, it's a service built around a contract(wcf i think??). I get the following error msg when i try to start it: Error starting service: The contract name 'VMBRLight.VMBRService' could not be found in the list of…
Lord Vermillion
  • 5,264
  • 20
  • 69
  • 109
0
votes
2 answers

NullReference Exception is thrown while getting a callback channel

I am trying to get along with WCF's duplex contracts. A code from this article (http://msdn.microsoft.com/en-us/library/ms731184.aspx) ICalculatorDuplexCallback callback = null; callback = OperationContext.Current.GetCallbackChannel(); throws a…
Yaroslav
  • 1
  • 1
  • 2
0
votes
2 answers

Variable declaration in contracts

Is it possible in D to define a variable inside a contract? I have the following function as member of an interface: public @safe nothrow void eat(in ulong chunklength) in { assert(chunklength < length); ulong oldlength = length; } // lenght is a…
Jeroen
  • 15,257
  • 12
  • 59
  • 102
0
votes
2 answers

Web Service contract without implementation specific information

I have to define a web service contract that afterwards will be used by different software suppliers to implement their servers and clients. I tried to do it defining classes, making a WCF service and using it to autogenerate WSDL document. The…
GUZ
  • 627
  • 1
  • 9
  • 18
0
votes
1 answer

Determine amount of time remaining on method that times out

I am trying to write a lock class to help with situations where I need to be able to prioritize various thread's acccess to a synchronized resource, but I have run into an issue with meeting the contract for Lock::tryLock(long time, TimeUnit…
AJMansfield
  • 4,039
  • 3
  • 29
  • 50
0
votes
1 answer

Multiple DataContract Callbackcontract

Greetings, in our company we are developing wcf service. This is used as a server and it works quite well. Hover there is a wish from customer that after they login to application they would like to see which users are logged in too. I read about…
niao
  • 4,972
  • 19
  • 66
  • 114
0
votes
2 answers

Java Comparable Contract

Must I always adhere to the contract established for Comparable Interface? Is there acceptable leverage when all three cases of the contract are unclear? The contract simply states: If this object precedes that; return negative value If this object…
Mushy
  • 2,535
  • 10
  • 33
  • 54
0
votes
0 answers

WCF Service Contract not generated correctly with IsOneWay Attribute

I have following ServiceBehaviour on my service: _ When i add a Sub/void method to…
JMan
  • 2,611
  • 3
  • 30
  • 51