0

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?

DAiMor
  • 3,185
  • 16
  • 24
O.O
  • 11,077
  • 18
  • 94
  • 182
  • what version your cache server $zv – DAiMor May 10 '13 at 07:58
  • @DAiMor - Cache for Windows (x86-64) 2009.1.2 (Build 602U) – O.O May 10 '13 at 17:03
  • I not found %zRead method in %Net.HttpRequest class, but I found Read, and in code error "Timed out waiting for response from server". Are you sure, what server is available? – DAiMor May 13 '13 at 12:57
  • Yes, server is available and working. I have one wcf service that uses normal http bindings and is just like SOAP web service, it works fine, duplicated it but with different bindings and I can call it from every place except intersystems :( – O.O May 13 '13 at 16:31
  • can you put generated code SOAP client and original WSDL. Maybe Cache' misunderstood server's WSDL. – DAiMor May 14 '13 at 04:11

1 Answers1

0

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.

Vlasec
  • 5,500
  • 3
  • 27
  • 30