Generic Web Connector configuration: How are URLs used? [message #55638] |
Thu, 07 August 2008 17:31  |
Eclipse User |
|
|
|
The Generic Web Connector docs at
http://wiki.eclipse.org/index.php/Mylyn_User_Guide#Generic_W eb_Repository_Connector
describe the requirement to configure three URLs and a pattern.
Task URL:
New Task URL:
Query Request URL:
Query Pattern:
How are these URLs used? The Query Request URL for example may also be
provided in a new query, with the interesting difference that on the
repository config page, I can specify a method (POST or GET) while on the
query config dialog the method cannot be specified, so I guess it will be
GET.
Anyway, I'm trying to configure queries for bugs that are assigned to me. I
can use the preview button on the query config to verify the query is
correct, but when I exit the configuration, I get an error dialog:
Could not fetch resource:
http://......
Invalid XML: Error on line 15: The content of elements must consist of
well-formed character data or markup.
How do I figure out what this is about?
Can I examine the xml that is defective in line 15?
|
|
|
|
Re: Generic Web Connector configuration: How are URLs used? [message #55692 is a reply to message #55665] |
Thu, 07 August 2008 18:12  |
Eclipse User |
|
|
|
Michael Giroux wrote:
>> Anyway, I'm trying to configure queries for bugs that are assigned to me.
>> I can use the preview button on the query config to verify the query is
>> correct, but when I exit the configuration, I get an error dialog:
>>
>> Could not fetch resource:
>> http://......
>> Invalid XML: Error on line 15: The content of elements must consist of
>> well-formed character data or markup.
>>
>> How do I figure out what this is about?
>> Can I examine the xml that is defective in line 15?
>>
> The above error is resolved by configuring all three of the URLs in the
> advanced configuration section.
>
> I thought I could eliminate that because I specified URLs in the individual
> queries, but does not seem to be the case.
>
If you specify those urls in the repository configuration, they would
be populated automatically when you create multiple queries for the same
repository. You can also specify different parameters for each query, so
those parameters would be substituted into the query url. If you use
pre-configured repository templates it would work exactly like that.
Also note that if you leave query pattern blank, connector interprets
that as query results are actually an RSS feed and it uses XML parser to
extract the data (actually the ROME library). For some reason I was
under impression that it had been documented somewhere.
regards,
Eugene
|
|
|
Re: Generic Web Connector configuration: How are URLs used? [message #592318 is a reply to message #55638] |
Thu, 07 August 2008 17:48  |
Eclipse User |
|
|
|
> Anyway, I'm trying to configure queries for bugs that are assigned to me.
> I can use the preview button on the query config to verify the query is
> correct, but when I exit the configuration, I get an error dialog:
>
> Could not fetch resource:
> http://.....
> Invalid XML: Error on line 15: The content of elements must consist of
> well-formed character data or markup.
>
> How do I figure out what this is about?
> Can I examine the xml that is defective in line 15?
The above error is resolved by configuring all three of the URLs in the
advanced configuration section.
I thought I could eliminate that because I specified URLs in the individual
queries, but does not seem to be the case.
|
|
|
Re: Generic Web Connector configuration: How are URLs used? [message #592325 is a reply to message #55665] |
Thu, 07 August 2008 18:12  |
Eclipse User |
|
|
|
Michael Giroux wrote:
>> Anyway, I'm trying to configure queries for bugs that are assigned to me.
>> I can use the preview button on the query config to verify the query is
>> correct, but when I exit the configuration, I get an error dialog:
>>
>> Could not fetch resource:
>> http://.....
>> Invalid XML: Error on line 15: The content of elements must consist of
>> well-formed character data or markup.
>>
>> How do I figure out what this is about?
>> Can I examine the xml that is defective in line 15?
>>
> The above error is resolved by configuring all three of the URLs in the
> advanced configuration section.
>
> I thought I could eliminate that because I specified URLs in the individual
> queries, but does not seem to be the case.
>
If you specify those urls in the repository configuration, they would
be populated automatically when you create multiple queries for the same
repository. You can also specify different parameters for each query, so
those parameters would be substituted into the query url. If you use
pre-configured repository templates it would work exactly like that.
Also note that if you leave query pattern blank, connector interprets
that as query results are actually an RSS feed and it uses XML parser to
extract the data (actually the ROME library). For some reason I was
under impression that it had been documented somewhere.
regards,
Eugene
|
|
|
Powered by
FUDForum. Page generated in 0.03721 seconds