Contrary to stuff that I do this post is basically something I hacked together to make it work.I must have received at least 50 emails for several web services questions.In the absence of OT providing good easy to understand hand holding examples I offer these.If OT ‘s thinking is basically to code a web service a developer needs to take paid training all those things have come to pass.Almost every programming language snippets are available and so there is an expectation that the Vendor provides proper code samples.What I think they should start putting quality samples like what Jason is attempting & conducting webinars .They could do several official things such as how to code when RCS is present, what is the difference between Enterprise Library Services & Livelink web services,How does the new OTDS come into authenticationg into livelink,What one should do and not do,many things the livelink programming community needs help on.This in my mind will ensure a good talent pool of programmers out there who would do things as OT intends to.
I naturally like to understand what I am doing unfortunately in this installment I have resorted to mostly ‘trial & error’
HTTPS and Livelink Web Services code
As we learned on our SSO attempt and livelink web services this time we start with this
Part 1
- Make VM IPv4 and disable IPv6 it should work for IPv6 provided you do the stuff in my previous blog.
- Make sure the IIS7 livelink webserver is functioning fine
- Make sure anonymous(livelink) authentication is fine i.e.’ we can login as the powerful ‘Admin’ and the right password.
- Now with our baseline favorite Kyle Swidrowich’s piece of code start making it work without https
- We then make IIS HTTPS. Note you cannot make a webserver https commercially without shelling some money.HTTPS needs a certifying authority. For purposes of demonstration I will be using Microsoft’s self-signing certificate. Self-signing certificates are the same secure protocol other than the fact that a commercial company will not stand by it. Products such as archive server uses self-signing certs and OT bundles a signer program so I have used it many times to create closed loops between SAP ,livelink and archive server. For the completely uninitiated a secure transmission means only with the private key can you decipher the communication between the browser and the application so snooping with fiddler/wire shark etc. will give you a lot of garbled messages.
- So we manage to login as HTTP on that livelink
Again VC#, At this point this looks promising, Now add quickly DocumentManagemnt.svc and ContentService.svc as well Try Kyle’s code and make it work for HTTPS .Perfect everything works we added the document
Part 2
Making IIS HTTPS
I used this site and followed that
see how simple it was for me a non MS/IIS person to figure this out that is what we sadly lack with OT.
BTW word press cannot do embedded images from my word document.I have the word document replete with screen caps in communities.
And this Now for good measure we need to remove http
If you remember a posting I made and Guy Pomerleaux commented if you have http and https running and OT web services code is accessed you don’t really know you are talking https unless you do this. To keep it simple my livelink is now HTTPs Web GUI or web services. Perhaps if you leave a http listening port this would make your coding easier, but since I am doubtful which protocol will be used I resort to this.My builder program reports HTTPS=on that tells me everything is SSL.
We say yes to the IE warning and proceed to our newly created Livelink website which is now on HTTPS
We have cert errors even after we import the cert to keep IE happy
But I guess it will complain until I paid VeriSign or Thawte some money Perhaps readers can pool some money and buy me a certificate J for all practical purposes I am https
When I try to change my web service references we get this
I say yes
I got this and plenty of yellow looking errors at the livelink web services server when I tried to call the web service. Too many to list and too unknowing to comment on the mumbo jumbo.Essentially at this point I am trying on the server to get this service created.
https://appuw2k8vm/les-services/Authentication.svc
Several errors ensued which I basically got around by removing all traces of places I thought was written for HTTP stuff.
So I remembered form my 9.7.1 that there is some SSL binding stuff we have to do on the web services on the server. So we make a copy of the Web.Config and try it.
Mostly if you remove everything that did not contain SSL and enable the SSL stuff it should work.
Also could not establish trust relationship means you have to install the certificate into the trusted certificate store
A working Web.Config you can find a working app.config you can also find. I am not able to explain the mumbo jumbo as it is mostly trial and error. I hope if any OT knowledgeable people read this they would conduct a webinar on how to do this.
Link 1 The above article replete with screen caps as a word doc
Link 2 The Web.Config that goes on the web services install that works for me