Kbase P96976: Error (11506): Connecting to a Web Service from the 4GL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/26/2006 |
|
Status: Unverified
FACT(s) (Environment):
OpenEdge 10.x
Web Services
SYMPTOM(s):
Error (11506) when connecting to a Web Service from the 4GL
Web service operation <operation-name> generated a SOAP Fault. SOAP faultstring is: <fault-string> (11506)
Web service operation <operation-name> generated a SOAP Fault. SOAP faultstring is: Server was unable to process request. --> No HTNGHeader received. (11506)
Web service operation <operation-name> generated a SOAP Fault. SOAP faultstring is: Server was unable to process request. --> Object variable or With block variable not set. (11506)
CAUSE:
The Web Service requires a SOAP header and the 4gl client needs coding to handle the SOAP headers (SOAP Request and Response headers)
FIX:
Define callback procedures to use as header handlers and specify the handlers for a Web service procedure object by invoking the SET-CALLBACK-PROCEDURE( ) method on the corresponding procedure handle:
RUN NewCoService2 SET hPortType ON SERVER hServer.
hPortType:SET-CALLBACK-PROCEDURE("RESPONSE-HEADER","ResponseHandler").
hPortType:SET-CALLBACK-PROCEDURE("REQUEST-HEADER","RequestHandler").
Where 'ResponseHandler' and 'RequestHandler' are the names of the header handlers procedures.