Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
MediaBin WebServices
Talguran
Greetings.
We are currently using MediaBin 4.5 and we're interested in using the MediaBin SDK but I'm at a loss to find what I need to install and configure on the MediaBin Server to enable WebServices. Can someone point me in the right direction.
Also, I have to write this in VB.NET. If anyone has any good tips or examples they can share I'd greatly appreciate it.
Thanks in advance.
Ralph
Sr Software Engineer
Harvard-Westlake School
Find more posts tagged with
Comments
Migrateduser
Webservices are a separate install (MediaBinWebServiceInstaller.msi), and the requirements are contained in the "MediaBin 4.5.1 (4.5, SP1) System Requirements and Release Notes" (451MBrn.pdf) document.
Apart from that, the only thing that is worth mentioning is that the web.config contains the path to the directory that Web Services will use for temp files (when you retrieve files from MediaBin), and that the default is c:\temp. You will have to give the username that is used to run the MediaBin service write rights to this directory, which may or may not be acceptable in your infrastructure. I know we had to change the location of the directory.
As far as code goes, there are examples available for .NET, but I believe you already have those.
Feel free to ask again if this is not enough...
Folco Banfi
froghill
I'm getting a connection error in vb.net from the example in the sdk from interwoven which was written in C#
Server was unable to process request. ---> MBException: Unable to pass user credentials to the MediaBin Server. Use Basic Authentication or NTLM with Kerberos instead of NTLM.
Migrateduser
Do you have MediaBin server and IIS on separate machines?
If you're using NTLM without Kerberos this will not work, as NTLM can only pass credentials once (from the machine where the program you wrote runs to the IIS server where the Web Service is, and will not be able to pass the credentials further to the MediaBin server).
froghill
Hey Folco - thanks for replying here is my vb.net code
Dim strUrl As String = "
http://iis_servername/mediabinwebservice/MediaBinServer.asmx
?"
Dim strUrl2 As String = "
http://media_bin_servername
"
Dim strUsername As String = "uname"
Dim strPassword As String = "pword"
Dim strDomain As String = "domain"
Dim u As New Uri(strUrl)
Dim u2 As New Uri(strUrl2)
Dim cache As New CredentialCache
cache.Add(u, "NTLM", New NetworkCredential(strUsername, strPassword, strDomain))
cache.Add(u2, "Kerberos", New NetworkCredential(strUsername, strPassword, strDomain))
mbin.Credentials = cache
mbin.PreAuthenticate = True
mbin.Url = u.ToString
Dim strServer = mbin.GetMediaBinServerName()
Dim strUser = mbin.ValidateCurrentUser()
I am calling the web service from my local box - everything is located behind the firewall - I am still getting the same error message described above. Am I adding the Kerberos credentials to the right URI (the mediabinserver - I've tried both)? Do I need to change anything in the web.config file on the iis server.
Any help is greatly appreciated - thanks
Migrateduser
I don't really know, because we do not use Kerberos here and I must admit that I've never worked in an environment that uses it.
I hope that someone else can help you on this one...