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

Create pdu data #116

Closed
mo3tasem74 opened this issue May 28, 2024 · 1 comment
Closed

Create pdu data #116

mo3tasem74 opened this issue May 28, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@mo3tasem74
Copy link

Dear Mr Zubri
i have created an mx message but i am having difficulty creating the external part, which is DataPDU and header tag. like i can create from tag and below, i mean the body tag but for the above part, i don't know which class i should include to take an object from it and create the rest of the message as i did in the remaining part

this is my missing part

?xml version="1.0"?>
<ns:DataPDU
xmlns:ns="urn:swift:saa:xsd:saa.2.0">
ns:Header
ns:Message
ns:SenderReferenceMXWebM522237</ns:SenderReference>
ns:MessageIdentifiercamt.029.001.01</ns:MessageIdentifier>
ns:FormatAnyXML</ns:Format>
ns:SubFormatInput</ns:SubFormat>
ns:Sender
ns:DNo=ptsausaa,o=swift</ns:DN>
ns:FullName
ns:X1PTSAUSAAXXX</ns:X1>
</ns:FullName>
</ns:Sender>
ns:Receiver
ns:DNo=ptsausaa,o=swift</ns:DN>
ns:FullName
ns:X1PTSAUSAAXXX</ns:X1>
</ns:FullName>
</ns:Receiver>
ns:InterfaceInfo
ns:UserReferenceMXWebM522237</ns:UserReference>
</ns:InterfaceInfo>
ns:NetworkInfo
ns:IsNotificationRequestedtrue</ns:IsNotificationRequested>
ns:Serviceswift.generic.ia!x</ns:Service>
</ns:NetworkInfo>
</ns:Message>
</ns:Header>

@zubri zubri added the question Further information is requested label Oct 10, 2024
@zubri
Copy link
Member

zubri commented Oct 10, 2024

Prowide has full support to build and parse the DataPDU wrapper in the Prowide Integrator.
However such feature is not available in the open source library.

You could explore the Prowide Integrator offer.

https://www.prowidesoftware.com/development-tools/integrator

Or if you want to handle that yourself, the way I would recommend is that you take the XSD schema for the DataPDU (this come from SWIFT Alliance Access, and there are multiple versions of it) and that you generate the model with jaxb.

Then you would be able to marshall the wrapper in a similar way to what the ISO library does with the MX payloads.

Notice you can combine your own marshaller for the wrapper, and use the library serializer to inject afterwards the MX payload in the DataPDU Body element.

@zubri zubri self-assigned this Nov 8, 2024
@zubri zubri closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants