I tried to remove duplicate registry of wmVBDemo.dll, but still failed, so I made changes to DLL(as in step 4), but when run invokeLate flow, I got:
message box:
Could not run the service “testVB”
win32.COM.WmDispatchException: (null). Error Code = 8002000f
Call Stack shows win32.COM.dispatch:invoke failed
also I got exception from the command window where I run server.bat
“Illegal Monitor State Exception: JVMLK002: current thread not owner”
I don’t know if the DLL is not built right, or the flow in webMethods is not correct?
Following is the settings:
-
I logon as Administrator
-
I created TEST folder under Default, then created a testVB flow service, then select invokeLate from WmWin32 package
-
created name as input String, message as output String
-
the flow parameters as following
invokeLate
Pipeline In Service In Service Out Pipeline Out
– T name - T $progid (value is MyVBTest.Services) - T $progid
- T $methodName(value is helloWorld) - T $methodName
- T $context (value is INPROC) - T $context
- T server - T name
- T user - T message
- T password
- T domain
- T params
(Note: server, user, password, domain, params is not set any value)
Attached view as a html(TESTtestVB.htm):
- I created/registered a MyVBTest.dll with the same Services.cls
the MyVBTest.IDL generated from OLE/COM Object Viewer as:
// Generated .IDL file (by the OLE/COM Object Viewer)
//
// typelib filename: MyVBTest.dll
[
uuid(C5DE9A89-0B7A-11D6-B23A-00508B0B9B08),
version(1.0)
]
library MyVBTest
{
// TLib : // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
importlib(“stdole2.tlb”);
// TLib : webMethods 4.0 Type Library : {F75CFD90-9BD2-11D4-A435-0050040539E2}
importlib(“webMethods.dll”);
// Forward declare all types defined in this typelib
interface _Services;
[
odl,
uuid(C5DE9A8A-0B7A-11D6-B23A-00508B0B9B08),
version(1.0),
hidden,
dual,
nonextensible,
oleautomation
]
interface _Services : IDispatch {
[id(0x60030000)]
HRESULT helloWorld([in, out] _Values** inputs);
};
[
uuid(C5DE9A8B-0B7A-11D6-B23A-00508B0B9B08),
version(1.0)
]
coclass Services {
[default] interface _Services;
};
};
I am new to webMethods and not familiar with VB/COM, could any one take a look at those steps?
thanks