Cannot POST Create (XML) with FCF when host returns HTTP Status 201

I have a similar issue as with the previous case https://supportweb.scribesoft.com/s/question/0D532000048Cy7OCAS/accept-h...

The target web service responses to a POST request with an 201 and a body.

When I use the "this.Operations.Create" method, the target returns a vaild 201 response with a body (checked with fiddler), however, Scribe Online responds with an error. I also tried the "this.Operations.CreateWithResponse" method, but this generates an empty request.

 

Using the "Create" method:

var createContract = this.Operations.Create<contractDetail>(BaseUrl + "/contracts").ToHeader("Content-Type", "application/xml").WithMethod("POST");

Target returns valid 201 response, however Scribe returns with:

Operation failed. Label: Create contractDetail, Name: contractDetailCreate, Message: HTTP response code was 201. Response was ...<large xml>...

Using the "CreateWithResponse" method:

var createContract = this.Operations.CreateWithResponse<contractDetail>(BaseUrl + "/contracts").ToHeader("Content-Type", "application/xml").WithMethod("POST");

The request message generated is (from fiddler):

POST https://<host>:<port>/CustomerMediaWebService/contracts HTTP/1.1
Authorization: Basic <cred>
Accept: application/xml
Host: 213.164.138.122:8426
Content-Length: 0

 

(2) Answers

Login