GetSubscriber
Параметры
Название | Тип | Описание |
id | Guid | Идентификатор подписчика |
Возвращаемое значение
Описание
Возвращает информацию о подписчике с определенным идентификатором.
Возможные ошибки
Код | Текст ошибки |
807 | Не удалось преобразовать входную строку в тип GUID. Проверьте правильность ввода идентификатора |
75 | Подписчик с указанным кодом не найден |
Пример для XmlOverHttp
запрос
ответ
<?xml version="1.0" encoding="utf-8"?>
<GetSubscriberResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetSubscriberResult>
<Data>
<MontSubscriberId>54e3081c-f787-4e33-bc99-cc2e3aa392c7</MontSubscriberId>
<CreateDate>2015-06-26T15:29:54.597</CreateDate>
<ResellerLogin>testme</ResellerLogin>
<Registrations>
<RegistrationContract>
<Supplier>CREST</Supplier>
<Login>t2gmailcom</Login>
<Password>0K548080ZafKs</Password>
<RegFields>
<RegItemContract>
<FieldName>DomainPrefix</FieldName>
<FieldValue>t2gmailcomXX36</FieldValue>
<ClientVisible>true</ClientVisible>
</RegItemContract>
...
<RegItemContract>
<FieldName>LoginUrl</FieldName>
<FieldValue>https://portal.office.com</FieldValue>
<ClientVisible>false</ClientVisible>
</RegItemContract>
</RegFields>
<IsActivated>true</IsActivated>
<ActivationDate>2015-06-26T15:29:54.597</ActivationDate>
</RegistrationContract>
</Registrations>
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors/>
</GetSubscriberResult>
</GetSubscriberResponse>
Пример для SOAP
запрос
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2.svc
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
<soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702">
<wsse:Security soap:mustUnderstand="true"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-0C97A913BFEA47D23B14440311653047">
<wsse:Username>login</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
password
</wsse:Password>
<wsse:Nonce
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">
ZqxhcMo+G1AyQgfgqidMXg==
</wsse:Nonce>
<wsu:Created>2015-10-05T07:46:05.304Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
<wsrm:Sequence>
<wsrm:Identifier>
s:Sender
a:InvalidSecurity
</wsrm:Identifier>
<wsrm:MessageNumber>1</wsrm:MessageNumber>
</wsrm:Sequence>
<wsa:Action>http://tempuri.org/IB2BServiceV2/GetSubscriber</wsa:Action>
<wsa:MessageID>uuid:27fff6ff-8167-4855-a0c3-31b7c6f1c8e8</wsa:MessageID>
<wsa:To>https://tayga:453/Version2/Service/B2BServiceV2.svc</wsa:To>
</soap:Header>
<soap:Body>
<tem:GetSubscriber>
<!--Optional:-->
<tem:id>292711c6-8858-4dae-a6b7-69cd7776922e</tem:id>
</tem:GetSubscriber>
</soap:Body>
</soap:Envelope>
ответ
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1">http://tempuri.org/IB2BServiceV2/GetSubscriberResponse</a:Action>
<a:RelatesTo>uuid:27fff6ff-8167-4855-a0c3-31b7c6f1c8e8</a:RelatesTo>
<o:Security s:mustUnderstand="1"
xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>2015-10-05T07:46:04.518Z</u:Created><u:Expires>2015-10-05T07:51:04.518Z</u:Expires>
</u:Timestamp>
</o:Security>
</s:Header>
<s:Body>
<GetSubscriberResponse xmlns="http://tempuri.org/">
<GetSubscriberResult xmlns:b="http://schemas.datacontract.org/2004/07/WebStore2.B2B.Version2.Contracts.Responses"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<b:Data xmlns:c="http://schemas.datacontract.org/2004/07/WebStore2.B2B.Version2.Contracts.Subscriber">
<c:CreateDate>2015-06-09T14:26:43.563</c:CreateDate><c:EMail>petrov@mail.ru</c:EMail><c:Login i:nil="true" />
<c:MontSubscriberId>292711c6-8858-4dae-a6b7-69cd7776922e</c:MontSubscriberId><c:Registrations />
<c:ResellerLogin>login</c:ResellerLogin>
</b:Data>
<b:ErrorCode>0</b:ErrorCode><b:ErrorText /><b:Errors /><b:IsError>false</b:IsError>
</GetSubscriberResult>
</GetSubscriberResponse>
</s:Body>
</s:Envelope>