03-20-2013, 03:01 PM
Hi -
I think I'm missing something but I've already had my cup of coffee & that didn't help
I've created a COM object in C# (it invokes a web service with NTLM authentication) and the values appear to be successfully being returned to QM. But I think I'm running into a type conversion problem.
The type is defined in C#. The type information is visible in QM when I'm writing code. And - if I use a simple "out" statement it prints the correct value. But if I use a more complex out statement it does not.
Here's what the call looks like:
WebServiceWrapper.iStudyData studyData1 = pacsWebServices.getStudyData(testAccessionOK)
and one of the values in studyData1 is the string "PatientName".
The following statement will print the correct value:
and the following will also work:
But both of these will fail:
and
with the error message
Error (RT) in TestPacsInterface: 0x80020005, Type mismatch.
In C# I've defined the API to this class like this:
.
Any ideas what's wrong? I'm worried that this is a symptom that there's a problem with how I've defined the type. Thanks.
I think I'm missing something but I've already had my cup of coffee & that didn't help
I've created a COM object in C# (it invokes a web service with NTLM authentication) and the values appear to be successfully being returned to QM. But I think I'm running into a type conversion problem.
The type is defined in C#. The type information is visible in QM when I'm writing code. And - if I use a simple "out" statement it prints the correct value. But if I use a more complex out statement it does not.
Here's what the call looks like:
WebServiceWrapper.iStudyData studyData1 = pacsWebServices.getStudyData(testAccessionOK)
and one of the values in studyData1 is the string "PatientName".
The following statement will print the correct value:
and the following will also work:
But both of these will fail:
and
with the error message
Error (RT) in TestPacsInterface: 0x80020005, Type mismatch.
In C# I've defined the API to this class like this:
[Guid("xxxxxx-xxxxx-xxxxxxx"), ClassInterface(ClassInterfaceType.AutoDual)]
[ComVisible(true)]
public class iStudyData
{
public string StudyRef;
public string PatientName;
...
}
Any ideas what's wrong? I'm worried that this is a symptom that there's a problem with how I've defined the type. Thanks.