InfoService


Click here for a complete list of operations.

LoginByInstance

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 /app/InfoService.asmx HTTP/1.1
Host: ws.eprica.ru
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.spargo.ru/es/LoginByInstance"

<?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>
    <LoginByInstance xmlns="http://www.spargo.ru/es">
      <wsUser>
        <IdInstance>int</IdInstance>
        <IsReliable>boolean</IsReliable>
        <ComputerInfoHashV2>string</ComputerInfoHashV2>
        <LicenseNumber>string</LicenseNumber>
        <SessionId>guid</SessionId>
        <GuidDrugstore>guid</GuidDrugstore>
        <KodDrugstore>long</KodDrugstore>
        <Login>string</Login>
        <PasswordHash>string</PasswordHash>
        <Version>string</Version>
        <Comment>string</Comment>
        <ComputerInfoHash>string</ComputerInfoHash>
        <ComputerInfo>
          <ProcessorName>string</ProcessorName>
          <ClockSpeedHz>int</ClockSpeedHz>
          <NumberOfCores>int</NumberOfCores>
          <NumberOfProcessors>int</NumberOfProcessors>
          <MemoryMb>int</MemoryMb>
          <HardDriveTotalSizeGb>int</HardDriveTotalSizeGb>
          <ScreenResolutionX>int</ScreenResolutionX>
          <ScreenResolutionY>int</ScreenResolutionY>
          <OsName>string</OsName>
          <OsArchitecture>string</OsArchitecture>
          <OsServicePack>int</OsServicePack>
          <OsInstallDate>dateTime</OsInstallDate>
          <OsDigitalProductId>string</OsDigitalProductId>
          <OsVersionInfoEx>string</OsVersionInfoEx>
          <ComputerName>string</ComputerName>
          <PhysicalAddress>string</PhysicalAddress>
        </ComputerInfo>
        <DownloadedUpdateVersion>string</DownloadedUpdateVersion>
        <HashData>string</HashData>
      </wsUser>
      <password>string</password>
    </LoginByInstance>
  </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>
    <LoginByInstanceResponse xmlns="http://www.spargo.ru/es">
      <LoginByInstanceResult>
        <IdInstance>int</IdInstance>
        <KodDrugstore>int</KodDrugstore>
        <ComputerInfoHash>string</ComputerInfoHash>
        <IsReliable>boolean</IsReliable>
        <SessionId>guid</SessionId>
        <LoginMsg>string</LoginMsg>
        <AccessCodeNew>string</AccessCodeNew>
        <ContentServiceUrl>string</ContentServiceUrl>
        <ProAptekaNewsUrl>string</ProAptekaNewsUrl>
        <PackSize>int</PackSize>
        <MobOrderCheckIntervalSec>int</MobOrderCheckIntervalSec>
        <IsMobOrderDisabled>boolean</IsMobOrderDisabled>
        <HasMobOrder>boolean</HasMobOrder>
        <LastLogSave>dateTime</LastLogSave>
      </LoginByInstanceResult>
    </LoginByInstanceResponse>
  </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 /app/InfoService.asmx HTTP/1.1
Host: ws.eprica.ru
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>
    <LoginByInstance xmlns="http://www.spargo.ru/es">
      <wsUser>
        <IdInstance>int</IdInstance>
        <IsReliable>boolean</IsReliable>
        <ComputerInfoHashV2>string</ComputerInfoHashV2>
        <LicenseNumber>string</LicenseNumber>
        <SessionId>guid</SessionId>
        <GuidDrugstore>guid</GuidDrugstore>
        <KodDrugstore>long</KodDrugstore>
        <Login>string</Login>
        <PasswordHash>string</PasswordHash>
        <Version>string</Version>
        <Comment>string</Comment>
        <ComputerInfoHash>string</ComputerInfoHash>
        <ComputerInfo>
          <ProcessorName>string</ProcessorName>
          <ClockSpeedHz>int</ClockSpeedHz>
          <NumberOfCores>int</NumberOfCores>
          <NumberOfProcessors>int</NumberOfProcessors>
          <MemoryMb>int</MemoryMb>
          <HardDriveTotalSizeGb>int</HardDriveTotalSizeGb>
          <ScreenResolutionX>int</ScreenResolutionX>
          <ScreenResolutionY>int</ScreenResolutionY>
          <OsName>string</OsName>
          <OsArchitecture>string</OsArchitecture>
          <OsServicePack>int</OsServicePack>
          <OsInstallDate>dateTime</OsInstallDate>
          <OsDigitalProductId>string</OsDigitalProductId>
          <OsVersionInfoEx>string</OsVersionInfoEx>
          <ComputerName>string</ComputerName>
          <PhysicalAddress>string</PhysicalAddress>
        </ComputerInfo>
        <DownloadedUpdateVersion>string</DownloadedUpdateVersion>
        <HashData>string</HashData>
      </wsUser>
      <password>string</password>
    </LoginByInstance>
  </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>
    <LoginByInstanceResponse xmlns="http://www.spargo.ru/es">
      <LoginByInstanceResult>
        <IdInstance>int</IdInstance>
        <KodDrugstore>int</KodDrugstore>
        <ComputerInfoHash>string</ComputerInfoHash>
        <IsReliable>boolean</IsReliable>
        <SessionId>guid</SessionId>
        <LoginMsg>string</LoginMsg>
        <AccessCodeNew>string</AccessCodeNew>
        <ContentServiceUrl>string</ContentServiceUrl>
        <ProAptekaNewsUrl>string</ProAptekaNewsUrl>
        <PackSize>int</PackSize>
        <MobOrderCheckIntervalSec>int</MobOrderCheckIntervalSec>
        <IsMobOrderDisabled>boolean</IsMobOrderDisabled>
        <HasMobOrder>boolean</HasMobOrder>
        <LastLogSave>dateTime</LastLogSave>
      </LoginByInstanceResult>
    </LoginByInstanceResponse>
  </soap12:Body>
</soap12:Envelope>