OpcXmlDA


Click here for a complete list of operations.

Subscribe

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /XMLDADemo/XML_Sim/OpcXmlDaServer.asmx HTTP/1.1
Host: info.advosol.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://opcfoundation.org/webservices/XMLDA/1.0/Subscribe"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Subscribe ReturnValuesOnReply="boolean" SubscriptionPingRate="int" xmlns="http://opcfoundation.org/webservices/XMLDA/1.0/">
      <Options ReturnErrorText="boolean" ReturnDiagnosticInfo="boolean" ReturnItemTime="boolean" ReturnItemPath="boolean" ReturnItemName="boolean" RequestDeadline="dateTime" ClientRequestHandle="string" LocaleID="string" />
      <ItemList RequestedSamplingRate="int" EnableBuffering="boolean" Deadband="float" ItemPath="string" ReqType="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace">
        <Items ItemPath="string" ReqType="q1:QName" ItemName="string" ClientItemHandle="string" Deadband="float" RequestedSamplingRate="int" EnableBuffering="boolean" />
        <Items ItemPath="string" ReqType="q1:QName" ItemName="string" ClientItemHandle="string" Deadband="float" RequestedSamplingRate="int" EnableBuffering="boolean" />
      </ItemList>
    </Subscribe>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SubscribeResponse ServerSubHandle="string" xmlns="http://opcfoundation.org/webservices/XMLDA/1.0/">
      <SubscribeResult RcvTime="dateTime" ReplyTime="dateTime" ClientRequestHandle="string" RevisedLocaleID="string" ServerState="running or failed or noConfig or suspended or test or commFault" />
      <RItemList RevisedSamplingRate="int">
        <Items RevisedSamplingRate="int">
          <ItemValue ClientItemHandle="string" Timestamp="dateTime" ResultID="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace" ValueTypeQualifier="q1:QName" ItemPath="string" ItemName="string">
            <DiagnosticInfo>string</DiagnosticInfo>
            <Value />
            <Quality xsi:nil="true" />
          </ItemValue>
        </Items>
        <Items RevisedSamplingRate="int">
          <ItemValue ClientItemHandle="string" Timestamp="dateTime" ResultID="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace" ValueTypeQualifier="q1:QName" ItemPath="string" ItemName="string">
            <DiagnosticInfo>string</DiagnosticInfo>
            <Value />
            <Quality xsi:nil="true" />
          </ItemValue>
        </Items>
      </RItemList>
      <Errors ID="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace">
        <Text>string</Text>
      </Errors>
      <Errors ID="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace">
        <Text>string</Text>
      </Errors>
    </SubscribeResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /XMLDADemo/XML_Sim/OpcXmlDaServer.asmx HTTP/1.1
Host: info.advosol.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Subscribe ReturnValuesOnReply="boolean" SubscriptionPingRate="int" xmlns="http://opcfoundation.org/webservices/XMLDA/1.0/">
      <Options ReturnErrorText="boolean" ReturnDiagnosticInfo="boolean" ReturnItemTime="boolean" ReturnItemPath="boolean" ReturnItemName="boolean" RequestDeadline="dateTime" ClientRequestHandle="string" LocaleID="string" />
      <ItemList RequestedSamplingRate="int" EnableBuffering="boolean" Deadband="float" ItemPath="string" ReqType="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace">
        <Items ItemPath="string" ReqType="q1:QName" ItemName="string" ClientItemHandle="string" Deadband="float" RequestedSamplingRate="int" EnableBuffering="boolean" />
        <Items ItemPath="string" ReqType="q1:QName" ItemName="string" ClientItemHandle="string" Deadband="float" RequestedSamplingRate="int" EnableBuffering="boolean" />
      </ItemList>
    </Subscribe>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SubscribeResponse ServerSubHandle="string" xmlns="http://opcfoundation.org/webservices/XMLDA/1.0/">
      <SubscribeResult RcvTime="dateTime" ReplyTime="dateTime" ClientRequestHandle="string" RevisedLocaleID="string" ServerState="running or failed or noConfig or suspended or test or commFault" />
      <RItemList RevisedSamplingRate="int">
        <Items RevisedSamplingRate="int">
          <ItemValue ClientItemHandle="string" Timestamp="dateTime" ResultID="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace" ValueTypeQualifier="q1:QName" ItemPath="string" ItemName="string">
            <DiagnosticInfo>string</DiagnosticInfo>
            <Value />
            <Quality xsi:nil="true" />
          </ItemValue>
        </Items>
        <Items RevisedSamplingRate="int">
          <ItemValue ClientItemHandle="string" Timestamp="dateTime" ResultID="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace" ValueTypeQualifier="q1:QName" ItemPath="string" ItemName="string">
            <DiagnosticInfo>string</DiagnosticInfo>
            <Value />
            <Quality xsi:nil="true" />
          </ItemValue>
        </Items>
      </RItemList>
      <Errors ID="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace">
        <Text>string</Text>
      </Errors>
      <Errors ID="q1:QName" xmlns:q1="http://tempuri.org/SampleNamespace">
        <Text>string</Text>
      </Errors>
    </SubscribeResponse>
  </soap12:Body>
</soap12:Envelope>