Quantcast
Channel: Active questions tagged atom-feed+feed+rss - Stack Overflow
Viewing all articles
Browse latest Browse all 47

Getting WCM Web Content Integrator to Add Images to Content from RSS Feed

$
0
0

The WCM Web Content Integrator fills in the fields of a piece of content based on information provided in the rss feed. We have a feed working with a WCM portal, and all the fields are being filled successfully except for the image element.

Here is the full rss:

<rss xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:ibmfs="http://purl.org/net/ibmfeedsvc/feedsvc/1.0" version="2.0"><channel><title>Demo Site Feed</title><link>http://www.ibm.com/feeds/sample.rss</link><atom:link href="http://www.ibm.com/feeds/sample.rss" rel="self" type="application/rss+xml"/><description>Demo Feed</description><lastBuildDate>Tue, 15 Mar 2022 18:53:27 GMT</lastBuildDate><ibmfs:etag>Tue, 15 Mar 2022 18:53:27 GMT</ibmfs:etag><item><ibmwcm:displayTitle>A Brand New Event 2</ibmwcm:displayTitle><title>a-brand-new-event-2-620fecfa527987c0b865acf6</title><ibmwcm:library>English Content</ibmwcm:library><ibmwcm:itemType>content</ibmwcm:itemType><ibmwcm:keywords>A Brand New Event 2</ibmwcm:keywords><guid isPermaLink="false">620fecfa527987c0b865acf6</guid><ibmwcm:access type="user">[all users]</ibmwcm:access><ibmwcm:action>update</ibmwcm:action><ibmwcm:workflow name="English Content Workflow" library="Design"><ibmwcm:workflowStage>Publish</ibmwcm:workflowStage></ibmwcm:workflow><ibmwcm:authoringTemplate library="Design">Event</ibmwcm:authoringTemplate><ibmwcm:path>/demosite/get-involved/events/</ibmwcm:path><ibmwcm:element name="location"><ibmwcm:type>shorttext</ibmwcm:type><ibmwcm:value>6150 Huntley Rd, Columbus, OH 43229, USA</ibmwcm:value></ibmwcm:element><ibmwcm:element name="locationEmbeddedGoogleMap"><ibmwcm:type>html</ibmwcm:type><ibmwcm:value><iframe src="https://gis5.oit.ohio.gov/IOP/?ll=-82.99685509999999,40.090641&lbl=&zm=12"></iframe></ibmwcm:value></ibmwcm:element><ibmwcm:element name="locationURL"><ibmwcm:type>link</ibmwcm:type><ibmwcm:format>ExternalLink</ibmwcm:format><ibmwcm:linkText/><ibmwcm:value>https://www.google.com/maps?daddr=40.090641,-82.99685509999999</ibmwcm:value></ibmwcm:element><ibmwcm:element name="location"><ibmwcm:type>shorttext</ibmwcm:type><ibmwcm:value>6150 Huntley Rd, Columbus, OH 43229, USA</ibmwcm:value></ibmwcm:element><ibmwcm:element name="startDateAndTime"><ibmwcm:type>date</ibmwcm:type><ibmwcm:value>Wed, 13 Apr 2022 22:00:00 GMT</ibmwcm:value></ibmwcm:element><ibmwcm:element name="endDateAndTime"><ibmwcm:type>date</ibmwcm:type><ibmwcm:value>Thu, 14 Apr 2022 00:00:00 GMT</ibmwcm:value></ibmwcm:element><ibmwcm:element name="body"><ibmwcm:type>rich text</ibmwcm:type><ibmwcm:value><![CDATA[ This where we talk about all the fun stuff we'll have. ]]></ibmwcm:value></ibmwcm:element><ibmwcm:element name="summary"><ibmwcm:type>text</ibmwcm:type><ibmwcm:value>This where we talk about all the fun stuff we'll have.</ibmwcm:value></ibmwcm:element><ibmwcm:element name="topics"><ibmwcm:type>option</ibmwcm:type><ibmwcm:optionType>taxonomy</ibmwcm:optionType><ibmwcm:selectedCategory library="Taxonomy">/Categories/Event Type/Festival</ibmwcm:selectedCategory><ibmwcm:selectedCategory library="Taxonomy">/Categories/Event Type/Live Music</ibmwcm:selectedCategory></ibmwcm:element><ibmwcm:element name="image"><ibmwcm:type>image</ibmwcm:type><ibmwcm:source>https://cdn.pixabay.com/photo/2022/03/06/05/30/clouds-7050884_1280.jpg</ibmwcm:source></ibmwcm:element><ibmwcm:element name="thumbnail"><ibmwcm:type>image</ibmwcm:type><ibmwcm:source>https://cdn.pixabay.com/photo/2022/03/06/05/30/clouds-7050884_1280.jpg</ibmwcm:source></ibmwcm:element><ibmwcm:element name="locationName"><ibmwcm:type>shorttext</ibmwcm:type><ibmwcm:value>test</ibmwcm:value></ibmwcm:element><ibmwcm:element name="portalLocation"><ibmwcm:type>option</ibmwcm:type><ibmwcm:optionType>taxonomy</ibmwcm:optionType><ibmwcm:selectedCategory library="Taxonomy">Portal Locations/Demo Site/Test</ibmwcm:selectedCategory></ibmwcm:element><ibmwcm:element name="organizerContact"><ibmwcm:type>rich text</ibmwcm:type><ibmwcm:value><![CDATA[ <p>Somebody<br /><strong>Phone: </strong>(877) 878-7887<br /><strong>Email: </strong><a href = 'mailto:somebody@site.com'>somebody@site.com</a></p> ]]></ibmwcm:value></ibmwcm:element><ibmwcm:element name="additionalInformation"><ibmwcm:type>rich text</ibmwcm:type><ibmwcm:value><![CDATA[ List of additional information ]]></ibmwcm:value></ibmwcm:element></item></channel></rss>

Here is the section specific to image elements:

<ibmwcm:element name="image"><ibmwcm:type>image</ibmwcm:type><ibmwcm:source>https://cdn.pixabay.com/photo/2022/03/06/05/30/clouds-7050884_1280.jpg</ibmwcm:source></ibmwcm:element><ibmwcm:element name="thumbnail"><ibmwcm:type>image</ibmwcm:type><ibmwcm:source>https://cdn.pixabay.com/photo/2022/03/06/05/30/clouds-7050884_1280.jpg</ibmwcm:source></ibmwcm:element>

The only error in the logs is this:

[3/14/22 21:10:52:066 GMT] 0001e99a ContentWrappe E  A WCMException was thrown while updating a component image on a-brand-new-event-2

Our code matches the format in the documentation, and we've exhausted ways we know to troubleshoot (including trying to increase the amount of data provided by the log trace). If anyone can give us info on how to get the images work, I'd greatly appreciate it!


Viewing all articles
Browse latest Browse all 47

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>