[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-devel
Subject:    Re: ingesting new stories from alternative CMSes
From:       Greg Heo <greg () node79 ! com>
Date:       2009-02-27 19:40:00
Message-ID: 699CD2C5-E4C2-419E-B8E2-6A63F99CAEFC () node79 ! com
[Download RAW message or body]

On 27-Feb-09, at 2:09 PM, John Durkin wrote:

> i can create stories using the bric_soap cmd line program, but when  
> I try to
> create stories using Bric::SOAP::Story I can't get it right. there  
> is a
> parameter called "document" which I pass a url (filename because  
> file is in
> same folder) but that doesn't work. what is it expecting in the  
> "document"
> argument... a filename / path or something else?

You need to pass in the contents of the XML document itself  
( {document => $xml_string} ). If you're calling Bric::SOAP::Story  
directly, you can also include 'internal => 1' in the argument list so  
create() will return a plain array rather than the array wrapped in  
SOAP XML.

-Greg

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic