question

Upvotes
Accepted
13 2 3 5

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

rkd-apirkd
icon clock
10 |1500

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

Upvote
Accepted
38.1k 71 35 53

@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)
icon clock
10 |1500

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

Upvotes
38.1k 71 35 53

@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)
icon clock
10 |1500

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

Upvotes
13 2 3 5

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>

icon clock
10 |1500

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

Can you export the collection and share it?

1574848790068.png (42.9 KiB)
1574848830068.png (28.9 KiB)

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)

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

1574851408656.png (42.1 KiB)
Show more comments
Upvote
38.1k 71 35 53

@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)
icon clock
10 |1500

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

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)
Upvote
38.1k 71 35 53

@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)
icon clock
10 |1500

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

Upvotes
13 2 3 5

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


response.txt (1.4 KiB)
icon clock
10 |1500

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

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.

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?

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>
Upvotes
13 2 3 5

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

icon clock
10 |1500

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

Upvotes
13 2 3 5

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



icon clock
10 |1500

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

Click below to post an Idea Post Idea