Sorry, I did not see your comments on the other post.
Unfortunately, I don't recall what exactly I had to do to fix the issue I reported in this post. I've had to go through a lot of iterations of code trying different things in order to get to where I am, and I'm still somewhere in the last half of the tunnel that is this project.
However, in reviewing what you posted and comparing against what I (currently) have working (with errors, but not the above error), try removing the two extra dash characters from beginning of your boundary definition.
You defined your MIME boundary as --------------030003010806000401010306
but the references in your parts have two extra dashes at the beginning of your reference.
Here's what I have in my current "working" code.
- I have my boundary set to something simple:
MIME_boundary
.
- In the MIME Header prior to the SOAP Envelope root element AND prior to the start of the FormData file, it says
--MIME_boundary
.
- Then, at the bottom of the request, it says
--MIME_boundary--
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…