Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Feature Discussion > HTML upload interface...
Arleon (Guild Admin) 7/14/2004 11:49 AM EST : RE: HTML upload interface...

Arleon
Posts: 410
Fingers of Fury!

Exciting!

I do have a question though... The wsdl says:

  <soap:Body>
    <Publish xmlns="http://guildportal.com/Services/">
      <userName>string</userName>
      <password>string</password>
      <contentData>
        <ContentInstanceID>int</ContentInstanceID>
        <Title>string</Title>
        <ContentType>string</ContentType>
        <PageID>int</PageID>
        <ContainerName>string</ContainerName>
        <SortOrder>int</SortOrder>
      </contentData>
    </Publish>
  </soap:Body>

In contentData, what are the PageID and ContainerName, and where does the actual content go?

I am guessing PageID is the same as TabID, but I wanted to be sure..
Hunter Arleon
Garden Stalker of Tholuxe Paells
Through The Never
"I am the would behind the arrow..."
TopBottom

Aaron Lewis (Blue Collar) 7/14/2004 12:20 PM EST : RE: HTML upload interface...
GuildPortal Dev
Aaron Lewis
Posts: 1979
Zomgawsh Poster

name="2999414">

Sorry about that... ContainerName is either LeftPane, ContentPane, or RightPane.  The FreeForm class extends ContentData, and only adds one additional property called “Html”.  Sorry about not specifying that earlier!

And yes, the PageID is the same as TabID you see in the browser address bar.  Makes it possible to move the content around if you want to.

Aaron Lewis, GuildPortal.com
TopBottom

Arleon (Guild Admin) 7/14/2004 1:50 PM EST : RE: HTML upload interface...

Arleon
Posts: 410
Fingers of Fury!

Great! I will play with it after raid is over, and if I get it to work, I will post the java used.
Hunter Arleon
Garden Stalker of Tholuxe Paells
Through The Never
"I am the would behind the arrow..."
TopBottom

Arleon (Guild Admin) 7/14/2004 7:07 PM EST : RE: HTML upload interface...

Arleon
Posts: 410
Fingers of Fury!

After trying to code this, I recommend breaking it into separate methods:

Publish()
SettingObject GetContentOptions(ContentInstanceID)
SetContentOptions(ContentInstanceID, ContentOptionsObject)

Where there is some new ContentOptionsObject(){}

I may not know (or care) at publish time what the values are for the ContentPane, Title, etc.. and this way it is more like the existing interactive process.Options for other content types can all be derived from a base ContentOptionsObject class.

Also, nice for future, would be:
PageSettings(){}
PageObject(){}

ArrayOfPageObjects GetPages()
ArrayOfIntegers GetPageContentInstanceIDs(PageObject.ID)
int AddPageObject(PageSettings) // returns new PageID
int AddContent(ContentOptionsObject) // returns contentInstanceID
Hunter Arleon
Garden Stalker of Tholuxe Paells
Through The Never
"I am the would behind the arrow..."
TopBottom

Arleon (Guild Admin) 7/15/2004 10:17 AM EST : RE: HTML upload interface...

Arleon
Posts: 410
Fingers of Fury!

When trying to call getFreeFormData, I am getting an error. I checked the actual XML on the wire and it looked fine.

The error is:
Server was unable to process request. --> Invalid login for publishing the specified content, or the content instance specified does not exist!

The XML on the wire is:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <GetFreeForm xmlns="http://guildportal.com/Services/">
   <userName>TTN_AutoPoster</userName>
   <password>removed_password</password>
   <contentInstanceID>660038</contentInstanceID>
  </GetFreeForm>
 </soapenv:Body>
</soapenv:Envelope>
Hunter Arleon
Garden Stalker of Tholuxe Paells
Through The Never
"I am the would behind the arrow..."
TopBottom

Arleon (Guild Admin) 7/15/2004 10:37 AM EST : RE: HTML upload interface...

Arleon
Posts: 410
Fingers of Fury!

I am getting the same error for publish. Here is the XML on the wire:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <Publish xmlns="http://guildportal.com/Services/">
   <userName>TTN_AutoPoster</userName>
   <password>removed_password</password>
   <contentData xsi:type="ns1:FreeForm" xmlns:ns1="http://guildportal.com/Services/">
    <ContentInstanceID>660038</ContentInstanceID>
    <Title>WS TESTING</Title>
    <ContentType>Free Form Text/HTML</ContentType>
    <PageID>146692</PageID>
    <ContainerName>ContentPane</ContainerName>
    <SortOrder>10</SortOrder>
    <Html>&lt;b&gt;THIS IF FROM WS&lt;/b&gt;</Html>
   </contentData>
  </Publish>
 </soapenv:Body>
</soapenv:Envelope>

Question - what happens if I leave things blank, like title or container name, and pageID as 0?

Thanks
Hunter Arleon
Garden Stalker of Tholuxe Paells
Through The Never
"I am the would behind the arrow..."
TopBottom

Aaron Lewis (Blue Collar) 7/15/2004 5:30 PM EST : RE: HTML upload interface...
GuildPortal Dev
Aaron Lewis
Posts: 1979
Zomgawsh Poster

OK, should be good to go now.  There was something odd about that user account, something like a carriage return after the name.  Don't know how that got in there, but I changed it so that it's gone.  I tested logging in as that user and it's working now.

About the instance placement/type stuff, right now the only setting that's actually saved is the title.  If you leave it blank, it ignores the change and keeps the old title in place (but it still processes the rest of the changes).
Aaron Lewis, GuildPortal.com
TopBottom

Arleon (Guild Admin) 7/16/2004 10:11 AM EST : RE: HTML upload interface...

Arleon
Posts: 410
Fingers of Fury!

GetFreeForm now works properly - woohoo!

But, you changed my userName from TTN_AutoPoster to TNN_AutoPoster.  TTN is like in 'Through The Never', our guild name, and TNN is like The Nashville Network, and that's just wrong on many levels.

Also, while GetFreeForm works perfectly, Publish returns the error:

Error: Server was unable to process request. --> Invalid login for publishing the specified content, or the content instance specified does not exist!


I first tested with the original values, XML above, and then I removed all of the extra stuff (ContentPane, Title, etc..), so this was the XML on the wire..

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <Publish xmlns="http://guildportal.com/Services/">
   <userName>TNN_AutoPoster</userName>
   <password>removed_password</password>
   <contentData xsi:type="ns1:FreeForm" xmlns:ns1="http://guildportal.com/Services/">
    <ContentInstanceID>660038</ContentInstanceID>
    <PageID>0</PageID>
    <SortOrder>0</SortOrder>
    <Html>&lt;b&gt;THIS IF FROM WS&lt;/b&gt;</Html>
   </contentData>
  </Publish>
 </soapenv:Body>
</soapenv:Envelope>
Hunter Arleon
Garden Stalker of Tholuxe Paells
Through The Never
"I am the would behind the arrow..."
TopBottom

Aaron Lewis (Blue Collar) 7/17/2004 4:40 AM EST : RE: HTML upload interface...
GuildPortal Dev
Aaron Lewis
Posts: 1979
Zomgawsh Poster

I must needeth smacks about the face.  Gimme a sec to push the code, will be live momentarily (and tested, with the login you provided).  If you want to have the name changed back, shoot me an e-mail... Don't want to break any of your code you've written using the new one.
Aaron Lewis, GuildPortal.com
TopBottom

Aaron Lewis (Blue Collar) 7/17/2004 4:46 AM EST : RE: HTML upload interface...
GuildPortal Dev
Aaron Lewis
Posts: 1979
Zomgawsh Poster

hmmm... With all those other objects you mentioned a couple of posts ago, it's starting to sound like you're wanting a web services-driven CMS API?  The result would be... madness!  Why, before long, people would be writing opensource or shareware Windows or Java or commandline systems to manage their content!  Dogs and cats, living together!

... coolness ...
Aaron Lewis, GuildPortal.com
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%