WCF Duplex communication with InterSystems

227 Views Asked by At

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?

1

There are 1 best solutions below

0
On

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.