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
parent be5ef60657
commit 7d70203f02
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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";

View File

@ -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";