There is another approach that may be easier in the long run. Integration Server has a number of content handlers built-in.
When a client submits a document into integration server, the content type is normally specified and the appropriate content handler parses the file.
Here is a quick overview of the three major content handlers in Integration Server:
XML: application/xml
Flatfile: application/x-flatfile
EDI: application/EDIStream; application/EDI; application/X12; application/UNEDIFACT
Back to the issue of using your own content handler.
Let’s say you have a customer who cannot send you fully qualified xml files. You could write and register a content handler and assign it a new content type of application/brokenXML or something like that.
When the customer sends the xml file over and specifies the content type of application/brokenXML, the new content handler will take over.
Only one content handler of a given type can be registered at any time.
You can change the built-in content handler (NOT RECOMMENDED OF COURSE) for a given type by using the java API to unregister and then register your content handler.
Igor Androsov wrote an excellent eZine article on this site regarding the creation of custom content handlers.
HTH,
Ray
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services