I’m using a 3rd party control that captures data and puts in into an XML file with the content type=application/octet-stream. I’m unable to change the content type. When I post the file to TN:receive it does not register. I’m able to pass the file to a .NET Function and then submit it to wM but I want to remove the .NET Function. Any suggestions on how I can get wM TN or a service to receive the post? Below is the Header of the post that I can capture in .NET.
Alternative is post the xml string to a custom service and let it post to TN using routeXML or receive service.This way you will have a chance to send the required content type of TN.
RMG - When I attempt to post to a service I’m unable to capture the file. My first step is SaveToPipeline but it doesn’t pick up the attached file. Any suggestions on how to setup a service to receive an attached file with Content-Type: application/octet-stream?
I think you need to register a content handler for Application/Octet-stream. There are samples in WmSamples. Whether you can submit directly to TN or going though a 3rd service, sorry, not too sure… Give it a try.
I was able to fix this by running sample.contentHandler:registerContentHandler service and using application/octet-stream as my input. The next time I posted the file to the service I was able to retreive it with contentSteam. The string contained the xml file that I needed. I had to remove some extra characters from it but I was able to get it to work.