Web Service Resposes

mattk

Member
Hi there,

Within our application we are initiating several back end web service calls to thrid parties. We build our instruction and then recieve the response message through the same transaction.
It appears that on multiple occasions that the response message often is received as a blank string. We can see from the third party system that the response has been sent but we receive nothing back.
Is there any setting within Openedge that would "time out" on the response and cause this error. I have done some debugging and it looks like I get the following when this happens:

Error receiving wev service response: Unexpected response status code: 1 (11773)

We are using Openedge 10.1C on a Windows Server 2003 environment.

Any help or ideas would be much appreciated.

Thanks,

Matt
 
Try to find a reason using :


Code:
RUN XXXXX.p  IN hPortType NO-ERROR.

RUN ErrorInfo (OUTPUT err).
IF NOT err THEN DO:
    MESSAGE STRING(cResponse) "~n"
     STRING(MTIME - li) " milisecondes."
     VIEW-AS ALERT-BOX.
END.


/*******************************************************************/
PROCEDURE ErrorInfo: /*1*/
  DEFINE OUTPUT PARAMETER errorfound AS LOGICAL INITIAL FALSE.
  DEFINE VARIABLE i                  AS INTEGER NO-UNDO.
  DEFINE VARIABLE hSOAPFault         AS HANDLE NO-UNDO.
  DEFINE VARIABLE hSOAPFaultDetail   AS HANDLE NO-UNDO.
  DEFINE VARIABLE HeaderXML AS LONGCHAR VIEW-AS EDITOR SIZE 70 BY 15 LARGE.
  IF ERROR-STATUS:NUM-MESSAGES > 0 THEN DO:
     errorfound = TRUE.
     DO i = 1 TO ERROR-STATUS:NUM-MESSAGES:
        MESSAGE ERROR-STATUS:GET-MESSAGE(i) VIEW-AS ALERT-BOX.
     END.
/*2*/
     IF VALID-HANDLE(ERROR-STATUS:ERROR-OBJECT-DETAIL) THEN DO:
       hSOAPFault = ERROR-STATUS:ERROR-OBJECT-DETAIL.
       MESSAGE
       "Fault Code: "   hSOAPFault:SOAP-FAULT-CODE        SKIP
       "Fault String: " hSOAPFault:SOAP-FAULT-STRING      SKIP
       "Fault Actor: "  hSOAPFault:SOAP-FAULT-ACTOR       SKIP
       "Error Type: "   hSOAPFault:TYPE  VIEW-AS ALERT-BOX.
/*3*/
       IF VALID-HANDLE(hSOAPFault:SOAP-FAULT-DETAIL) THEN  DO:
            hSOAPFaultDetail = hSOAPFault:SOAP-FAULT-DETAIL.
            MESSAGE  "Error Type: " hSOAPFaultDetail:TYPE
                     VIEW-AS ALERT-BOX.
            HeaderXML = hSOAPFaultDetail:GET-SERIALIZED().
            DISPLAY HeaderXML LABEL "Serialized SOAP fault detail"
                    WITH FRAME a.
        END.
     END.
  END.
END PROCEDURE.
/*******************************************************************/
 
Back
Top