Xml 需要帮助诊断AmazonS3的SOAP数据包问题吗
我们正在构建一个将数据存储在S3存储桶中的应用程序。但是,PutObject方法存在问题。这是我们正在发送的xml数据包:Xml 需要帮助诊断AmazonS3的SOAP数据包问题吗,xml,soap,amazon-s3,amazon,Xml,Soap,Amazon S3,Amazon,我们正在构建一个将数据存储在S3存储桶中的应用程序。但是,PutObject方法存在问题。这是我们正在发送的xml数据包: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<PutObject xmlns="http://doc.s3.amazonaws.com/2006-03-01">
<Bucket>lills</Bucket>
<Key>lills123</Key>
<Metadata>
<Name>Content-Type</Name>
<Value>text/plain</Value>
</Metadata>
<Metadata>
<Name>title</Name>
<Value>lills</Value>
</Metadata>
<Data>aGEtaGE=</Data>
<ContentLength>5</ContentLength>
<AWSAccessKeyId>key</AWSAccessKeyId>
<Timestamp>2008-11-12T06:23:17Z</Timestamp>
<Signature>signature</Signature>
</PutObject>
</soap:Body>
</soap:Envelope>
里尔
lills123
内容类型
文本/纯文本
标题
里尔
年龄=
5.
钥匙
2008-11-12T06:23:17Z
签名
这是我们从S3得到的回应:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client.badRequest</faultcode>
<faultstring>Malformed request</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
soapenv:Client.badRequest
格式错误的请求
谁能告诉我SOAP包有什么问题吗
提前感谢,,
Devan如果希望在SOAP消息本身中发送数据,则需要使用PutObjectInline,而不是PutObject(它希望数据是一个DIME附件) 请参阅s3文档中的