Difference between wm.b2b.edi:convertToValues and pub.flatFile:convertToValues

Hi,

Flat file
PurchaseOrderPO1+080502Buyer+ABC Corp.+123 Main St.+Fairfax+VA+22030!
OrderDetail10011.00!
OrderDetail
**!

Output when I used wm.b2b.edi:convertToString
PurchaseOrderPO1|080502Buyer|ABC Corp.|123 Main St.|Fairfax|VA|22030+OrderDetail1001*1.00+

Output when I used pub.flatFile:convertToString
PurchaseOrderPO1|080502Buyer|ABC Corp.|123 Main St.|Fairfax|VA|22030+OrderDetail1001*1.00+OrderDetail+

Is there any other difference between these services?

Regards,
Pauly

Each has its own pros and cons…but why you want to use both the services when you are getting required o/p.

Any reason behind it?

HTH,
RMG

edi:convertToString is meant for EDI Standard files like X12, EDIFACT.
flatFile:convertToString is meant for any other custom (non-standard) file format.
Using flatFile:convertToString on EDI Standard files will produce unpredictable results.