Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Using your sample code and messages I would like to emulate a client side (jBuilder) process sending a message to a server (WebLogic). Can you provide a way to test this process?

0
10 Posted

Using your sample code and messages I would like to emulate a client side (jBuilder) process sending a message to a server (WebLogic). Can you provide a way to test this process?

0
10

• We need to generate a “virtual database” for the jBuilder side. • Run SampleX12DocumentHanlder passing the sample.output.840.1 file. Save the output as an xml file. This xml file will emulate a database on the jBuilder side. • On the jBuilder side • Take a look at FileConverter.java. We are going to use the logic in… case ‘w’: EDIXMLParser xmlp = new EDIXMLParser(); xmlp.parseFile(args[1]); xmlp.getEnvelope().validate(de); de.logErrors(); if (de.getErrorCount() == 0) { logr.info(“no errors”); env = xmlp.getEnvelope(); } • The call to EDIXMLParser will emulate building a x12 message from the virtual database ( the xml file above). • You’ll need to work with the statement env = xmlp.getEnvelope() to generate the X12 message to be passed to the AS2 sending process. To build the message use the following statement env.getFormattedText(Envelope.X12_FORMAT). This call generates a String object that is the X12 message. • Take the String object and pass it (somehow) to the AS2 process. • O

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.