Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to the latest version of fiscalization v2.0 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stsrki
Copy link

@stsrki stsrki commented Aug 28, 2020

Hi @tgrospic, I made some changes to your project.

Done:

  • Upgrade to latest version of fiscalization, v2.0
  • Projects updated to .Net Framework 4.8
  • Fixed issues with certificates on latest version of .Net Framework

All tests are passing!

@tgrospic
Copy link
Owner

Hi @stsrki! Thanks for the update!

  1. It seems there are new methods added in the schema so wrappers for those are still missing, right?
  2. Is your update to wsdl version 1.4 or 1.5? Which one is used currently in production?

@stsrki
Copy link
Author

stsrki commented Aug 31, 2020

Hi, I used the one from https://www.porezna-uprava.hr/HR_Fiskalizacija/Stranice/Tehni%C4%8Dke-specifikacije.aspx, specifically WSDL-EDUC 1.5. Now that I think if I shuld have probably used WSDL-PROD 1.5​ instead?

Also I didn't add any additional new methods, I only wanted to update references to the latest version, as I'm still not too familiar with the project.

@tgrospic
Copy link
Owner

tgrospic commented Aug 31, 2020

This is added in EDUC version of wsdl. I'm not sure if this is of any use in test environment. I'm ok to keep EDUC version for now.

EDIT: It seems this was already in 1.4 because wrapper method is already defined.

  <wsdl:message name="ProvjeraRequest">
    <wsdl:part element="fis:ProvjeraZahtjev" name="request"/>
  </wsdl:message>
  <wsdl:message name="ProvjeraResponse">
    <wsdl:part element="fis:ProvjeraOdgovor" name="response"/>
  </wsdl:message>
...
    <wsdl:operation name="provjera">
      <wsdl:input message="uis:ProvjeraRequest"/>
      <wsdl:output message="uis:ProvjeraResponse"/>
    </wsdl:operation>
...
     <wsdl:operation name="provjera">
      <soap:operation soapAction="http://e-porezna.porezna-uprava.hr/fiskalizacija/2012/services/FiskalizacijaService/provjera"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>

@stsrki
Copy link
Author

stsrki commented Aug 12, 2021

@renorino69 Ne sjećam se sa sigurnošću. Ali mislim da je bilo vezano s tim da u novijim .Net frameworku je trebalo dodati ovo u project startup:

// MUST be set for .NetFramework 4.7 and latest! Otherwise we get "System.Security.Cryptography.CryptographicException: Invalid algorithm specified."
AppContext.SetSwitch( "Switch.System.Security.Cryptography.Xml.UseInsecureHashAlgorithms", true );
AppContext.SetSwitch( "Switch.System.Security.Cryptography.Pkcs.UseInsecureHashAlgorithms", true );

// Unconditionally trust the server certificate
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback( ( sender, cert, chain, sslPolicyErrors ) => true );

@stsrki
Copy link
Author

stsrki commented Aug 12, 2021

Sorry, VBA nisam koristio više od 20 godina tako da ti ne bih mogao puno pomoći :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants