Beehive BDK create wiki page

Gurus,
Im using the Beehive BDK in java, generated off https://stbeehive.oracle.com/ws/wsdl using ant and WSIMPORT.
I can get lots of the code to work, but when I create the wiki page, I get nothing no content etc.
The basic code is below. The page is created with the name etc as I expect. Just no content.
Ideas? Thoughts? Examples are greatly appreciated!
Note that in an earlier example the IdentifiableSimpleContentUpdater class was used vs the SimpleContentUpdater. However the example called setContentStream(byte[])). Unfortuantely this method doesn't exist when I generate the java interfaces from the WSDL. On SimpleContentUpdater there is a similar method setContentBytes(byte[]) but it doesn't seem to work.
          TeamWorkspace teamWS = getWorkspace(workspaceName);
          if (teamWS == null ) {
               throw new BHException("createOID cannot create OIG, workspace '"+workspaceName+"' does not exist");
          * Create a wiki page using the default wiki page folder
          * specified by the parent id
     WikiPageCreator wikiPageCreator = new WikiPageCreator();
wikiPageCreator.setParent(teamWS.getDefaultWikiFolder().getCollabId());
* Ignore attempts by two users to create the same page
* In theory its a new page so it should never happen
     wikiPageCreator.setIgnorePendingConflicts(true);
     wikiPageCreator.setName(oigName);
     * Wiki page updater specifies information about the wiki page itself
     * Meta-data basically, note that the name is set in the creator
     WikiPageUpdater wikiPageUpdater = new WikiPageUpdater();
     wikiPageCreator.setUpdater(wikiPageUpdater);
     wikiPageUpdater.setDescription("OIG Template");
     wikiPageUpdater.setIncrementViewCount(true); // increment view count when someone looks
     /*Identifiable */ SimpleContentUpdater updater = new /*Identifiable*/ SimpleContentUpdater();
     wikiPageUpdater.setUpdatedBody(updater);
     //updater.
     IdentifiableSimpleContentUpdater updater2 = new IdentifiableSimpleContentUpdater();
     String content = new String();
     content ="this is some content";
     try {
               updater.setContentBytes (content.getBytes("UTF-8"));
          } catch (UnsupportedEncodingException e) {
                              e.printStackTrace();
     getWikiService().createWikiPage(wikiPageCreator, null,getProjection("BASIC"));

The reason the wiki page is empty is you have only done the second part of the process - you have to upload your content first and then associate the content with the wiki page - it is a 2 step process. - unfortunately it looks like the upload functionality was not put in the service so you will have to use REST which does have the necessary pieces.
Phil
Edited by: pbell on Mar 28, 2012 9:22 AM

Similar Messages

  • How to create wiki pages in portal

    Is there any way available to create wiki pages in portal? All the users logged in portal can be able to create the pages. The users can have the option to search for the wiki's.
                How can we achieve this? Help us to drive this.

    Hi Parvathy,
    Please check the blog in below to have an idea.
    Wiki Wiki World and Portals
    Please do not forget reward points for good answers...
    Regards,

  • In Beehive you can create wiki pages but how do you ....

    Add an image and then put a link under it, in html it's easy you wrap the image in a <a href.... > </a> link but how do you do the same in a wiki page. There was nothing in the documentation for Oracle Beehive that describes the syntax for wiki pages and what you can and can't do.
    Any ideas?

    It depends which country you are from below is US
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne

  • Error when auto creating wiki page

    In a SharePoint 2010 Entreprise wiki site you can use the [[somepagetitle]] when referencing an existing wiki page. If the page doesn't exist you should be asked to create the page when the link is clicked. According to fiddler the following should happen
    when the wiki link is clicked
    Go past
    /_layouts/WikiRedirect.aspx?url=%2Fwiki%2FPages%2Fwiki4%2Easpx and check if the page exists
    If it exists just redirect to it
    If it does not exists redirect to /_layouts/createpage.aspx and let the user create it.
    This Works on dev, test, preprod environment but suddently stopped working in a sitecollection on our production environment.
    It seems (according to fiddler) that tha wikiredirect.aspx that should hijack the click event never gets in play and the users just gets redirected to the page, which doesn't exists and a 404 is presented.
    Has anyone seen this before?
    Best regards
    Søren Bjerre

    Hi Soren,
    Check in layouts folder whether  wikiredirect.aspx exist or not.If it's not there copy this from
    your development or Acc Server.
    Hope this will help you.
    Regards
    Soni K

  • Error: in create wiki page programmaticallu in shrepoint 2013

    hi,
    here is my code.
     using (SPSite site = new SPSite(strSiteUrl))
     SPWeb currentWeb= site.RootWeb;
     SPList spList = currentWeb.Lists[strlibraryname];//GetList(strSiteUrl + "/" + strlibraryname + "/forms/allpages.aspx");
      SPFolder wikiRootFolder = spList.RootFolder;
     if (spList != null) {
     //try 
      SPFile wikiPage = wikiRootFolder.Files.Add(String.Format("{0}/{1}", wikiRootFolder,"brtestcode.aspx"),SPTemplateFileType.WikiPage);
       SPListItem wikiItem = wikiPage.Item;
       wikiItem[SPBuiltInFieldId.WikiField] = "Wiki Page Content "; 
     wikiItem.UpdateOverwriteVersion();
     wikiRootFolder.Update();
    while create wiki p age it is throw error like "targetFilePath must be a server relative URL. Parameter name: targetFilePath "
    in the below line:
    SPFile wikiPage = wikiRootFolder.Files.Add(String.Format("{0}/{1}", wikiRootFolder,"brtestcode.aspx"),SPTemplateFileType.WikiPage)
    then i have added "/" in front of {0}
    SPFile wikiPage = wikiRootFolder.Files.Add(String.Format("/{0}/{1}", wikiRootFolder,"brtestcode.aspx"),SPTemplateFileType.WikiPage)
    again it is throw error like" Value does not fall within the expected range." in the above line of code.

    Hi,
    Just as Mohammad said, you can try to modify this line of code as:
    SPFile wikiPage = wikiRootFolder.Files.Add(String.Format("{0}/{1}", wikiRootFolder.ServerRelativeUrl,"brtestcode.aspx"),SPTemplateFileType.WikiPage);
    Feel free to reply with the test result.
    Best regards
    Patrick Liang
    TechNet Community Support

  • SharePoint Foundation 2013 - Wiki Page Template

    Hi there,
    is there a way to have templates for Wiki pages with SharePoint 2013 Foundation? We have a specific layout and want to have it on every new wiki page.
    Thank you!

    Hi 
    pls check this
    http://mosshowto.blogspot.in/2011/11/custom-template-wiki-foundation_01.html
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/ae453550-8503-4531-b4cf-50a4d157e36c/is-it-possible-to-create-wiki-page-templates-with-sharepoint-2010-foundation?forum=sharepointcustomizationprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • New wiki page: KDevelop 4 with plugins

    I was recently looking for information about trying KDevelop 4 for PHP development, but there has been precious lack of information about doing this since full PHP support requires a separate plugin. There are, in fact, several interesting plugins that one may want to build. To support aspiring KDevelop 4 users I have created a wiki page for KDevelop 4 that explains how to build and install these plugins.
    So far I have added instructions for installing KDevelop 4 nightly svn builds from the sjakub Arch repo and installing the php plugin from the KDE svn repo. I have also created a generic section describing how other plugins may be built using the same process, but I have not actually tested these plugins.
    This wiki page could do with some additions from people who are developing in other languages and have successfully installed other plugins.

    Hi Olivieryao,
    According to your description, my understanding is that you want to create a new form for creating a wiki page in SharePoint.
    The form for creating wiki pages is CreateWebpage.aspx, and I recommend to do the steps below:
    Creating custom “CreateWebpage.aspx” and overriding the Code behind for creating the wiki pages based on the custom “wkpastd.aspx.
    Creating custom content type(with the columns you need) inheriting from OOB wiki document content type.
    Attaching the custom content type and detaching the OOB wiki content type from the wiki pages library.
    Here are some examples for creating the wiki form template in SharePoint 2010 for you to take a look:
    http://blogs.msdn.com/b/pavankumar/archive/2009/02/25/custom-wiki-site-definition-with-custom-document-template-for-creating-wiki-pages.aspx
    http://mosshowto.blogspot.com/2011/11/custom-template-wiki-foundation_01.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Unable to Edit Wiki Pages in Workspace

    Hi All!
    Recently I'm encountering an "undefined" error when I try to Publish edits to a Beehive Team Collaboration Wiki page. I've input service requests, but they are cancelled since that team doesn't handle Beehive questions. I was directed to ask my question here -- has anyone encountered this error before and found a work around?
    Thanks so much in advance for your advice!
    Brianne

    Hi Phil,
    I tried to send the screenshoots to the [email protected] adress but I got the following message:
    The original message was received at Tue, 31 Jul 2012 16:50:54 GMT from ubhmx1108.oracle.com [156.151.31.37]
    ----- The following addresses had permanent fatal errors ----- <[email protected]>
    +(reason: 554 5.4.6 Too many hops)+
    ----- Transcript of session follows -----
    +554 5.4.6 Too many hops 26 (25 max): from <[email protected]> via localhost, to <[email protected]>+
    Can I send it to another email adress?
    Thanks for your support,
    Enrique.

  • How can I create a link that allows users to convert a Wiki pages into PDF format.

    I am working on an enterprise Wiki library site collection, but I want to create a link named “Convert to PDF” , which allow users to convert the current Wiki into a pdf file. I need this link to be displayed some where in all the exsiting Wikis pages, and
    on any new wiki page. Can anyone advice if there is already such as capability within sharePoint 2013.
    Thanks

    Hi,
    For your requirement, we can add this link to the master page, then it will appear in the pages which apply this master page.
    To convert the current page to PDF, you can take consideration of using jsPDF.
    The links below with demos for your reference:
    http://parall.ax/products/jspdf
    Best regards
    Patrick Liang
    TechNet Community Support

  • Creating a new library for Webpart pages, or wiki pages

    We are using sp2013 in O365, on a site collection that is using the publishing feature.
    We want to create another library for content pages where we can create either Webpart pages or Enterprise Wiki pages.  I can create a new library and add the appropriate content types so that those types of pages are options when creating a new page. 
    But when I open the library and try to create a page based on the "(Enterprise Wiki Page) Basic Page" page layout (or any other page layout content type that I added to that library), the dialog comes up and shows it will save to the "/pages/"
    library (it is shown in the un-editable part of the "URL Name field"), and not in the new library where I initiated the creation request.  When I click save, I get a correlation ID error.
    Am I doing something wrong here?

    Hi ,
    I could reproduce this issue in my SharePoint 2013 Online when I created a new document library and add “Enterprise Wiki Page” content type into the library then create a page using this content type.
    It seems that publishing pages only can be created in the Pages library. And the SharePoint Publishing Infrastructure can only handle a single Pages library per Web site, it's a physical limitation of the software. If you want to create
    multiple Pages libraries, You could create sub webs to do it.
    Also, as there is a Correlation ID about this issue, you can use it to check more information about this issue. However, in SharePoint Online, we could not see the log files, they are controlled by Microsoft. I suggest you create a new thread on Office
    365, there are some backend engineers who can check the log. You will get better help with SharePoint Online.
    Office 365 forum:
    http://community.office365.com/en-us/f/default.aspx
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • List workflow with "Start workflow when an item is changed" will run twice when creating a new wiki page

    I have created the following workflow on the wiki page library to run when an item is changed:-
    And it will send emails as follow:-
    Currently when a user creates a new wiki page and he enters the wiki page name.
    Then he enters the content and click on save.
    Then two duplicate emails from the workflow will be sent ? So can anyone advice why creating a new wiki page will fire the workflow twice ?
    Thanks

    Hi john
    Have you see the library where the wiki pages are stored. You can see how many occurrences of the workflow has been run.
    Anyway, instead of using "wait for", can we put a condition that says, if Assign To:Approver is not empty. then email. 
    i use if instead of wait and it worked well, thanks

  • Newb question: How do you create a new wiki page?

    I've found out how to make Belkin F6 series USB wireless dongles work in Arch. A wiki page would be of much help for people with these devices!
    I've written it out in the forums already:
    https://bbs.archlinux.org/viewtopic.php … 10#p800110
    But a more detailed page that works for similar devices would be of great benefit to some Archers.

    haha sorry. I actually did search the wiki and the forums for "new page" but it didn't occur to me to try "create page" or "creating a page". That's late-night creativity at it's finest.
    Last edited by trusktr (2010-07-29 10:02:05)

  • Is it possible to create a new wiki page in wiki document library via Javascript Client Object Model?

    I can find example using managed code, but I can get it translated to javascript code that I can use.
    For example, this in managed code:
    using
    (SPSite
    site = new
    SPSite("http://sharepoint"))
      SPWeb
    rootWeb = site.RootWeb;
      SPList
    wiki = rootWeb.Lists["MyWiki"];
      SPFolder
    rootFolder = wiki.RootFolder;
      SPFile
    wikiPage = rootFolder.Files.Add(String.Format("{0}/{1}",
    rootFolder, "My
    Wiki Page.aspx"),
    SPTemplateFileType.WikiPage);
    When
    I try to change that to javascript, I get a 'cannot find rootfolder'....
    This
    is what I have so far:
    var pageName = "/digitalmerch/PageNotes/" + $('input[title="Page Name"]').val() + ".aspx";
    //Get the current client context - creating the batch
    context = SP.ClientContext.get_current(); 
    site = context.get_web(); 
    wiki = site.get_lists('PageNotes');
    rootFolder = wiki.get_rootFolder();
    wikiPage = rootFolder.get_files().AddTemplateFile(pageName), TemplateFileType.WikiPage);
    context.load(wikiPage);
      context.executeQueryAsync(CreatePage2Succeeded, CreatePage2Failed);
    But I obviously haven't translated this into javascript correctly -  the .get_rootFolder is undefined, and so the rootFolder.get_files().... is wrong as well.
    Any hints?
    Robin

    Not specifically, this is on a standard list NewForm.aspx page - it should already be there. The code is in the PreSaveAction function, so by that time sp.js should be fully loaded on the page - I don't wait for it or use a ExecuteOrDelayUntilScriptLoaded(xxxx,"sp.js");
    I know this is a syntax error somewhere. Also, all my objects are declared as global, so it shouldn't be anything like that..
    And I see a typo above that I've fixed:
    wikiPage = rootFolder.get_files().AddTemplateFile(pageName), TemplateFileType.WikiPage);
    is actually
    wikiPage = rootFolder.get_files().AddTemplateFile(pageName, TemplateFileType.WikiPage);
    but that didn't help. I still get:
    Object does not support get_rootFolder.
    I've also tried splitting that part into the execution functions, making sure I load 'RootFolder' into the context, but that doesn't work either.
    Robin

  • Wiki pages - who created them

    Hi There,
    is there a way for an admin to determine who created a Wiki page?

    I know I can search by username and get all the Wiki pages listed of that user.
    So there should be a possibility to do it the other way round and check which user created a Wiki page I am looking at.
    Any ideas?
    Thanks for your help

  • Creating navigaion between wiki pages

    I have a group wiki created and I would like to create a navigation to all of the wiki pages (about 7-8). Is there some sort of "menu" option similar to wikispaces?
    Thanks

    I wouldn't recommend an iframe, but if you do decide to try that method, make sure you allow it in the whitelist, or the iframe tags will be stripped.
    Instead, you could create a custom sidebar for a theme. Look in:
    cd /Library/Application\ Support/Apple/WikiServer/Themes/
    There is a directory for each theme. You can create your own themes here, or create copies of the theme directory. For example:
    sudo cp -r float.green.banner.wikitheme/ mytheme.wikitheme
    sudo cp wireframe.wikitheme/theme.plist mytheme.wikitheme/
    Then edit the theme.plist file copied from the wireframe theme.
    1. Change the displayName from "Wireframe Theme" to "My Custom Theme".
    2. Change the name from "com.apple.wireframe" to your own unique ID.
    3. Change the "selectable" key to true (or remove the key/value pair).
    4. Uncomment the "sidebars" key/value pair. NOTE: The "Upcoming Events" sidebar dict needs a UID key/value; either add one or leave that dict commented.
    5. Save the file.
    Restart the teams server and you should have your own theme to modify at will. This theme directory is where you would add additional CSS files, JavaScript files, or even custom XSLT if you're feeling frisky.

Maybe you are looking for

  • Play all songs in iTunes 8?

    With the new fancy design, where you can categorize the way it's shown into 'albums', 'artists', 'genres' and 'composers', how do you get it to just show a list of all songs?

  • Xpressmusic 5800 will no longer connect to the int...

    I have an xpressmusic 5800 and have been using wireless through my home router (and others access points) with no problems for months. I cleared my page history a few days ago and since then (not sure if it related or not) I have been unable to conne

  • How take variable value in WAD 7.0 from query

    Hi experts, We have some queries with the same type of data but with different structure. All have the same variables entry and we want to execute through WAD one of them based on the values entered in the variables screen. Could you help us saying h

  • QuickEdit Changes not saved

    My version of ODI is 11g.1.1.5 After adding sources and joins to an existing interface in the QuickEdit screen and closing the tab, I am not prompted to save the changes and the changes are not there when I return to the interface QuickEdit screen. A

  • Release Stratey & Open Period

    Hell SAP Gurus Pls clarify the following: 1. I have maintained release strategy for PR & PO     with clasification.  Green light is showing for the strategy which i have maintained.  In which i have selected plant , material group, purch. org, doc ty