Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRKD /
avatar image
Question by lalit8 · Nov 27, 2019 at 06:10 AM · createservicetoken1

We are trying to hit service through postman but failed. The service we are not able hit is as below: "https://api.trkd.thomsonreuters.com/api/TokenManagement/TokenManagement.svc/Anonymous Please suggest something..."

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

8 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by jirapongse.phuriphanvichai · Dec 03, 2019 at 04:05 AM

@lalit8

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.


1575345505792.png (8.3 KiB)
1575345920309.png (174.9 KiB)
Comment
lalit8

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by jirapongse.phuriphanvichai · Nov 27, 2019 at 08:08 AM

@lalit8

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>



1574841882457.png (33.4 KiB)
1574841963474.png (85.8 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by lalit8 · Nov 27, 2019 at 09:14 AM

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>

Comment

People who like this

0 Show 4 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
jirapongse.phuriphanvichai ♦♦ · Nov 27, 2019 at 10:00 AM 0
Share

Can you export the collection and share it?

1574848790068.png (42.9 KiB)
1574848830068.png (28.9 KiB)
avatar image
lalit8 jirapongse.phuriphanvichai ♦♦ · Nov 27, 2019 at 10:26 AM 0
Share

Header.jpgPlease find file for header and response. I am passing the same body as you mentioned above with my credentials

ScreenShot.jpgResponse.txt

header.jpg (42.5 KiB)
response.txt (1.8 KiB)
avatar image
REFINITIV
jirapongse.phuriphanvichai ♦♦ lalit8 · Nov 27, 2019 at 10:45 AM 0
Share

Please make sure there is no line break in the <a:Action> element.

1574851408656.png (42.1 KiB)
avatar image
REFINITIV
Answer by jirapongse.phuriphanvichai · Nov 28, 2019 at 03:22 AM

@lalit8

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.


1574911226590.png (17.1 KiB)
1574911329338.png (69.9 KiB)
Comment
lalit8

People who like this

1 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
lalit8 · Nov 28, 2019 at 04:45 AM 0
Share

Please check the latest response

I think i got message " Invalid client id reason". But i passed the correct one.

Please suggest

Response.txt.

response.txt (1.7 KiB)
avatar image
REFINITIV
Answer by jirapongse.phuriphanvichai · Nov 28, 2019 at 05:02 AM

@lalit8

Please make sure that the xmlns attribute in the ApplicationID element is http://www.reuters.com/ns/2006/05/01/webservices/rkd/Common_1.



1574917313706.png (17.9 KiB)
Comment
lalit8

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by lalit8 · Nov 28, 2019 at 05:23 AM

Still not able to get desired result. Please find Body which i am send and response which i am getting as attached files.


Request Body.txtResponse.txt


request-body.txt (907 B)
response.txt (1.4 KiB)
Comment

People who like this

0 Show 3 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
jirapongse.phuriphanvichai ♦♦ · Nov 28, 2019 at 06:30 AM 0
Share

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.

avatar image
lalit8 jirapongse.phuriphanvichai ♦♦ · Nov 28, 2019 at 07:13 AM 0
Share

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?

avatar image
REFINITIV
jirapongse.phuriphanvichai ♦♦ lalit8 · Nov 28, 2019 at 07:30 AM 0
Share

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>
avatar image
Answer by lalit8 · Dec 02, 2019 at 05:49 AM

Thank you for your support. i have created a token successfully after resetting my password.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by lalit8 · Dec 02, 2019 at 06:03 AM

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

Request Body.txt



request-body.txt (864 B)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
7 People are following this question.

Related Questions

SSLHandshakeException while calling TRKD API

consumes create token service by using json

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges