How should I treat a response with the SOAP MTOM encoding?

I'm trying to compile a module to use merchant services great eBay API and I hit a major roadblock.

I decided to start with the implementation of a request for active listings. I have the basic features of work

to start the export job and obtain a file ID to download. I can apply for a very good download but the

FileContent returned as a java object. io. ByteArrayOutputStream and I don't know exactly what to do with it.

This is supposed to be XML content with an attached zip file.

The toString result shows that it is Content-Type: application /xop+xml. and it looks like it is delimited by

a limit of mime. This encoding is a bit new to me, but I think it's a more optimized way of packaging the

binary data in an XML response.

The problem is separation of the binary attachment from the XML part.

I found this Blog post

where he ended up suggesting using the that underlie the getByteArray java function but that still don't separate the

XML from the attachment and after that I don't know what to do with the byte array.

This forum works on IIS7 / CF8 fully patched.

In case anyone else has this issue i figgured a way to make it work at least for a zip file. Just, I have to take the

getByteArray result from the returned filecontent and who write with cffile. He writes a file with the soap header

always inside as well as the actual content of the binary file. So now you have a somewhat correct file with extra junk in the headers.

Fortunitly I found that winrar will always open this file and I want to get the content out of it very well.

So there you have it, pretty funky workaround solution, but it will have to do.

Tags: ColdFusion

Similar Questions

Maybe you are looking for

  • DVD/CD-RW drive does not-Tecra A4

    Hi, I have a problem with my Tecra A4.My DVD CD - RW drive does not work properly (power is there, but it does not appear on the system), I have temporary installed a drive of DVD - RW from my HP laptop which works very well.I tried to run my restore

  • Problem of Vista Hm. Prem updates.

    Computer: HP Pav. dv6500. Vista Hm. Prem. (original installation). Problem: There are 2 updates downloaded on my HD that does NOT install when I turn the computer off. Message says they are install but the updated Windows logo appears again in the ta

  • Stuck on black screen Vista system restore

    Hi my family Vista premium would not start normally so I tried to select a safe mode restore point. The chosen restoration was cut for more than 12 hours on a screen black now I didn't no what to do next please help?

  • Following Windows upgrade 2-in-1 10 no automatic rotation of screen on Inspiron 7000

    I have an Inspiron 7000 2-in-1 that I just upgraded to Windows 10. Following the upgrade, auto-rotation of the screen has stopped working, and I could not allow him because the button in the notifications area to do so was gray. I also found the chec

  • WiFi Direct in Android runtime

    Hello Now that BBOS10.2 supports direct WiFi, are there any plans in direct support of Wifi in the Android runtime? What is the timetable for this? ~ M Shea.