简体   繁体   中英

WCF Duplex communication with InterSystems

Can someone point me to a sample of how to call a WCF service using wsDualHttpBinding? I created the classes using the SOAP Client Wizard and everything compiles. When I run the objectscript code, it hangs on the web service call for a while (it's hitting a timeout) and returns an exception:

| oref value: 4
| class name: %Exception.SystemException
| OID: ""
| reference count: 2 (system)
+----------------- attribute values ------------------
| Code = 64
| Data = ""
| InnerException = ""
| Location = "zInvokeClient+349^Service.WSDualHttpBindingIService.1"
| Name = ""

and %objlasterror gives:

0 3"%zRead+31^%Net.HttpRequest.1:SAMPLES

LOCATION is set to "http://localhost:8733/Design_Time_Addresses/PNServices/Service1/"

Any idea/clues?

Just a slight advice: Try using w ##class(%SYSTEM.Status).GetErrorText(status) where status is for example %objlasterror or sc. It is somewhat human readable unlike the status itself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM