Home > database >  About the Webservice call COM components
About the Webservice call COM components

Time:09-17

Have a COM component, in CS with normal, but under the WS error, under the CS code is as follows:

OleObject example
String vw_retxml

Example=CREATE oleobject

Messagebox (", "example. ConnectToNewObject (" WeixinPayCom. WeixinPay. WeixinPay"))

Vw_retxml=example. TextInterface (" hello ")

Messagebox (" result ", vw_retxml)


WS the code is as follows:

OleObject example
String vw_retxml
Long vw_a

Example=CREATE oleobject

//messagebox (", "example. ConnectToNewObject (" WeixinPayCom. WeixinPay. WeixinPay"))

Vw_a=example. ConnectToNewObject (" WeixinPayCom. WeixinPay. WeixinPay ")

//vw_RetXML=example. TextInterface (" hello ")
Vw_retxml=example. Textinterface (" hello ")

DESTROY example

Return vw_retxml



Debugged on the WS connecttonewobject function returns is 0, but go wrong when they run into TextInterface function (CS can normal calls), WS under error:

System. Web. Services. Separate Protocols. SoapException: Name not found calling external object function in the function test2 of object n_wxpay - & gt; Sybase. The original concept. PBOLERuntimeErrorE
In Sybase. The original concept. PBRuntimeError. Throw (Type exType, RuntimeErrorCode code, Object [] args)
In Sybase. The original concept. PBOmObject. __invoke_method (PBUInt PBString s, n, PBUnboundedAnyArray a, PBBoolean b)
In c__n_wxpay. Test2 (PBString vfp_a) location d: \ WXPayServer \ Server \ pb2cstempout \ wxpay \ n_wxpay test2 (SS) : line number 15
In cns_wxpay. PBWS__n_wxpay. Test2 (String vfp_a) location d: \ WXPayServer \ Server \ pb2cstempout \ wxpay \ wxpay asmx. Cs: line number 173
- at the end of the inner exception stack trace -- -- --
In Sybase. The original concept. Web. WebServices. PBWebService. HandleException (Exception ex)
In cns_wxpay. PBWS__n_wxpay. Test2 (String vfp_a) location d: \ WXPayServer \ Server \ pb2cstempout \ wxpay \ wxpay asmx. Cs: line number 183



What is the problem? Which brother can be solved? thank you

CodePudding user response:

refer to the original poster tonyu response:
a COM component, the CS with normal, but under the WS error, under the CS code is as follows:

OleObject example
String vw_retxml

Example=CREATE oleobject

Messagebox (", "example. ConnectToNewObject (" WeixinPayCom. WeixinPay. WeixinPay"))

Vw_retxml=example. TextInterface (" hello ")

Messagebox (" result ", vw_retxml)


WS the code is as follows:

OleObject example
String vw_retxml
Long vw_a

Example=CREATE oleobject

//messagebox (", "example. ConnectToNewObject (" WeixinPayCom. WeixinPay. WeixinPay"))

Vw_a=example. ConnectToNewObject (" WeixinPayCom. WeixinPay. WeixinPay ")

//vw_RetXML=example. TextInterface (" hello ")
Vw_retxml=example. Textinterface (" hello ")

DESTROY example

Return vw_retxml



Debugged on the WS connecttonewobject function returns is 0, but go wrong when they run into TextInterface function (CS can normal calls), WS under error:

System. Web. Services. Separate Protocols. SoapException: Name not found calling external object function in the function test2 of object n_wxpay - & gt; Sybase. The original concept. PBOLERuntimeErrorE
In Sybase. The original concept. PBRuntimeError. Throw (Type exType, RuntimeErrorCode code, Object [] args)
In Sybase. The original concept. PBOmObject. __invoke_method (PBUInt PBString s, n, PBUnboundedAnyArray a, PBBoolean b)
In c__n_wxpay. Test2 (PBString vfp_a) location d: \ WXPayServer \ Server \ pb2cstempout \ wxpay \ n_wxpay test2 (SS) : line number 15
In cns_wxpay. PBWS__n_wxpay. Test2 (String vfp_a) location d: \ WXPayServer \ Server \ pb2cstempout \ wxpay \ wxpay asmx. Cs: line number 173
- at the end of the inner exception stack trace -- -- --
In Sybase. The original concept. Web. WebServices. PBWebService. HandleException (Exception ex)
In cns_wxpay. PBWS__n_wxpay. Test2 (String vfp_a) location d: \ WXPayServer \ Server \ pb2cstempout \ wxpay \ wxpay asmx. Cs: line number 183



What is the problem? Which brother can be solved? Thank you,


Estimates do not support the possibility of because of pb Websrvice, after the release is automatically converted to. Net code, can consider use other methods instead

CodePudding user response:

Estimates do not support the possibility of big, because pb Websrvice, after the release is automatically converted to. Net code, can consider use other methods instead

CodePudding user response:

Now can't, can only put this COM encapsulated with PB again COM to call, but I don't know how to do this efficiency

CodePudding user response:

reference tonyu reply: 3/f
now can't, can only put this COM encapsulated with PB again COM to call, but I don't know how to do this efficiency


Efficiency must be worse, or you do a called program in c #, launch into a webservice, efficiency, there is no problem

CodePudding user response:

Can't call OLE webService, this is Microsoft's problem, according to the SYBASE and PB has nothing to do,
If so, then no matter use what tools package OLE, release into the webService estimates will be failure,

CodePudding user response:

reference 4 floor lzp_lrp response:
Quote: reference tonyu reply: 3/f

Now can't, can only put this COM encapsulated with PB again COM to call, but I don't know how to do this efficiency


Efficiency must be worse, or you do a called program in c #, released a web service, efficiency, there is no problem




Don't use c #

CodePudding user response:

reference 5 floor msgtogcr reply:
webService cannot call in OLE, this is Microsoft's problem, according to the SYBASE and PB has nothing to do,
If so, then no matter use what tools package OLE, release into the webService estimates will be failure,

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related