Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

Java, the OLPC, and community responsibility

The "One Laptop Per Child" project has a great device ready to ship, but there's no Java on there. Let's think about working together to put Java on OLPC!
Replies: 2 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

Generic Web Connector configuration: How are URLs used?

At 5:31 PM on Aug 7, 2008, Michael Giroux wrote:

The Generic Web Connector docs at
http://wiki.eclipse.org/index.php/Mylyn_User_Guide#Generic_Web_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?



  Click to reply to this thread Reply
1. At 5:48 PM on Aug 7, 2008, Michael Giroux wrote:

Re: Generic Web Connector configuration: How are URLs used?

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


  Click to reply to this thread Reply
2. At 6:12 PM on Aug 7, 2008, Eugene Kuleshov DeveloperZone Top 100 wrote:

Re: Generic Web Connector configuration: How are URLs used?

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


thread.rss_message