зеркало из https://github.com/mozilla/pjs.git
Bug 282698 use application/soap+xml in nsHTTPSOAPTransport
patch by bug@annevankesteren.nl r=doron sr=jst
This commit is contained in:
Родитель
2b79db60f1
Коммит
7146ba3112
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче