0

mail api error "bad request"

I call mail api using the examples as the following:

var content = "<\?xml version=\"1.0\" encoding=\"UTF-8\"?> " +
"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/" +
"xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\"" +
"xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\" " +
" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"> " +
"<SOAP-ENV:Body> " +
"<m:CreateFolder xmlns:m=\"urn:yahoo:ymws\"> " +
" <name>amytest</name> " +
" </m:CreateFolder >" +
" </SOAP-ENV:Body> " +
"</SOAP-ENV:Envelope> ";

xmlHttprequest.send(content).

I got the error of "bad request", please help on what is going wrong? I set the requestHeader("Content-type", "text/xml"),
also tried content-type to be application/json. same error. Thanks.

by
0 Replies

Recent Posts

in Yahoo! Mail Web Services API