#1 2015-10-08 20:35:18

Andy23
Member
Registered: 2015-06-20
Posts: 8

ResultAsJSONObjectWithoutResult doesn't work with ServiceContract?

Hey,

i want to work with "ResultAsJSONObjectWithoutResult" set on the Server side.

But if i try to Define a Service on the Client side like this:

  HttpClient.ServiceDefine(ITest,sicShared);

I get a error because the Server Result is without "Result".
But as far as i know i can set "ResultAsJSONObjectWithoutResult" on ClientSide too. But this is first possible in the TServiceFactoryClient after i called ServiceDefine() :-(

It works if i use '*' for "expectedContract" --> but i don't want to.
It Works if i set ResultAsJSONObjectWithoutResult to false on the server side --> but i don't want to.

Can anyone help me to solve this problem?

Thanks,
Andreas

Offline

#2 2015-10-08 20:47:36

Andy23
Member
Registered: 2015-06-20
Posts: 8

Re: ResultAsJSONObjectWithoutResult doesn't work with ServiceContract?

I think the ServiceDefine(...) method is unable to retrieve the Contract (_contract_) because it expects

this:

{
  "result": {
      "contract": "19AF8D194FF5E7E8"
  }
}

but gets this:

{
  "contract": "19AF8D194FF5E7E8"
}

Offline

#3 2015-10-09 08:09:24

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: ResultAsJSONObjectWithoutResult doesn't work with ServiceContract?

Should be fixed by http://synopse.info/fossil/info/890f86545b

Thanks for the feedback!

Offline

#4 2015-10-09 09:49:45

Andy23
Member
Registered: 2015-06-20
Posts: 8

Re: ResultAsJSONObjectWithoutResult doesn't work with ServiceContract?

Thanks. It works!

Offline

Board footer

Powered by FluxBB