Questions? Feedback?powered byOlark live chat software
Bug 3168

Soap FAULT using httpclient 09 October, 2019

Walter Ruaro
08 August, 2019
Product: PowerBuilder Category: PowerScript
Version: 2019 Publishing: Public
Status: Closed Priority: P3
Classification: Issue Resolution: FIXED
Tom Jiang 09 October, 2019
Hi Walter,

I am glad it has resolved your issue. We will now proceed to close this ticket. 
Have a good day!

Regards,

Tom Jiang
Walter Ruaro 09 October, 2019
Excellent Tom Jiang !!!!

It is what we were needing.

Many, thank you very much!!!!
Tom Jiang 08 October, 2019
Hi Walter,

Sorry for the late reply on our side! We analyzed your code, if you want to get the SOAPFault message, you should still be able to get it using the GetResponseBody() method when you get the 500 in GetResponseStatusCode(). It will return the following in your test case. Is this what you are looking for? If it's not, please elaborate on what you want to achieve. Thanks! 

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<soapenv:Body>
		<soapenv:Fault>
			<faultcode
				xmlns:ns1="http://xml.apache.org/axis/">ns1:xml.generationTime.invalid
			</faultcode>
			<faultstring>generationTime posee formato o dato inv&#xE1;lido (ej: en el futuro o m&#xE1;s de 24 horas de antig&#xFC;edad)</faultstring>
			<detail>
				<ns2:exceptionName
					xmlns:ns2="http://xml.apache.org/axis/">gov.afip.desein.dvadac.sua.view.wsaa.LoginFault
				</ns2:exceptionName>
				<ns3:hostname
					xmlns:ns3="http://xml.apache.org/axis/">lujuria.afip.gov.ar
				</ns3:hostname>
			</detail>
		</soapenv:Fault>
	</soapenv:Body>
</soapenv:Envelope>

Regards,

Tom Jiang
Walter Ruaro 07 October, 2019
I believe that the day and date should be suggested by you and fulfilled

The two times they suggested a schedule, we were waiting for them ... They never connected
Walter Ruaro 07 October, 2019
Dear Tom ..

I don't know if it's a bug or not, but the solution of using httpclient is not something useful

After two months of waiting for a consistent response, they ask us if we can close the ticket?
Tom Jiang 04 October, 2019
Hi Walter,

HTTPClient is just an object for handling generic http requests. It is not a SOAP client nor does it understand SOAP or other protocols built on top of http. You will have to handle such cases by yourself based on the statuscode,  responsebody, etc. 

If you need suggestions on how to implement something like a SOAPClient, we suggest that you post such questions on community.appeon.com. As this is not a bug, please confirm if we can close this ticket. Thanks!

Regards,

Tom Jiang
Ken Guo 30 September, 2019
Hi Walter,

Sorry for replying so late.
We are working on reproducing/analyzing your case. I will keep you posted of the results here.

Regards,
Ken
Walter Ruaro 30 September, 2019
good afternoon

We have had no response to this issue, and we have become critical.
Walter Ruaro 27 August, 2019
Good morning.

This issue is becoming critical.

We have migrated many of our integrations to HttpClient, but we need to be able to control SoapFault

Do you have any news on how we can handle the issue?

thank you
Walter Ruaro 16 August, 2019
Hello

Have any news about this teicket.

They consider that we can do some other test.

Thank you
Walter Ruaro 09 August, 2019
bug3168_soapfault.zip (73KB)

Hi Cedric.

I attached an example.

Within the ZIP you will see two images.

One shows the execution of the WS with SoapUI, where you can see the SOAPFault. And the other the error obtained in PowerBuilder.

If you do not get a value of 500 in GetResponseStatusCode, rerun the same WS. In that case we should get a SoapFault.

Thank you in advance for the help you can give us.

Best regards
Walter Ruaro
Cedric Pernet 08 August, 2019
Hello Walter,
Could you please provide a functioning example code?
This is for analyzing the case and pinpoint the problem.

-Cedric
Walter Ruaro 08 August, 2019
Screenshot_97.png (34KB)

I attach the other image
Walter Ruaro 08 August, 2019
Screenshot_96.png (23KB)

Hello
We have started using httpclient and we find it very practical.

We would only be missing how to catch a SoapFault as shown in the following image.

The GetResponseStatusCode function returns us 500, but we failed to attract the SoapFault.

I would appreciate if you can guide us in this regard.

Thank you so much
OS:
Windows 10 
Platform:
32-bit 
Database Type:
Microsoft SQL Server 
Database Version:
2014