Just a question – on calling a web service and how to use deployment licence.
The web application sets on a machine called dsnet – the machine I made a licence for – filename: aspose.report.lic.
There is a middle-ware machine called dsapps1 behind the firewall that the web application calls – Where do I place the deployment licence? or how to I call the web method to remove the evaluation message if the function is split between the two machines?
On the webServer I have:
Dim strFileNamePath As String = ConfigurationSettings.AppSettings(“DocPath”) + e.Item.Cells(1).Text
Dim loArray As Byte()
Dim loProxy As New CorrLtrWS.CorrLtrs
Dim loWord As New Aspose.Word.Word
loArray = loProxy.GetStream(strFileNamePath)
Dim loStream As New MemoryStream(loArray)
Dim xmlDoc As XmlDocument = New XmlDocument
'Read the document in Aspose.Pdf.Xml format into Aspose.Pdf.
Dim pdf As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf
'Instruct to delete temporary image files.
pdf.IsImagesInXmlDeleteNeeded = True
'Produce the PDF file.
pdf.Title = “Correction Letter”
pdf.Security = New Aspose.Pdf.Security
pdf.Security.IsContentsModifyingAllowed = False
pdf.Security.IsCopyingAllowed = False
pdf.OpenType = Aspose.Pdf.OpenType.Auto
pdf.Save(“Correction Letter”, Aspose.Pdf.SaveType.OpenInBrowser, Me.Response)
In the web service:
Dim word As Word = New Word
'This is where I assume I have to reference the licence file – but, how?
Dim doc As Document = New Document(strFileNamePath)
Dim loStream As New MemoryStream
Am I misssing something? If so, would I have to redo the deployment licence for our middle-ware machine and do all the processing on that machine in the web service and then stream the result to the web server? I guess I could rewrite it and change the licence, but is that necessary?