找不到元素'DailySalesReportRQ'的声明

时间:2018-11-05 11:40:36

标签: sabre

鉴于我的伪代码和日期,我试图发送每日销售报告请求,但出现错误。以下是我的要求:

library(purrr)
map(transpose(lst), bind_rows)
#$train_stats
# A tibble: 10 x 4
#   isSameUser     n cum_n user_id
#   <fct>      <int> <int>   <int>
# 1 0            212   212       1
# 2 1             72   284       1
# 3 0            238   238       2
# 4 1             46   284       2
# 5 0            232   232       3
# 6 1             52   284       3
# 7 0            224   224       4
# 8 1             60   284       4
# 9 0            232   232       5
#10 1             52   284       5

#$test_stats
# A tibble: 10 x 4
#   isSameUser     n cum_n user_id
#   <fct>      <int> <int>   <int>
# 1 0             54    54       1
# 2 1             18    72       1
# 3 0             60    60       2
# 4 1             12    72       2
# 5 0             58    58       3
# 6 1             14    72       3
# 7 0             56    56       4
# 8 1             16    72       4
# 9 0             58    58       5
#10 1             14    72       5

#$test_set_error
# A tibble: 5 x 2
#  error_abs_perc user_id
#           <dbl>   <int>
#1         0.0694       1
#2         0.0556       2
#3         0.0139       3
#4         0.0694       4
#5         0.0139       5

以下是来自API的响应:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
	<SOAP-ENV:Header>
		<eb:MessageHeader SOAP-ENV:mustUnderstand="1" eb:version="1.0">
			<eb:From>
				<eb:PartyId>Client</eb:PartyId>
			</eb:From>
			<eb:To>
				<eb:PartyId>SWS</eb:PartyId>
			</eb:To>
			<eb:CPAId></eb:CPAId>
			<eb:ConversationId>{{convID}}</eb:ConversationId>
			<eb:Service>DailySalesReportService</eb:Service>
			<eb:Action>DailySalesReportLLSRQ</eb:Action>
		</eb:MessageHeader>
		<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext">
			<wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">MY_TOKEN</wsse:BinarySecurityToken>
		</wsse:Security>
	</SOAP-ENV:Header>
	<SOAP-ENV:Body>
	<DailySalesReportRQ Version="2.0.0">
	<SalesReport PseudoCityCode="U16D" StartDate="2018-10-01"/>
	</DailySalesReportRQ>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

我的代码有什么问题?我试图删除DailySalesReportRQ的版本,但随后出现一个新错误:org.jibx.runtime.JiBXException:元素“ DailySalesReportRQ”没有解组器

0 个答案:

没有答案