Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fake TREX #16

Open
chumpa opened this issue Jun 3, 2023 · 2 comments
Open

Fake TREX #16

chumpa opened this issue Jun 3, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@chumpa
Copy link
Member

chumpa commented Jun 3, 2023

Прикидываться Trexом

@chumpa
Copy link
Member Author

chumpa commented Jun 4, 2023

При активации:

POST http://zzz:80/TrexProcessor/basic?style=document

<SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<SOAP-ENV:Body>
		<yq1:activateIndex xmlns:yq1='urn:TrexProcessorVi'>
			<yq1:trexProcessorConfiguration xmlns:pns='urn:com.sap.aii.af.service.trex.ws.impl'>
				<pns:trexProcessorConfiguration>
					<pns:analyserType>2</pns:analyserType>
					<pns:deindPeriod>1440</pns:deindPeriod>
					<pns:indPeriod>60</pns:indPeriod>
					<pns:indexId>xi_msg:af.fa0.fake0db</pns:indexId>
					<pns:isActive>true</pns:isActive>
					<pns:logLevel>0</pns:logLevel>
					<pns:modifiedBy>user</pns:modifiedBy>
					<pns:modifyTimestamp>2023-06-04T05:33:30.539+00:00</pns:modifyTimestamp>
					<pns:msgMaxSize>1048576</pns:msgMaxSize>
					<pns:packCounter>100</pns:packCounter>
					<pns:packMaxSize>1024</pns:packMaxSize>
					<pns:qMaxSize>10000</pns:qMaxSize>
					<pns:qPeriod>30</pns:qPeriod>
					<pns:retPeriod>30</pns:retPeriod>
					<pns:useQServer>true</pns:useQServer>
				</pns:trexProcessorConfiguration>
			</yq1:trexProcessorConfiguration>
		</yq1:activateIndex>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

@chumpa
Copy link
Member Author

chumpa commented Jun 4, 2023

  1. Клиент Trex находится в tctrexclient_api.jar и он достаточно простой
  2. В NWA есть "Trex Service" (trex.service) в котором надо указать дестинейшон tcpip://trex:port и тогда туда прилетит пакет вида TNS (OBJ) gethttpservers client_id 4JavaClient on: xxxxxxxx: Linux:4.4.82-6.9-default, расковырять который несложно, имея клиента и работающий сервер. Принцип сериализации простой, клиент в com.sapportals.trex.tns.TNSClient
  3. Поначалу смотрел на обилие классов в SLD но здесь это ненужная часть работы

@chumpa chumpa added the enhancement New feature or request label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant