We are trying to hit service through postman but failed. The service we are not able hit is as be...
Best Answer
-
I found two errors in the request message.
1. The "soap-envelope" in the xmlns attribute must be lowercase
2. The ApplicationID and Token must be in the Authorization element
<Authorization xmlns="http://www.reuters.com/ns/2006/05/01/webservices/rkd/Common_1">
<ApplicationID xmlns="http://www.reuters.com/ns/2006/05/01/webservices/rkd/Common_1">Wael***** </ApplicationID>
<Token>Token_123</Token>
</Authorization>To verify the valid SOAP message, you can access the Knowledge Direct API website and then choose the service in the API Catalog.
In the DEVELOP tab, you will see the valid message in the Request Inspect.
0
Answers
-
From my test, it works fine.
I have sent an HTTP post message to that URL. The headers contain "Content-Type": "application/soap+xml" field.
The body contains a soap message with TRKD credentials.
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:To>https://api.trkd.thomsonreuters.com/api/TokenManagement/TokenManagement.svc/Anonymous</a:To>
<a:MessageID>1</a:MessageID>
<a:Action>http://www.reuters.com/ns/2006/05/01/webservices/rkd/TokenManagement_1/CreateServiceToken_1</a:Action>
</s:Header>
<s:Body>
<CreateServiceToken_Request_1 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.reuters.com/ns/2006/05/01/webservices/rkd/TokenManagement_1">
<ApplicationID xmlns="http://www.reuters.com/ns/2006/05/01/webservices/rkd/Common_1">appid</ApplicationID>
<Username>username</Username>
<Password>password</Password>
</CreateServiceToken_Request_1>
</s:Body>
</s:Envelope>0 -
Thank you so much for reply.
But after doing changes/Things suggest by you.
I am getting following response:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://www.reuters.com/ns/2006/05/01/webservices/rkd/Faults_1/Fault_1_Reply</a:Action>
<a:RelatesTo>1</a:RelatesTo>
</s:Header>
<s:Body>
<s:Fault>
<s:Code>
<s:Value>s:Receiver</s:Value>
<s:Subcode>
<s:Value xmlns:a="http://www.reuters.com/ns/2006/05/01/webservices/rkd/Faults_1">a:General_UnhandledException</s:Value>
</s:Subcode>
</s:Code>
<s:Reason>
<s:Text xml:lang="en-US">The message with Action 'http://www.reuters.com/ns/2006/05/01/
webservices/rkd/TokenManagement_1/CreateServiceToken_1' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</s:Text>
</s:Reason>
<s:Detail>
<ClientErrorReference xmlns="http://www.reuters.com/ns/2006/05/01/webservices/rkd/Faults_1" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Timestamp>2019-11-27T09:12:47.7537841Z</Timestamp>
<ErrorReference>15fb71293af84410a4e1a22aca8ae78d</ErrorReference>
<ServerReference>A606B5FBEDC29191B5DA04E00FAE2F8EDB760BABC8E73BA1</ServerReference>
</ClientErrorReference>
</s:Detail>
</s:Fault>
</s:Body>
</s:Envelope>
0 -
Can you export the collection and share it?
0 -
Header.jpgPlease find file for header and response. I am passing the same body as you mentioned above with my credentials
ScreenShot.jpgResponse.txt
0 -
Please make sure there is no line break in the <a:Action> element.
0 -
Still getting Error. Please find attached response
0 -
From the response, there is a space character in the URL.
Please make sure there is no line break or space in the URLs in the request message.
0 -
Please check the latest response
I think i got message " Invalid client id reason". But i passed the correct one.
Please suggest
0 -
Please make sure that the xmlns attribute in the ApplicationID element is http://www.reuters.com/ns/2006/05/01/webservices/rkd/Common_1.
0 -
Still not able to get desired result. Please find Body which i am send and response which i am getting as attached files.
0 -
Can you test with an invalid credential, such as "TestUser" and "TestPassword"?
You will get a:Security_InvalidLoginPassword. Is it correct?If yes, your password may contain special characters, such as '&'. Please confirm.
0 -
We are not trying with invalid credentials such as "TestUser" and "TestPassword".
But you are write. Our current password has special character like @ , &.
What should i do now?
0 -
I have searched for solutions in Google and found that they suggest using CDATA.
Please try to set a password in CDATA.
<Password><![CDATA[test&password]]></Password>
Or, please change the & to <![CDATA[%26]]>.
<Password>Test<![CDATA[%26]]>Pass</Password>
0 -
Thank you for your support. i have created a token successfully after resetting my password.
0 -
Now i am trying to hit this "http://api.trkd.thomsonreuters.com/api/Quotes/Quotes.svc " service by passing token created by hitting this service "https://api.trkd.thomsonreuters.com/api/TokenManagement/TokenManagement.svc/Anonymous ".
But getting error bad request.
Please find message body as an attachment. Please suggest something
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 695 Datastream
- 1.5K DSS
- 631 Eikon COM
- 5.2K Eikon Data APIs
- 12 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 562 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 736 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 96 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