Bug 282698 use application/soap+xml in nsHTTPSOAPTransport

patch by bug@annevankesteren.nl r=doron sr=jst
This commit is contained in:
timeless%mozdev.org 2005-03-30 16:31:27 +00:00
Родитель 2b79db60f1
Коммит 7146ba3112
4 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -325,7 +325,7 @@ nsHTTPSOAPTransport::SetupRequest(nsISOAPCall* aCall, PRBool async,
if (AStringIsNull(uri))
return SOAP_EXCEPTION(NS_ERROR_NOT_INITIALIZED,"SOAP_TRANSPORT_URI", "No transport URI was specified.");
rv = request->OverrideMimeType(NS_LITERAL_CSTRING("text/xml"));
rv = request->OverrideMimeType(NS_LITERAL_CSTRING("application/xml"));
if (NS_FAILED(rv))
return rv;

Просмотреть файл

@ -292,7 +292,7 @@ NS_IMETHODIMP
return rv;
rv = parser->ParseFromString(nsPromiseFlatString(*kEmptySOAPDocStr[aVersion]).get(),
"text/xml", getter_AddRefs(mMessage));
"application/xml", getter_AddRefs(mMessage));
if (NS_FAILED(rv))
return rv;

Просмотреть файл

@ -11,7 +11,7 @@ print LOGFILE $buffer;
close LOGFILE;
# Send the response
print "Content-type: text/xml\n\n";
print "Content-type: application/xml\n\n";
print "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\">\n";
print "<SOAP-ENV:Body>\n";
print " <SOAP-ENV:Fault>\n";

Просмотреть файл

@ -11,7 +11,7 @@ print LOGFILE $buffer;
close LOGFILE;
# Send the response
print "Content-type: text/xml\n\n";
print "Content-type: application/xml\n\n";
print "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\">\n";
print "<SOAP-ENV:Body>\n";
print "<m:GetLastTradePriceResponse xmlns:m=\"uri:some-namespace\">\n";