Do anyone have the simple Application Definition file for WebService

Hi,

I am stuck to import the application definition file for web service.

Do anyone have the such application definition file for webservice? I just want to get the array of string or objects from web-method.

any help appreciated.

Thanks.

Masood.

[295 byte] By [MuhammadMasood] at [2008-2-22]
# 1

Hi,

In case you haven't done already : have a look into the Sharepoint 2007 SDK. Two examples there.

Oliver

Vansen at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 2

How do you get into the Sharepoint SDK? It's installed as I can see it in my add/remove programs but can't find it on the start menu?

Thanks
Robert

rhoenig at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 3
There is a file called : OSSSDK2007.chm which gets installed with the SDK. Inside of that is the whole Documentation for MOSS. There is an extra part for Business Data Catalog. Have a look in there and try the examples first... They were my starting point !
Vansen at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 4

Thank to all,

I solved the problem.

I was trying to return dataset from web-service, which was wrong... i asked to NICK about the return types for the webservice..

I thanks to him.

now I have developed such method, that returns array of objects. it works.

thanks once again.

Regards,

Masood.

MuhammadMasood at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 5
Here is the application definiton file for web-service:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<
LobSystem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Type="WebService" Version="1.0.0.0" Name="AnnouncementWebService" xmlns="http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog" xsiTongue TiedchemaLocation="http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog">
<
Properties>
<
Property Name="WebServiceProxyNamespace" Type="System.String">AnnouncementWebServiceProxy</Property>
<
Property Name="WildcardCharacter" Type="System.String">%</Property>
<
Property Name="WsdlFetchUrl" Type="System.String">http://your-server-name/Services/AnnouncementService.asmx?WSDL</Property>
</
Properties>
<
LobSystemInstances>
<
LobSystemInstance Name="AnnouncementWebServiceInstance">
<
Properties>

<Property Name="LobSystemName" Type="System.String">AnnouncementWebService</Property>

</Properties>

</LobSystemInstance>

</LobSystemInstances>

<Entities>

<Entity Name="Announcement" EstimatedInstanceCount="10000">

<Identifiers>

<Identifier TypeName="System.String" Name="ID"/>

</Identifiers>

<Methods>

<Method Name="ListAnnouncements">

<Parameters>

<Parameter Direction="Return" Name="Response">

<TypeDescriptor TypeName="AnnouncementWebServiceProxy.Announcement[], AnnouncementWebService" IsCollection="true" Name="ArrayOfAnnouncement">

<TypeDescriptors>

<TypeDescriptor TypeName="AnnouncementWebServiceProxy.Announcement, AnnouncementWebService" Name="Item">

<TypeDescriptors>

<TypeDescriptor TypeName="System.String" IdentifierName="ID" Name="ID"/>

<TypeDescriptor TypeName="System.String" Name="Title"/>

<TypeDescriptor TypeName="System.String" Name="Description"/>

<TypeDescriptor TypeName="System.DateTime" Name="AnnouncementDate"/>

<TypeDescriptor TypeName="System.String" Name="SourceName"/>

<TypeDescriptor TypeName="System.String" Name="SourceUrl"/>

<TypeDescriptor TypeName="System.String" Name="ImageUrl"/>

</TypeDescriptors>

</TypeDescriptor>

</TypeDescriptors>

</TypeDescriptor>

</Parameter>

</Parameters>

<MethodInstances>

<MethodInstance Name="announcementFinder" Type="Finder" ReturnParameterName="Response" ReturnTypeDescriptorName="ArrayOfAnnouncement" ReturnTypeDescriptorLevel="0" />

</MethodInstances>

</Method>

<Method Name="GetAnnouncement">

<Parameters>

<Parameter Direction="In" Name="announcementId">

<TypeDescriptor TypeName="System.String" Name="announcementId" IdentifierName="ID">

</TypeDescriptor>

</Parameter>

<Parameter Direction="Return" Name="Response">

<TypeDescriptor TypeName="AnnouncementWebServiceProxy.Announcement, AnnouncementWebService" Name="AnnouncementItem">

<TypeDescriptors>

<TypeDescriptor TypeName="System.String" IdentifierName="ID" Name="ID"/>

<TypeDescriptor TypeName="System.String" Name="Title"/>

<TypeDescriptor TypeName="System.String" Name="Description"/>

<TypeDescriptor TypeName="System.DateTime" Name="AnnouncementDate"/>

<TypeDescriptor TypeName="System.String" Name="SourceName"/>

<TypeDescriptor TypeName="System.String" Name="SourceUrl"/>

<TypeDescriptor TypeName="System.String" Name="ImageUrl"/>

</TypeDescriptors>

</TypeDescriptor>

</Parameter>

</Parameters>

<MethodInstances>

<MethodInstance Name="announcementSpecificFinder" Type="SpecificFinder" ReturnParameterName="Response" ReturnTypeDescriptorName="AnnouncementItem" ReturnTypeDescriptorLevel="0" />

</MethodInstances>

</Method>

</Methods>

</Entity>

</Entities>

</LobSystem>

MuhammadMasood at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 6

That was a great example

but how about using a simple array list, how would one go about doing that?

Anonymous at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...
# 7

Hi,

can't tell you exactly but there is a past around where a Dataset is used as return type. It is somewhat identical to what you need cause a Dataset and a Arraylist are both untyped. Have a go with that - maybe it puts you into the right direction...

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1430076&SiteID=1

Regards

Vansen at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Business Data Catalog...

SharePoint Products and Technologies

Site Classified