3.1 Example Messages
Topic Version | 1 | Published | 10/16/2017 | |
For Standard | ETPW20 v1 |
This section includes some example messages for Protocol 0.
Example RequestSession message:
// Opening web socket connection...// [] Socket opened.// [] Message sent at 2017-06-16 17:15:34.3673{
"protocol":0,
"messageType":1,
"correlationId":0,
"messageId":1,
"messageFlags":0}{
"applicationName": "Application.Name",
"applicationVersion": "1.0.0.0",
"requestedProtocols": [ {
"protocol": 1,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "producer",
"protocolCapabilities": {} }, {
"protocol": 3,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "store",
"protocolCapabilities": {} }, {
"protocol": 4,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "store",
"protocolCapabilities": {} }, {
"protocol": 5,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "store",
"protocolCapabilities": {} }, {
"protocol": 6,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "store",
"protocolCapabilities": {} } ],
"supportedObjects": []}
Example OpenSession message in response:
// [1eb614ee-ee09-46d2-9c86-c8ee0be0a8bd] Message received at 2017-06-16 17:15:35.0693{
"protocol":0,
"messageType":2,
"correlationId":1,
"messageId":1,
"messageFlags":0}{
"applicationName": "Application.Name",
"applicationVersion": "1.0.0.0",
"sessionId": "1eb614ee-ee09-46d2-9c86-c8ee0be0a8bd",
"supportedProtocols": [ {
"protocol": 1,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "producer",
"protocolCapabilities": {} }, {
"protocol": 3,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "store",
"protocolCapabilities": {
"maxGetResourcesResponse": {
"item": 1000.0 } } }, {
"protocol": 4,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "store",
"protocolCapabilities": {} }, {
"protocol": 5,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "store",
"protocolCapabilities": {} }, {
"protocol": 6,
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0,
"patch": 0 },
"role": "store",
"protocolCapabilities": {} } ],
"supportedObjects": ["application/x-eml+xml;version=2.1;type=Activity","application/x-eml+xml;version=2.1;type=ActivityTemplate","application/x-eml+xml;version=2.1;type=DataAssuranceRecord","application/x-witsml+xml;version=1.3.1.1;type=log","application/x-witsml+xml;version=1.3.1.1;type=message","application/x-witsml+xml;version=1.3.1.1;type=mudLog","application/x-witsml+xml;version=1.3.1.1;type=rig","application/x-witsml+xml;version=1.3.1.1;type=trajectory","application/x-witsml+xml;version=1.3.1.1;type=wbGeometry","application/x-witsml+xml;version=1.3.1.1;type=well","application/x-witsml+xml;version=1.3.1.1;type=wellbore","application/x-witsml+xml;version=1.4.1.1;type=attachment","application/x-witsml+xml;version=1.4.1.1;type=log","application/x-witsml+xml;version=1.4.1.1;type=message","application/x-witsml+xml;version=1.4.1.1;type=mudLog","application/x-witsml+xml;version=1.4.1.1;type=rig","application/x-witsml+xml;version=1.4.1.1;type=trajectory","application/x-witsml+xml;version=1.4.1.1;type=wbGeometry","application/x-witsml+xml;version=1.4.1.1;type=well","application/x-witsml+xml;version=1.4.1.1;type=wellbore","application/x-witsml+xml;version=2.0;type=Attachment","application/x-witsml+xml;version=2.0;type=Channel","application/x-witsml+xml;version=2.0;type=ChannelSet","application/x-witsml+xml;version=2.0;type=Log", "application/x-witsml+xml;version=2.0;type=Rig","application/x-witsml+xml;version=2.0;type=RigUtilization","application/x-witsml+xml;version=2.0;type=Trajectory","application/x-witsml+xml;version=2.0;type=Well","application/x-witsml+xml;version=2.0;type=Wellbore","application/x-witsml+xml;version=2.0;type=WellCompletion" ]}
Example CloseSession message:
// [1eb614ee-ee09-46d2-9c86-c8ee0be0a8bd] Message sent at 2017-06-16 17:17:22.9219{"protocol"0"messageType"5"correlationId"0"messageId"4"messageFlags"0}{
"reason": "Session closed"}// [1eb614ee-ee09-46d2-9c86-c8ee0be0a8bd] Socket closed.