Hi all

I am trying (initially) to create a new folder in SQL Server Reporting 
Services.  This is what I have tried so far:

LOCAL loReportingService2010Soap AS "XML Web Service"
LOCAL loWSHandler
loWSHandler = 
NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
loReportingService2010Soap = 
loWSHandler.SetupClient("C:\Deploy\ReportService2010.wsdl", 
"ReportingService2010", "ReportingService2010Soap")
loReportingService2010Soap.CreateFolder("Test","/",null)

I am getting the following error message

Error: 1429 - OLE IDispatch exception code 0 from Client:Client:Type conversion 
failure for element Properties HRESULT = 0x80020005: Type mismatch. - 
Client:Unspecified client error. HRESULT = 0x80020005: Type mismatch.

The syntax for calling CreateFolder is

Public Sub CreateFolder( _
   ByVal Folder As String, _
   ByVal Parent As String, _
   ByVal Properties() As [Namespace].Property _
)

In VB or, in C#

public void CreateFolder(
   string Folder,
   string Parent,
   [Namespace].Property[] Properties
)

But I cannot work out what to send as the Properties parameter from VFP.  Any 
suggestions would be much appreciated

Paul Newton

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to