Hello,
I am experiencing a problem during the selection of an "XML and Web Services" data source during design time when using Service Authorization in my WCF web service.
After I specify the HTTP(S) XML URL and the HTTP(S) Schema URL (no logon credentials required; "Validate XML" unchecked; no HTTP parameters), I receive the error in the attached popup (some digits of the API key have been whited-out).
The pattern of the WS URL is as follows and is what the server expects:
http://localhost/m2WS/DatimbiIntegration.svc/GetDataView/463/en/3/xx/1234456070797855906
In the attachment, what I've highlighted in red is the query string being appended automatically by CR. The problem is, this returns an error as the web service pattern is not expecting any query string appended to the URL.
- Validate XML=0
- Use WS-Security Config File=0
- WS-Security File Location=
If in the web.config file of my web service I remove the Service Authorization line, the query string is NOT appended and it works fine:
<serviceAuthorization serviceAuthorizationManagerType="m2WS.APIKeyAuthorization, m2WS" />
However, it's important that this Service Authorization is present at design time, since external developers can design reports for the application.
Notes:
- If I type in the above URL directly into a browser, it responds normally without any further prompting (for both the XML URL and the Schema URL)
- At run time, I programmatically set the HTTP(S) XML URL and the HTTP(S) Schema URL using the above pattern (without any query string parameters) and it works fine.
So the key question is: during design time, how can I force CR to NOT append any query string to the HTTP(S) XML URL and the HTTP(S) Schema URL when establishing the report data source when using Service Authorization in my WCF web service?
Thank you,
Richard