SOAPY FAULT revisited

pinne65

Member
Hello,

I'm trying to call a web service (my own) but I'm getting the SOAP fault:

Web service operation TestCust generated a SOAP Fault. SOAP faultstring is: An error was detected while executing the Web Service request. (10893) (11506).

There was a previous post about the same error. But no solution.

I got some got the details below by using hSoapFaultDetail:GET-SERIALIZED().

<FaultDetail xmlns:ns1="urn:soap-fault:details"><errorMessage>An error occurred connecting to the Web Service application. (10901)</errorMessage><requestID>a8602eba31bbf09f:-5bb1bb85:122eb2434ea:-7ffe#56</requestID></FaultDetail>

True, it gives me some more info but not much. It seems like there ought to be more available. But I can't find it.

Btw I'm running 10.1B on AIX 5.3 using Apache-Tomcat 4.1.40 & mod_jk w Apache 2.0.48.

Hints or Solution Anyone.

TIA!
 

rstanciu

Member
Try to get more details .. on the client side also take a look to wsa1 log file and
to the appserver log file.


DEFINE VARIABLE err AS LOGICAL NO-UNDO.

RUN yourProcedure IN hPortType .... NO-ERROR.
RUN ErrorInfo (OUTPUT err).

/*******************************************************************/
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.
/*******************************************************************/
 

pinne65

Member
Thanks for responding rstanciu,

I added the error checking function you provided with the results below.

Web service operation TestCust generated a SOAP Fault. SOAP faultstring is:
An error was detected while executing the Web Service request. (10893) (11506)

Fault Code: Receiver
Fault String: An error was detected while executing the Web Service request. (10893) ¦
Fault Actor:
Error Type: SOAP-FAULT

Error Type: SOAP-FAULT-DETAIL

<detail xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><FaultDetail
xmlns:ns1="urn:soap-fault:details"><errorMessage>An error occurred
connecting to the Web Service application.
(10901)</errorMessage><requestID>a8602eba31bbf09f:397d66a5:122f11b90ff
:-7ffe#1</requestID></FaultDetail></detail>

The appserver log did not contain any errors, neither were any entries added added to it after calling the web service.
The wsa1.wsa.log (below) was the only log with new entries and it indeed contains an error:

TestCust 4GL-Provider Error in SOAP request execution: Connect Failure: Application Service TestCust Unknown at NameServer at Host localhost Port 5162. (8234) (10926)


Unfortunately I'm not experienced enough to figure out what causes the error. I'm only cook-book following the TestCust web-service sample in the Progress Docs.

The Progress Web services toolkit suggests that it's because the appserver is not running. But it is. I can connect to the same appserver and run the code.


