System.Web.Services.Protocols.SoapException: The item '/foldername' cannot be found
I am trying to figure out how to correctly reference the directory to my subscriptions:
Dim
subsAs Subscription() = rs.ListSubscriptions("/SSS",Nothing)System.Web.Services.Protocols.SoapException: The item '/Hedi' cannot be found. >
FYI: I replaced sss for privacy purposes only here
Does /SSS exist in the catalog?
For ListSubscriptions() to work, the item must exist in the catalog and either be a report or a linked report.
If /SSS exists, but is not a report, then you should see a WrongItemType exception.
so this errors out:
Error: System.Web.Services.Protocols.SoapException: The item '/Hedi/ProcessingSummaryReport' cannot be found. >
Public Sub RunSummaryReport()
Dim rs As New ReportingService2005()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
' Get the subscriptions
Dim subs As Subscription() = rs.ListSubscriptions("/Hedi/ProcessingSummaryReport", Nothing)
Try
If Not (subs Is Nothing) Then
' Fire the first subscription in the list
rs.FireEvent("TimedSubscription", subs(0).SubscriptionID)
Console.WriteLine("Event fired.")
End If
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
End Sub
Just saw your recent post. let me have a look.
Can you call other APIs on it (LoadReport(), GetProperties())?
Also, are you executing against the same instance that you originally created the web reference against? You can check this by checking the .Url property of the web service proxy.
Ok, no I was not using the same instance. However I changed it to do that but not I'm not sure what method to use
Dim
rs As New HEDI2.ReportService2005.Event() should I use .job(), .even().....there are others also
>> .Url property of the web service proxy.
can you elaborate
why am I getting %2f in the URLs on my Report Server?
because the "/" character is being escaped. You don't need to do this when using the SOAP API.
In your code, check "rs.Url", and confirm that is pointing the the server and instance that you have actually created the item on. If it is, then confirm that you have appropriate permissions to actually see the item. You can try calling rs.ListChildren("/", true) in order to get everything in the catalog.
ok, the URL shows http://localhost/reportserver/reportservice2005.asmx
I put in rs.ListChildren("/", true), it had no effect
If It's using localhost, since this vb.net code is on the server, I am hopeing it's using the servername and not my local PC name