Не удается найти объявление элемента 'DailySalesReportRQ' - PullRequest
0 голосов
/ 05 ноября 2018

Я пытаюсь отправить запрос на ежедневный отчет о продажах с указанием моего псевдокода и даты, но у меня возникла ошибка. ниже моя просьба:

<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>

Ниже приведен ответ от API:

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
   <soap-env:Header>
      <eb:MessageHeader eb:version="1.0" soap-env:mustUnderstand="1" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
         <eb:From>
            <eb:PartyId eb:type="URI">SWS</eb:PartyId>
         </eb:From>
         <eb:To>
            <eb:PartyId eb:type="URI">Client</eb:PartyId>
         </eb:To>
         <eb:CPAId>PCC</eb:CPAId>
         <eb:ConversationId>{{convID}}</eb:ConversationId>
         <eb:Service>DailySalesReportService</eb:Service>
         <eb:Action>DailySalesReportLLSRS</eb:Action>
         <eb:MessageData>
            <eb:MessageId>4721046418618811393</eb:MessageId>
            <eb:Timestamp>2018-11-05T11:37:41</eb:Timestamp>
         </eb:MessageData>
      </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>
      <soap-env:Fault>
         <faultcode>soap-env:Client.Validation</faultcode>
         <faultstring>ERR.SWS.CLIENT.VALIDATION_FAILED</faultstring>
         <detail>
            <stl:ApplicationResults status="NotProcessed" xmlns:stl="http://services.sabre.com/STL/v01">
               <stl:Error timeStamp="2018-11-05T05:37:41-06:00" type="Validation">
                  <stl:SystemSpecificResults>
                     <stl:Message>cvc-elt.1: Cannot find the declaration of element 'DailySalesReportRQ'.</stl:Message>
                     <stl:ShortText>ERR.SWS.CLIENT.VALIDATION_FAILED</stl:ShortText>
                  </stl:SystemSpecificResults>
               </stl:Error>
            </stl:ApplicationResults>
         </detail>
      </soap-env:Fault>
   </soap-env:Body>
</soap-env:Envelope>

Что не так с моим кодом? Я попытался удалить версию DailySalesReportRQ, но затем появилась новая ошибка: org.jibx.runtime.JiBXException: нет демаршаллера для элемента "DailySalesReportRQ"

...