-
Notifications
You must be signed in to change notification settings - Fork 37
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
Allow generic participant scheme and id #20
Comments
Hi Martin! I need to perform a separation between generic and PEPPOL identifiers. |
Hi Philip, The document and process identifiers seem to be fine. Possible examples are: Document identifier
Process identifier
I tested the current version of SMP and it accepts the values fine. I don't know your code very well but I was thinking (very simplistically) to initialise the length values and regex values from environment properties for a quick fix. Default values are the current ones. Override with -D arguments ;-) |
Well, I'm more the generic type :) |
Hi Martin! I though about making special checks based on the scheme (like // Philip |
Hello Philip, The scheme we are proposing to use is based on ebCore Party Id. The scheme identifier is a URN so doesn’t resemble the scheme identifiers from PEPPOL. As long as the scheme and id are separated by a double colon (::) it shouldn't matter what the structure of the scheme is. To be honest I'm not sure if there is a requirement to test for correctedness of the scheme or id. Maybe for the Simple...Identifier just keep it generic and allow any value? Kind regards, Martijn. |
Hi Martin! Can you please corss-check if the current SNAPSHOT works for you - thanks. Other question: you are using the E-SENSE scheme for DNS name creation ( // Philip |
Hi Philip, I'll check by Wednesday, is the Snapshot available from the maven repository by any chance, or do I need to build from source? I'm not familiar with SPI. Anything to make it configurable and allow implementers to configure the behaviour of the application would benefit users I would think. We decided to stick with the BDX location specification and encode the identifier with MD5, so no change needed, unless eSENS will become a user ;-) Thank you so much for all your effort Philip. I understand this is all done in your own time? Regards, Martijn. |
Hi Martin! |
The current SNAPSHOT can now always be found here: https://oss.sonatype.org/content/repositories/snapshots/com/helger/peppol-smp-server-webapp/5.0.0-SNAPSHOT/ |
Hi Philip, Found the artefacts! Two questions:
Then I build a docker image to deploy to google containers. When I run the image with the release version everything is fine. When I run the image with the snapshot version I get the following error: Probably something obvious I missed? |
I think if you modify the configuration to |
Hi Philip, You're getting there! Changed to JKD 8, the server now starts 👍 However, querying the SMP with the ID fails: Also an error appears when starting the server but I assume this is not a critical error because the Web UI works as expected (as far as my limited test goes): Haven't tested the maven dependency setting but I suspect it won't work because the files are appended with build numbers, but I'll let you know. |
I fixed both issues - the error does not occur any longer (was a configuration problem on my side with test resource filtering) and the REST APIs now use the identifier factory for parsing (tested and working). The new SNAPSHOT is available at |
Awesome! <ns2:ServiceGroup xmlns="http://busdox.org/transport/identifiers/1.0/" xmlns:ns2="http://busdox.org/serviceMetadata/publishing/1.0/" xmlns:ns3="http://www.w3.org/2005/08/addressing" xmlns:ns4="http://www.w3.org/2000/09/xmldsig#">
<ParticipantIdentifier scheme="urn:oasis:names:tc:ebcore:partyid-type:iso6523:0151">12345678901</ParticipantIdentifier>
<ns2:ServiceMetadataReferenceCollection/>
</ns2:ServiceGroup> Signed service metadata seems to work as well. I'll test some more tomorrow but looks fine so far. Thank you so much Philip!! maven dependency plugin still isn't happy but manual download works! <artifactItem>
<groupId>com.helger</groupId>
<artifactId>peppol-smp-server-webapp</artifactId>
<version>5.0.0-SNAPSHOTS</version>
<classifier>20160608.082845-7</classifier>
<type>war</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>peppol-smp-server.war</destFileName>
</artifactItem> turns into |
Change |
The truststore issue was resolved in the meantime. If you grab a new SNAPSHOT you should be fine. Additionally I added the "register SMP to SML" from peppol.helger.com into the tool. |
We'll be using a SML different from PEPPOL. Our model for updating the SML might be slightly different so hold off on that one if you like. |
Okay, so basically you need a custom |
Hi,
I have a request to make the SMP implementation more generic.
A participant identifier scheme must have a structure following the PEPPOL. The Australian eInvoicing project would like to use your SMP implementation but the participant has a different format, based on ebCore Party Id. The scheme therefore has colons in it and the value is a string without colons.
Possibly make it configurable?
E.g
<smp:ParticipantIdentifier scheme=”urn:oasis:names:tc:ebcore:partyid-type:iso6523:0151”> 23601120601 </smp:ParticipantIdentifier>
I think I traced it to the following code.
peppol-commons:
com.helger.peppol.identifier.CIdentifier;
MAX_IDENTIFIER_SCHEME_LENGTH = 25;
PARTICIPANT_IDENTIFIER_SCHEME_REGEX = "[a-z0-9]+-[a-z0-9]+-[a-z0-9]+";
com.helger.peppol.identifier.IdentifierHelper;
PATTERN_PARTICIPANT_ID = "^([^:]*):(.*)$";
Regards,
Martijn.
The text was updated successfully, but these errors were encountered: