Learning Documentation Community Open Exchange Global Masters Certification Partner Directory Ideas Portal
Developer Community
  • Posts
    • InterSystems Official
    • Articles
    • Questions
    • Announcements
    • Discussions
    • Tags
  • Events
    • Tech Article Contest
    • Programming Contest
    • InterSystems Ideas Contest
    • Event Calendar
  • Products
    • InterSystems IRIS
    • InterSystems IRIS for Health
    • HealthShare
    • TrakCare
    • Caché
    • Ensemble
    • InterSystems Analytics (DeepSee)
    • InterSystems Text Analytics (iKnow)
  • Jobs
    • Job Opportunity
    • Job Wanted
  • Members
  • About
    • About Us
    • FAQ
    • Feedback
    • Report an Issue
    • Share an Idea
    • Code of Conduct
    • Contact Us

EN

Search by posts, members, tags
Language
EN|
ESPTJPCNFREN
New post
  • Profile page
  • Posts (3)
  • Replies (6)
  • Mentions (0)
  • Official certification & Credly badges (0)
  • Global Masters badges (0)
  • Followers (0)
  • Following (0)
AllAccepted answers
    go to post
Rodolfo Santos · Jun 4, 2019

Hello, check if this works for you.
If what you are getting in Request.JSON is a String, put it this way:

ClassMethod Test() As %Status
{ 
SET Data = ##class(%Net.HttpRequest).%New() 
SET Obj = "{teste:1}"

DO Data.EntityBody.Write(Obj)
 
Quit 1
}

If you are receiving a Stream, do this:

DO Data.EntityBody.Write(Obj.Read())
0 0 https://community.intersystems.com/post/http-request-ws-rest#comment-110076
Rodolfo Santos
@Rodolfo.Santos
Follow

User statistics

Posts
3
Replies
6
Likes
0
Applications
0
Badges
0
Followers
0
People reached
1.3K
Accepted answers
1
  • Privacy & Terms
  • Guarantee
  • Section 508
  • Contest Terms
  • Cookies Settings
© 2025 InterSystems Corporation, Cambridge, MA. All rights reserved.

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up