wsa1.wsa.log:
======================================================================
[09/08/06@12:07:16.351-0700] P-3551568 T-main 1 --- --- /u/progress/wrk/wsa1.wsa.log opened.
[09/08/06@12:07:16.353-0700] P-3551568 T-main 1 --- --- Logging level set to = 4
[09/08/06@12:07:16.353-0700] P-3551568 T-main 1 --- --- Log entry types activated: WSADefault,
[09/08/06@12:07:16.366-0700] P-3551568 T-main 1 wsa1 ---------------- Starting WSA adapter wsa1, version 10.1B03, ID a8602eba31bbf09f:397d66a5:122f11b90ff:-7ffe (10620)
[09/08/06@12:07:16.366-0700] P-3551568 T-main 3 wsa1 Properties installDir : /u/progress/dlc
[09/08/06@12:07:16.366-0700] P-3551568 T-main 3 wsa1 Properties properties file : /u/progress/dlc/properties/ubroker.properties
[09/08/06@12:07:16.366-0700] P-3551568 T-main 3 wsa1 Properties instanceName : wsa1
[09/08/06@12:07:16.367-0700] P-3551568 T-main 3 wsa1 Properties logfilename : /u/progress/wrk/wsa1.wsa.log
[09/08/06@12:07:16.367-0700] P-3551568 T-main 3 wsa1 Properties loggingLevel : 4
[09/08/06@12:07:16.367-0700] P-3551568 T-main 3 wsa1 Properties logAppend : 1
[09/08/06@12:07:16.367-0700] P-3551568 T-main 3 wsa1 Properties webAppEnabled : true
[09/08/06@12:07:16.367-0700] P-3551568 T-main 3 wsa1 Properties adminEnabled : true
[09/08/06@12:07:16.367-0700] P-3551568 T-main 3 wsa1 Properties enableWsdl : true
[09/08/06@12:07:16.368-0700] P-3551568 T-main 3 wsa1 Properties logEntryTypes : WSADefault
[09/08/06@12:07:16.368-0700] P-3551568 T-main 3 wsa1 Properties logThreshold : 0
[09/08/06@12:07:16.368-0700] P-3551568 T-main 3 wsa1 Properties numLogFiles : 3
[09/08/06@12:07:16.368-0700] P-3551568 T-main 3 wsa1 Properties httpErrorPage : httperror.html
[09/08/06@12:07:16.368-0700] P-3551568 T-main 3 wsa1 Properties enableWsdlListings : true
[09/08/06@12:07:16.368-0700] P-3551568 T-main 3 wsa1 Properties wsdlListingPage : WSDLListing.html
[09/08/06@12:07:16.369-0700] P-3551568 T-main 3 wsa1 Properties noWsdlPage :
[09/08/06@12:07:16.369-0700] P-3551568 T-main 3 wsa1 Properties adminAuth : false
[09/08/06@12:07:16.369-0700] P-3551568 T-main 3 wsa1 Properties wsdlAuth : false
[09/08/06@12:07:16.369-0700] P-3551568 T-main 3 wsa1 Properties appAuth : false
[09/08/06@12:07:16.369-0700] P-3551568 T-main 3 wsa1 Properties adminRoles : PSCAdmin,PSCOper
[09/08/06@12:07:16.369-0700] P-3551568 T-main 3 wsa1 Properties wsaURL : http://crap:80/wsa/wsa1
[09/08/06@12:07:16.370-0700] P-3551568 T-main 3 wsa1 Properties wsdlAppURL : http://crap/wsa/wsa1
[09/08/06@12:07:16.370-0700] P-3551568 T-main 3 wsa1 Properties debugClients :
[09/08/06@12:07:16.370-0700] P-3551568 T-main 3 wsa1 Properties logMsgThreshold : -1
[09/08/06@12:07:16.370-0700] P-3551568 T-main 3 wsa1 Properties appProtocol : 0
[09/08/06@12:07:16.539-0700] P-3551568 T-main 3 wsa1 WSA Loading the Web Service applications registry
[09/08/06@12:07:16.583-0700] P-3551568 T-main 3 wsa1 Admin-Provider Initializing Application: default
[09/08/06@12:07:16.585-0700] P-3551568 T-main 3 wsa1 WSA Loaded XML Schema: /usr/local/apache-tomcat-4.1.40/webapps/wsa//wsad0006.xsd
[09/08/06@12:07:16.585-0700] P-3551568 T-main 3 wsa1 WSA Loaded XML Schema: /usr/local/apache-tomcat-4.1.40/webapps/wsa//wsad0005.xsd
[09/08/06@12:07:16.586-0700] P-3551568 T-main 3 wsa1 WSA Loaded XML Schema: /usr/local/apache-tomcat-4.1.40/webapps/wsa//wsad0004.xsd
[09/08/06@12:07:16.586-0700] P-3551568 T-main 3 wsa1 WSA Loaded XML Schema: /usr/local/apache-tomcat-4.1.40/webapps/wsa//wsad0003.xsd
[09/08/06@12:07:16.586-0700] P-3551568 T-main 3 wsa1 WSA Loaded XML Schema: /usr/local/apache-tomcat-4.1.40/webapps/wsa//wsad0002.xsd
[09/08/06@12:07:16.586-0700] P-3551568 T-main 3 wsa1 WSA Loaded XML Schema: /usr/local/apache-tomcat-4.1.40/webapps/wsa//wsad0001.xsd
[09/08/06@12:07:17.255-0700] P-3551568 T-main 3 wsa1 Admin-Provider Loaded application runtime properties: /usr/local/apache-tomcat-4.1.40/webapps/wsa//wsa1/default.props
[09/08/06@12:07:17.255-0700] P-3551568 T-main 3 wsa1 Admin-Provider Initializing Application: TestCust
[09/08/06@12:07:17.378-0700] P-3551568 T-main 3 wsa1 Admin-Provider Loaded application runtime properties: /usr/local/apache-tomcat-4.1.40/webapps/wsa//wsa1/TestCust.props
[09/08/06@12:07:17.378-0700] P-3551568 T-main 3 wsa1 Admin-Provider Loading application descriptor: /usr/local/apache-tomcat-4.1.40/webapps/wsa//wsa1/TestCust.wsad
[09/08/06@12:07:17.532-0700] P-3551568 T-main 3 wsa1 Admin-Provider Generating deployment descriptors
[09/08/06@12:07:17.537-0700] P-3551568 T-main 3 wsa1 Admin-Provider Creating pool manager: TestCust
[09/08/06@12:07:17.542-0700] P-3551568 T-main 1 --- --- Log entry types activated: WSADefault,
[09/08/06@12:07:17.627-0700] P-3551568 T-main 4 wsa1 WSA Loading user role PSCAdmin (10982)
[09/08/06@12:07:17.627-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCAdmin: wsa.wsa1.apps.props read,write (10983)
[09/08/06@12:07:17.628-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCAdmin: wsa.wsa1.apps.defaults read,write (10983)
[09/08/06@12:07:17.628-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCAdmin: wsa.wsa1.apps.enable read,write (10983)
[09/08/06@12:07:17.629-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCAdmin: wsa.wsa1.servlet.services read,write,delete (10983)
[09/08/06@12:07:17.629-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCAdmin: wsa.wsa1.servlet.stats read,write (10983)
[09/08/06@12:07:17.630-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCAdmin: wsa.wsa1.servlet.props read,write (10983)
[09/08/06@12:07:17.630-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCAdmin: wsa.wsa1.apps.stats read,write (10983)
[09/08/06@12:07:17.630-0700] P-3551568 T-main 4 wsa1 WSA Loading user role DEFAULTWSDL (10982)
[09/08/06@12:07:17.631-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role DEFAULTWSDL: wsa.wsa1.wsdl.* read (10983)
[09/08/06@12:07:17.631-0700] P-3551568 T-main 4 wsa1 WSA Loading user role PSCOper (10982)
[09/08/06@12:07:17.631-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCOper: wsa.wsa1.apps.props read (10983)
[09/08/06@12:07:17.632-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCOper: wsa.wsa1.apps.defaults read (10983)
[09/08/06@12:07:17.632-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCOper: wsa.wsa1.apps.enable read (10983)
[09/08/06@12:07:17.634-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCOper: wsa.wsa1.servlet.services read (10983)
[09/08/06@12:07:17.634-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCOper: wsa.wsa1.servlet.stats read (10983)
[09/08/06@12:07:17.635-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCOper: wsa.wsa1.servlet.props read (10983)
[09/08/06@12:07:17.663-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role PSCOper: wsa.wsa1.apps.stats read (10983)
[09/08/06@12:07:17.663-0700] P-3551568 T-main 4 wsa1 WSA Loading user role DEFAULTUSER (10982)
[09/08/06@12:07:17.664-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role DEFAULTUSER: wsa.wsa1.4GL.* execute (10983)
[09/08/06@12:07:17.664-0700] P-3551568 T-main 4 wsa1 WSA Loading user role DEFAULTADMIN (10982)
[09/08/06@12:07:17.664-0700] P-3551568 T-main 4 wsa1 WSA adding permission to user role DEFAULTADMIN: wsa.wsa1.servlet.services read (10983)
[09/08/06@12:07:17.767-0700] P-3551568 T-main 3 wsa1 WSA Initialization parameter: instanceName value: wsa1 (10965)
[09/08/06@12:07:17.773-0700] P-3551568 T-main 3 wsa1 WSA Initialization parameter: InstallDir value: /u/progress/dlc (10965)
[09/08/06@12:07:17.775-0700] P-3551568 T-main 3 wsa1 WSA Initialization parameter: propertyFileName value: /u/progress/dlc/properties/ubroker.properties (10965)
[09/08/06@12:09:06.032-0700] P-3551568 T-TP-Processor3 3 wsa1 WSA New Request: ID=0 (10927)
[09/08/06@12:09:06.037-0700] P-3551568 T-TP-Processor3 4 wsa1 Message-Debug GET request received from client anonymous at address 172.16.11.50 (10963)
[09/08/06@12:09:07.554-0700] P-3551568 T-TP-Processor2 3 wsa1 WSA New Request: ID=1 (10927)
[09/08/06@12:09:07.555-0700] P-3551568 T-TP-Processor2 3 wsa1 WSA New Request: ID=1 (10927)
[09/08/06@12:09:07.555-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug POST request received from client anonymous at address 172.16.11.50 (10963)
[09/08/06@12:09:08.396-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug Raw SOAP request:
[09/08/06@12:09:08.396-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body xmlns:s0="http://www.w3.org/2001/XMLSchema"><ns0:TestCust xmlns:ns0="urn:p00p3r:TestCust:TestCust"><ns0:pCustNum xsi:type="s0:int">1</ns0:pCustNum></ns0:TestCust></SOAP-ENV:Body></SOAP-ENV:Envelope> (10964)
[09/08/06@12:09:11.024-0700] P-3551568 T-TP-Processor2 2 TestCust 4GL-Provider Error in SOAP request execution: Connect Failure: Application Service TestCust Unknown at NameServer at Host localhost Port 5162. (8234) (10926)
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug Raw SOAP response:
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug <?xml version=''1.0'' encoding=''UTF-8''?>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug <SOAP-ENV:Body>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug <SOAP-ENV:Fault>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug <faultcode>SOAP-ENV:Server</faultcode>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug <faultstring>An error was detected while executing the Web Service request. (10893)</faultstring>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug <detail>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug <ns1:FaultDetail xmlns:ns1="urn:soap-fault:details"><errorMessage>An error occurred connecting to the Web Service application. (10901)</errorMessage><requestID>a8602eba31bbf09f:397d66a5:122f11b90ff:-7ffe#1</requestID></ns1:FaultDetail>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug </detail>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug </SOAP-ENV:Fault>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug </SOAP-ENV:Body>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug </SOAP-ENV:Envelope>
[09/08/06@12:09:11.133-0700] P-3551568 T-TP-Processor2 4 wsa1 Message-Debug (10960)
 

rstanciu

Member
> Application Service TestCust Unknown
This is "normal error" because of ProxyGenerator defaults.
You have to unckeck the Appservice name and put your Appserver state-free name
in place.
 

Attachments

  • Capture-XP - VMware Workstation.png
    Capture-XP - VMware Workstation.png
    13.2 KB · Views: 68

pinne65

Member
Very true,

Maybe if it had said Application Server instead of Application Service it would have clicked for me. But just maybe ;-)
 

redsuitee

Member
I got this error :
Web service operation ReadRQ generated a SOAP Fault. SOAP faultstring is:
A fatal error has occured. (11506)

Fault Code: Receiver
Fault String: A fatal error has occured
Fault Actor:
Error Type: SOAP-FAULT
My code :
Code:
    OTA_ReadRQ = '<ReadRequests> <HotelReadRequest HotelCode="vhp"> <SelectionCriteria SelectionType="Undelivered"/> </HotelReadRequest> </ReadRequests>'.

    RUN ReadRQ IN hPmsXchangeService(INPUT OTA_ReadRQ, OUTPUT OTA_ResRetrieveRS) NO-ERROR.

    DISP ERROR-STATUS:ERROR-OBJECT-DETAIL.
    PAUSE.

    RUN ErrorInfo (OUTPUT err).

and from ERROR-STATUS:ERROR-OBJECT-DETAIL, I get 1182 error message.
Where is my fault?
Plz help
 

redsuitee

Member
Actually I doubt whether my query true or false because webservice is a new thing for me.
Is the content of OTA_readRQ variable true or false?
I set the variable as Longchar datatype.
 
Top