Will - My bad. My question was concerning the documentToRecord service not the recordToDocument service. I have been unable to execute this service from a client because I’m unsure of what to retrieve the node from stringToDocument as and what to put the node back into the pipeline as for the invoke of the documentToRecord service.
Basically the client is following this procedure:
- Read in the input XML file.
- Prepare it as a string for input into stringToDocument.
- Invoke stringToDocument.
- Retrieve node from the output.
- Prepare it along with the strings makeArrays and recordName as inputs for documentToRecord.
- Invoke documentToRecord.
- Retrieve the boundNode from documentToRecord.
- Rename the boundNode and prepare it as input to a map step that converts the record to a Mainframe FLR file.
- Read in the expected FLR file.
- assertEquals(flr_file_generated,flr_file_actual) //A JUnit method for assertions.
Hope that clears things up. At this point I am really looking for an example of invoking a service like documentToRecord from a Java client, or information on how to avoid invoking stringToDocument and documentToRecord and just convert from XML to IData completely within the client code.
Nick-
Thanks for the link, but I have been using JUnit for quite some time, I was really trying to find out how to get certain transforms done in IS in order to make testing more complete.
Regards,
-Dave
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB