Replies:

Thanks John.  I don't think VSCode is reaching the server.  The connection is timing out:

http://mongo.il.intersystems.com:57772/api/atelier/ failed, reason: connect ETIMEDOUT 10.10.74.225:57772

For me to connect to these servers, I must use a VPN.  I verified that the VPN was on when I tried to connect.  I also verified that the IP address, 10.10.74.225 was reachable.

I DID notice that the port number was not as expected.  It showed 57772 but we use 1972.  So I changed it to 1972.  I think I got further but the new error is:

http://mongo.il.intersystems.com:1972/api/atelier/ failed, reason: socket hang up

I did an experimental connect with that IP:port to see if I could discover anything:

$ telnet 10.10.74.225 1972
Trying 10.10.74.225...
Connected to 10.10.74.225.
Escape character is '^]'.
Connection closed by foreign host.

I also doublechecked in Studio that the port number 1972 is correct for that server.  

Feels like I am very close.  Any other suggestions?

@Robert: Thanks.  I'll study this to get a better idea where I went wrong!

@Julius: That works.  Showing my revised code:

Method AddContentTypeCode5(pContentStream As %Stream.GlobalCharacter, Output pNewContentStream As %Stream.GlobalCharacter) As %Status
{
Set tStatus = $$$OK
try {
Set pNewContentStream=##class(%GlobalCharacterStream).%New()
Set tLocatorString = "<ns2:Description>"
Set tInsertPoint = pContentStream.FindAt(1,tLocatorString,.tStr,0)-1
Do pContentStream.Rewind()
Do pNewContentStream.Write(pContentStream.Read(tInsertPoint)), pNewContentStream.Write(..ContentTypeCodeInsertable), pNewContentStream.Write(pContentStream.Read(pContentStream.Size-tInsertPoint))
$$$HSTRACE("AddContentTypeCode5","pNewContentStream,tInsertPoint,pContentStream",pNewContentStream,tInsertPoint,pContentStream)
catch ex {
Set tStatus = ex.AsStatus()
}
Quit tStatus
}
Followers:
Following:
Marlin has not followed anybody yet.
Global Masters badges:
Marlin has no Global Masters badges yet.