Published on InterSystems Developer Community (https://community.intersystems.com)

主页 > 来自英文社区的问题:流中的HTTPMessage空值

问题
Michael Lei · 四月 21, 2021

来自英文社区的问题:流中的HTTPMessage空值

我对EnsLib.HTTP.GenericOperation类进行了操作。此操作发送以下json消息:

<HTTPMessage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema">

<Stream>

{ "resourceType":"Bundle", "id":"ec5ffdbe-3739-47e6-81e4-2b0498e99fb8", "meta":[ { "lastUpdated":"2020-09-20T15:04:17.764+02:00" }], "type":"searchset", "total":"1", "link":[ { "relation":"self", "url":"https:\/\/xxx:5665\/api\/fhir\/DSTU3\/CarePlan?encounter=861241" }], "entry":[ { "fullUrl":"https:\/\/xxx:5665\/api\/fhir\/DSTU3\/CarePlan\/23104", "resource":[ { "resourceType":"CarePlan", "id":"23104", "identifier":[ { "system":"urn:hcis:mrns", "value":"23104" }] }], "addresses":[ { "reference":"Condition\/76741" }], "subject":[ { "reference":"Patient\/10055765" }] }] }

</Stream><Type>

CG

</Type>

</HTTPMessage>

我将其发送到具有EnsLib.REST.GenericService类的服务的同一名称空间(localhost:9980)。收到消息流为空,为什么?

<HTTPMessage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema">

<Stream></Stream>

<Type>BG</Type>

<HTTPHeaders><HTTPHeadersItem HTTPHeadersKey="CONTENT-LENGTH">0</HTTPHeadersItem><HTTPHeadersItem HTTPHeadersKey="CONTENT-TYPE">text/plain; charset="UTF-8"

</HTTPHeadersItem><HTTPHeadersItem HTTPHeadersKey="StatusLine">HTTP/1.1 500 Internal Server Error</HTTPHeadersItem></HTTPHeaders>

</HTTPMessage>

#JSON #Caché

源 URL:https://cn.community.intersystems.com/post/%E6%9D%A5%E8%87%AA%E8%8B%B1%E6%96%87%E7%A4%BE%E5%8C%BA%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%9A%E6%B5%81%E4%B8%AD%E7%9A%84httpmessage%E7%A9%BA%E5%80%BC