- wsreq->xreq.refcount = 1;
- wsreq->xreq.query = wsreq;
- wsreq->xreq.queryitf = &afb_ws_json1_xreq_itf;
- wsreq->xreq.api = api;
- wsreq->xreq.verb = verb;
- wsreq->aws = aws_addref(ws);
+ wsreq->xreq.cred = afb_cred_addref(ws->cred);
+ wsreq->xreq.request.called_api = api;
+ wsreq->xreq.request.called_verb = verb;
+ wsreq->xreq.json = afb_wsj1_msg_object_j(wsreq->msgj1);
+ wsreq->aws = afb_ws_json1_addref(ws);