TicketGetResponse doesn't contains Article (TicketGetResponse_Article) in OTRS SOAP response

English! place to talk about development, programming and coding
Post Reply
Warlib
Znuny newbie
Posts: 20
Joined: 07 Jan 2015, 21:03
Znuny Version: 3.3.10
Real Name: Andrey
Company: Ridan

TicketGetResponse doesn't contains Article (TicketGetResponse_Article) in OTRS SOAP response

Post by Warlib »

I found how to work with OTRS from .NET application (viewtopic.php?f=64&t=27661&uid=21302&un ... 2J43RXOL4Q), but still have no any ideas why SOAP response for TicketGet is missed ticket Article property. OTRS 3.3.

Request

Code: Select all

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
<s:Header>
<ActivityId xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics" CorrelationId="261a6ea0-feb6-49ef-b61f-f35a258a792a">ffb9efdd-b7cb-43e0-b84a-0f53be4e5ea5</ActivityId>
<VsDebuggerCausalityData xmlns="http://schemas.microsoft.com/vstudio/diagnostics/servicemodelsink">uIDPozx6uK7JUD1KlelnilYjf1YAAAAACFvHYcxA70O4/BDB/e34IvSTo4TZpmJJhEkxMyuyc9kACQAA</VsDebuggerCausalityData>
</s:Header>
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<TicketGet xmlns="http://www.otrs.org/TicketConnector/">
<SessionID>e3XUNikmK4FALVr4ydif97lbT5urbpjN</SessionID>
<TicketID>74743</TicketID>
<ArticleOrder>ASC</ArticleOrder>
</TicketGet>
</s:Body>
</s:Envelope>
Response

Code: Select all

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://www.w3.org/2003/05/soap-encoding" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<soap:Body>
<TicketGetResponse xmlns="http://www.otrs.org/TicketConnector/">
<Ticket>
<Age>288724</Age>
<ArchiveFlag>n</ArchiveFlag>
<ChangeBy>1</ChangeBy>
<Changed>2015-02-13 08:29:34</Changed>
<CreateBy>2</CreateBy>
<CreateTimeUnix>1423805372</CreateTimeUnix>
<Created>2015-02-13 08:29:32</Created>
<CustomerID>...Отдел системного администрирования</CustomerID>
<CustomerUserID>gluhov_a</CustomerUserID>
<EscalationDestinationDate>2015-02-17 08:29:32</EscalationDestinationDate>
<EscalationDestinationIn>48m</EscalationDestinationIn>
<EscalationDestinationTime>1424150972</EscalationDestinationTime>
<EscalationResponseTime>0</EscalationResponseTime>
<EscalationSolutionTime>1424150972</EscalationSolutionTime>
<EscalationTime>56876</EscalationTime>
<EscalationTimeWorkingTime>2880</EscalationTimeWorkingTime>
<EscalationUpdateTime>0</EscalationUpdateTime>
<GroupID>8</GroupID>
<Lock>lock</Lock>
<LockID>2</LockID>
<Owner>gluhov_a</Owner>
<OwnerID>2</OwnerID>
<Priority>2 низкий</Priority>
<PriorityID>2</PriorityID>
<Queue>Техподдержка ИТ::Сервисные заявки</Queue>
<QueueID>22</QueueID>
<RealTillTimeNotUsed>0</RealTillTimeNotUsed>
<Responsible>fedorov_a</Responsible>
<ResponsibleID>3</ResponsibleID>
<SLA>L1 - сервисный запрос</SLA>
<SLAID>1</SLAID>
<Service>Закупки техники и ПО</Service>
<ServiceID>50</ServiceID>
<SolutionTime>56876</SolutionTime>
<SolutionTimeDestinationDate>2015-02-17 08:29:32</SolutionTimeDestinationDate>
<SolutionTimeDestinationTime>1424150972</SolutionTimeDestinationTime>
<SolutionTimeWorkingTime>2880</SolutionTimeWorkingTime>
<State>new</State>
<StateID>16</StateID>
<StateType>new</StateType>
<TicketID>74743</TicketID>
<TicketNumber>2015021310000032</TicketNumber>
<Title>Купить лицензию на cisco 881</Title>
<Type>Сервисный запрос</Type>
<TypeID>11</TypeID>
<UnlockTimeout>1423805373</UnlockTimeout>
<UntilTime>0</UntilTime>
</Ticket>
</TicketGetResponse>
</soap:Body>
</soap:Envelope>
Thank you.
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: TicketGetResponse doesn't contains Article (TicketGetResponse_Article) in OTRS SOAP response

Post by eandrex »

Hi,

if you want to get ticket's articles, you have to include in your request

Code: Select all

<AllArticles>1</AllArticles>
http://otrs.github.io/doc/manual/admin/ ... connectors
Warlib
Znuny newbie
Posts: 20
Joined: 07 Jan 2015, 21:03
Znuny Version: 3.3.10
Real Name: Andrey
Company: Ridan

Re: TicketGetResponse doesn't contains Article (TicketGetResponse_Article) in OTRS SOAP response

Post by Warlib »

Thank you. The same thing with Attached file. :-)
MaxMaz
Znuny newbie
Posts: 30
Joined: 08 Sep 2015, 17:06
Znuny Version: 3.3.9

Re: TicketGetResponse doesn't contains Article (TicketGetResponse_Article) in OTRS SOAP response

Post by MaxMaz »

Hello
If i want to retrieve tickets info (TicketGetResponse_Ticket) from webservice TicketGet?
Post Reply