Jump to content
Asked by pat1975
Posted Nov 05 2009 06:23 AM
I have .net app which scans data from barcode and send it to java web app in the form of xml. Now the problem is we can not standardize xml document as there is some difference in data being sent from client to client. So problem we are facing is we have to write custom code in java for every customer who buy our software. We want to generalize the xml processing code so that it can be used for all client. Please give me your out put. There is handheld device which just scan barcode and send that data in the form of xml and it is a .net application.
Comment by pat1975 : Nov 05 2009 05:53 PM
Thanks for your help, but we dont have any access to .net code and whatever option we had is on java code. Is there any option on java side. I havent dont much of a xml processing so I might be missing something. But all your feedback will be appreciated.
Answered by bmclaugh
Posted Nov 16 2009 05:07 PM
It's a little weird to see that you have a .NET app but "dont have any access to .net code." You've actually got a huge array of Java and XML options. Wander around XML Apache and you'll stumble over several.
But the real question is this: it sounds less like you need data binding and more like you just need to set an XML DTD or Schema or Relax NG Schema to constrain your data. Writing custom code for every client doesn't make sense; at worst, you should have one set of code to handle a particular XML format.
Once you've got that format set, then, yes, you can use data binding or a similar data binding API to pull your data into Java without lots of custom code.
Does that make sense?
O'Reilly Media, Inc.
Comment by bootsmaniac : Feb 05 2010 06:22 AM
Thanks for the external links about XML. I have been looking to increase my knowledge and they proved very helpful. Thanks.