Skip to content
This repository

multipart boundary supprt #74

Open
aplatt opened this Issue · 0 comments

1 participant

aplatt
aplatt

I am trying to get iodocs to POST a message to my REST service that expects a "multipart/form-data" content-type. How do I persuade iodocs to put in bundaries on POST? When I snoop the message being sent I can see there are no boundaries and I get the following error on the server side:

java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: Couldn't find MIME boundary: --myboundary

My iodocs config is:

"OSSUI": {
"name": "Personal Storage",
"protocol": "http",
"baseURL": "jrbuild1srv:28080",
"publicPath": "/ossui-examples/services/rest/ossui/preferences",
"headers" : {"Content-Type": "multipart/form-data; boundary=myboundary"},
"auth": "",
"keyParam": ""
}

{
"endpoints":[
{
"name":"Save Methods",
"methods":[
{
"MethodName":"Save preferences",
"Synopsis":"This method allows you to save a string in personal storage",
"HTTPMethod":"POST",
"URI":"/set",
"RequiresOAuth":"N",
"parameters":[
{
"Name":"name",
"Required":"Y",
"Default":"Test",
"Type":"string",
"Description":"Authorized user name"
},
{
"Name":"value",
"Required":"Y",
"Default":"",
"Type":"string",
"Description":"Value to store"
}
]
}
]
},
{
"name":"Fetch Methods",
"methods":[
{
"MethodName":"Fetch preferences",
"Synopsis":"This method allows you to fetch a string from personal storage",
"HTTPMethod":"GET",
"URI":"/get",
"RequiresOAuth":"N",
"parameters":[
{
"Name":"name",
"Required":"Y",
"Default":"Test",
"Type":"string",
"Description":"Authorized user name"
}
]
}
]
}
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.