SOAP and HTTP walk around- Poland GUS service

Hello,

I have problem with access to GUS REGON service- it is a polish government database of companies and their registration data.

When I try to access it with SOAP module I receive constant error:

Unknown namespace q1

And I think problem is under WSDL because of

targetNamespace=“http://tempuri.org/

That’s why according to Make’s official support page I tried walkaround with HTTP module.

When doing it exactly as instruction:

Body type: raw
Content type: application/xml

I receive status code 415 with error:

cannot process the message because the content type “application/xml” was not the expected type 'multipart/related;

So I tried different combination of content types. All of them with the same results- except one:

application/soap+xml

And received status 500.

But that’s still not success.

They are using SOAP protocol- documentation available here- Portal API GUS

Sandbox for testing:

WSDL:

https://wyszukiwarkaregontest.stat.gov.pl/wsBIR/wsdl/UslugaBIRzewnPubl-ver11-test.wsdl

Sevice URL:

https://wyszukiwarkaregontest.stat.gov.pl/wsBIR/UslugaBIRzewnPubl.svc

User key (KluczUzytkownika)

abcde12345abcde12345

How does it work. You need to send request with envelope Zaloguj and you will receive token valid for 60 minutes, 20 characters long.

XML which I used:

<Envelope xmlns="http://www.w3.org/2003/05/soap-envelope">
    <Body>
        <Zaloguj xmlns="http://CIS/BIR/PUBL/2014/07">
            <pKluczUzytkownika>abcde12345abcde12345</pKluczUzytkownika>
        </Zaloguj>
    </Body>
</Envelope>

And:

<?xml version="1.0"?>
<Envelope xmlns="http://www.w3.org/2003/05/soap-envelope">
    <Body>
        <Zaloguj xmlns="http://CIS/BIR/PUBL/2014/07">
            <pKluczUzytkownika>[string?]</pKluczUzytkownika>
        </Zaloguj>
    </Body>
</Envelope>

Do you have any ideas what can I try? Or it will be impossible to connect GUS REGON with Make.com?

I don’t have any experience with SOAP. I know that is existed but was using it only for last 6 hours to try different options and XMLs.

Have a great day!

This needs an expert’s investigation, create a support ticket.

Thank you for reply!

I spend more time to check different options and found request body that works.

Maybe not as it should but at least generates 200 respond.

Value:

application/soap+xml

XML Body:

<soap:Envelope
	xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
	xmlns:ns="http://CIS/BIR/PUBL/2014/07">
	<soap:Header
		xmlns:wsa="http://www.w3.org/2005/08/addressing">
		<wsa:Action>http://CIS/BIR/PUBL/2014/07/IUslugaBIRzewnPubl/Zaloguj</wsa:Action>
		<wsa:To>https://wyszukiwarkaregontest.stat.gov.pl/wsBIR/UslugaBIRzewnPubl.svc</wsa:To>
	</soap:Header>
	<soap:Body>
		<ns:Zaloguj>
			<ns:pKluczUzytkownika>abcde12345abcde12345</ns:pKluczUzytkownika>
		</ns:Zaloguj>
	</soap:Body>
</soap:Envelope>

But still- Make.com isn’t recognising respond body as XML.

How it looks like:


How it should look like:

<ZalogujResult>sessionIdentifier</ZalogujResult>

Should contain 20 characters key.

Binary (hexadecimal) code generated by Make contains:

--uuid:be45f0da-851b-4a0a-a602-e7b0b9f37667+id=281469
Content-ID: <http://tempuri.org/0>
Content

Is there any module or option to extrude all 650 bytes to have this key?

Have a nice day!

Hi Michass,
Have you managed to make a connection to GUS?
I have same problem. :frowning: