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.
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>
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>
Can you export the collection and share it?
Header.jpgPlease find file for header and response. I am passing the same body as you mentioned above with my credentials
ScreenShot.jpgResponse.txt
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.
Please check the latest response
I think i got message " Invalid client id reason". But i passed the correct one.
Please suggest
Please make sure that the xmlns attribute in the ApplicationID element is http://www.reuters.com/ns/2006/05/01/webservices/rkd/Common_1.
Still not able to get desired result. Please find Body which i am send and response which i am getting as attached files.
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>
Thank you for your support. i have created a token successfully after resetting my password.
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