Getting Started Guide

These links will help you on your way

SOAPUI Working with Xml and Xslt

These example web part properties will demonstrate you how to retrieve all the lists from a sharepoint site.

SharePoint Server
http://ferrari.com/_vti_bin/lists.asmx

Soap Body
<soapenv:envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'>
<soapenv:body>
<getlistcollection xmlns='http://schemas.microsoft.com/sharepoint/soap/'>
</getlistcollection>
</soapenv:body>
</soapenv:envelope>

Xslt definition
<?xml version='1.0' ?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:wss='http://schemas.microsoft.com/sharepoint/soap/' version='1.0'>
<xsl:output method='xml' indent='yes' />
<xsl:template match='wss:List'>
<h3>
<img style='margin-left:5px;'>
<xsl:attribute name='src'><xsl:value-of select='@ImageUrl' /></xsl:attribute>
</img><xsl:value-of select='@Title' />
</h3>
<div>
<xsl:attribute name='id'>wrapper_<xsl:value-of select='@ID' /></xsl:attribute>
<p>
ID:<xsl:value-of select='@ID' />
</p>
<p>
Description:<xsl:value-of select='@Description' />
</p>
<p>
ImageUrl:
<xsl:value-of select='@ImageUrl' />
</p>
<p>
Name:<xsl:value-of select='@Name' />
</p>
<p>
BaseType:<xsl:value-of select='@BaseType' />
</p>
<p>
ServerTemplate:
<xsl:value-of select='@ServerTemplate' />
</p>
<p>
Created:<xsl:value-of select='@Created' />
</p>
<p>
Modified:<xsl:value-of select='@Modified' />
</p>
<!--<p>
LastDeleted:<xsl:value-of select='@LastDeleted' />
</p>
<p>
Version:<xsl:value-of select='@Version' />
</p>
<p>
Direction:<xsl:value-of select='@Direction' />
</p>
<p>
ThumbnailSize:<xsl:value-of select='@ThumbnailSize' />
</p>
<p>
WebImageWidth:<xsl:value-of select='@WebImageWidth' />
</p>
<p>
WebImageHeight:<xsl:value-of select='@WebImageHeight' />
</p>
<p>
Flags:<xsl:value-of select='@Flags' />
</p>
<p>
ItemCount:<xsl:value-of select='@ItemCount' />
</p>
<p>
AnonymousPermMask:<xsl:value-of select='@AnonymousPermMask' />
</p>
<p>
Rootfolder:<xsl:value-of select='@RootFolder' />
</p>
<p>
ReadSecurity:<xsl:value-of select='@ReadSecurity' />
</p>
<p>
WriteSecurity:<xsl:value-of select='@WriteSecurity' />
</p>
<p>
Author:<xsl:value-of select='@Author' />
</p>
<p>
EventSinkAssembly:<xsl:value-of select='@EventSinkAssembly' />
</p>
<p>
EventSinkClass:<xsl:value-of select='@EventSinkClass' />
</p>
<p>
EventSinkData:<xsl:value-of select='@EventSinkData' />
</p>
<p>
EmailInsertsFolder:<xsl:value-of select='@EmailInsertsFolder' />
</p>
<p>
AllowDeletion:<xsl:value-of select='@AllowDeletion' />
</p>
<p>
AllowMultiResponses:<xsl:value-of select='@AllowMultiResponses' />
</p>
<p>
EnableAttachments:<xsl:value-of select='@EnableAttachments' />
</p>
<p>
EnableModeration:<xsl:value-of select='@EnableModeration' />
</p>
<p>
EnableVersioning:<xsl:value-of select='@EnableVersioning' />
</p>
<p>
EnableVersioning:<xsl:value-of select='@Hidden' />
</p>
<p>
MultipleDataList:<xsl:value-of select='@MultipleDataList' />
</p>
<p>
Ordered:<xsl:value-of select='@Ordered' />
</p>
<p>
ShowUser:<xsl:value-of select='@ShowUser' />
</p>-->
</div>
</xsl:template>
</xsl:stylesheet>



Last edited Jan 10, 2011 at 7:38 PM by tomvangaever, version 3

Comments

No comments yet.