This content has been marked as final. Show 3 replies
I have managed to solve some of the problems I was having earlier. I have now added a Web Reference but still have some errors. They are:
Error 1 The type or namespace name 'BLOB' could not be found (are you missing a using directive or an assembly reference?)
Error 3 The type or namespace name 'mapItem' could not be found (are you missing a using directive or an assembly reference?)
Error 4 'GeneratePDFService.localhost.Service' does not contain a definition for 'CreatePDF'
Where can I find the BLOB and mapItem assemblies, do I need to declare these in the service? Also where should I add a definition for CreatePDF, I thought these might have been done automatically.
Please offer some advice as I am struggling here. Thank you.
Please try browsing through the auto-generated stubs generated by Visual Studio from the WSDL file for the LiveCycle service(s) you're trying to invoke. That'll give you an idea of the namespaces these stubs reside in -- you should use the same namespace(s) to qualify the class names in you code. For example, BLOB should be referenced as A.Well.Qualified.Namespace.BLOB (this is not to be taken literally -- the actual namespace will be clear after looking at the auto-generated stubs).
Normally, each service you invoke in LiveCycle comes with its own WSDL, and you need to get Visual Studio to generate stubs for each of these as a distinct step. For example, if you're trying to invoke GeneratePDF service and ConvertPDF service from the same application, you'd point Visual Studio to the WSDL files for GeneratePDF, followed by ConvertPDF as 2 distinct steps. Currently, you might've generated stubs for GeneratePDF only, and therefore you're missing the ConvertPDF stubs.
Thank you so much for your reply, I really appreicate it. I will try what you have suggested and hopefully it will solve my problems.