Questions tagged [casablanca]

Casablanca is a Microsoft incubation effort to support cloud-based client-server communication in native code using a modern asynchronous C++ API design.

Casablanca is a Microsoft incubation effort to support cloud-based client-server communication in native code using a modern asynchronous C++ API design. It is a project that starts exploring how to best support C++ developers who want to take advantage of the radical shift in software architecture that cloud computing represents.

190 questions
2
votes
0 answers

Casablanca C++ REST SDK debug assertions fail

I'm experimenting with Casablanca C++ REST SDK but I am stuck with this error...
nevanom
  • 370
  • 1
  • 3
  • 14
2
votes
1 answer

How to append new key-value pairs in an existing web::json::value object using Casablanca?

I am using Casablanca C++ REST library to work with JSON data. This is the code I am using to create a new JSON object from scratch, and add key-values pairs. web::json::value temp; // 1 - to add literal key-value pairs temp[L"key1"] =…
Kajal
  • 581
  • 11
  • 24
2
votes
1 answer

What should last task in a chain return - c++ rest sdk?

In the following code, why is variable t assigned a correct task when neither of lambdas in the chain return such a type? The lambdas return task, task and none. The code works when the last lambda returns task and when…
bdristan
  • 1,048
  • 1
  • 12
  • 36
2
votes
1 answer

Send Receive using casablanca c++ rest sdk

I'm just starting with RESTful programming and trying to make a program in c++ using the Casablanca sdk (https://github.com/Microsoft/cpprestsdk). I know that I need to use GET, POST, PUT and DEL methods to do data transfer etc. But I cant seem to…
f_bhatti
  • 21
  • 1
  • 3
2
votes
1 answer

Casablanca C++ Rest SDK - how to disable certificate validation on websocket

I'm using cpprestsdk v. 2.8.0. I need to disable certificate validation on websocket websocket_client_config wcc; websocket_client client(wcc); client.connect(U("wss://192.168.3.45/product/webapiws")).wait(); this code give me an exception because…
LukeT
  • 83
  • 1
  • 9
2
votes
1 answer

URI encoding in C++ REST SDK ("Casablanca")

I'm using the http listener of the C++ REST SDK 2.8 and noticed the following. If I send the following URL to this listener: http://my_server/my%2fpath?key=xxx%26yyy%3Dzzz and I do: auto uri = request.relative_uri(); auto v_path_components =…
Luigi
  • 21
  • 1
  • 3
2
votes
1 answer

Where do I need to call CoInitialize in the C++ REST SDK?

I need to call some COM APIs from a simple REST server using the REST SDK. It's similar to the BlackJack sample code. Whenever I try to create a COM object I get an exception that CoInitialize has not been called. But where exactly can I initialize…
laktak
  • 57,064
  • 17
  • 134
  • 164
2
votes
1 answer

how to fix "error in ssl handshake" in cpprestsdk?

I'm using cpprestsdk "Casablanca" master branch with https url, it's working on both windows and osx but when i run it on linux i received "Error is ssl handshake" C++ exception with description "Error in SSL handshake" thrown in the test body. i…
j.kahil
  • 276
  • 5
  • 16
2
votes
0 answers

Casablanca (cpprestsdk) build error on windows 8.1 using visual studio 2015

The Goal Use cpprestsdk in a basic Android app as a proof of concept. What I have done so far I have been following this wiki on github. I'm trying to build the cpprestsdk on Windows 8.1 using Visual Studio 2015. The wiki gives some NuGet…
Cloud9999Strife
  • 3,102
  • 3
  • 30
  • 43
2
votes
1 answer

How to get JSON objects value using casablanca in C++

I am new to Json. And i m using codeplex (casablanca) for reading the json values. Below is the sample json string: [{ "rollno": 2000, "name": "suhani","marks":{"grade":"C"} }, {"rollno": 3000,"name": "ishu", "marks":{ "grade":"A"} }] The code…
Savita
  • 75
  • 4
2
votes
2 answers

I am running into issues with Casablanca C++ when using urls with https in it

We are using Resource Owner Credentials to get access tokens using our internal OAuth Svr. Everything is working if the the url does not include any https in it, but the moment I include https in it everything fails. We deployed all our sites with…
srikat
  • 31
  • 2
2
votes
0 answers

cpprest/pplx : call to implicitly-deleted default constructor of '_ResultHolder'

I am currently using the cpprest API found at https://casablanca.codeplex.com/ for a simple RESTful API project. This popular library uses Microsoft's PPLX framework to facilitate the async tasks. I am currently encountering an issue in which code…
Don Scott
  • 3,179
  • 1
  • 26
  • 40
2
votes
2 answers

C++ Function Completing Before Other Function Finishes

I am coding a C++ program to interact with the internet using the C++ REST SDK. I have a main function and a webCommunication function. The code is similar to below: void webCommunication(data, url) { //Communicate with the internet using the…
Steven
  • 23
  • 1
  • 4
2
votes
0 answers

Debugging a C++ linker error

First I'll give specific details about the problem I'm having, then I'll go into the interesting results I'm getting from nm when I try to debug the issue. Hopefully an nm guru will be able to interpret those results. I've statically compiled the…
Dan Hook
  • 6,769
  • 7
  • 35
  • 52
2
votes
0 answers

Casablanca tutorial not working on my Ubuntu

I have a problem with Casablanca. I have installed it on my Linux Ubuntu x64: no errors; and run all the tests: all passed. I have done it like on the linux install support page, but I have installed the latest libraries. I copied the tutorial code…
thedarkside ofthemoon
  • 2,251
  • 6
  • 31
  • 48