2008-11-14 6 views
1

S3 버킷에 데이터를 저장하는 응용 프로그램을 빌드하고 있습니다. 그러나 우리는 PutObject 메서드에 문제가 있습니다.Amazon S3에서 SOAP 패킷 문제를 진단하는 데 도움이 필요합니다.

<?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> 

을 그리고 이것은 우리가 S3에서 다시 점점 반응이다 : 다음은 XML 패킷을 우리는 발송되어있다

<?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> 

사람은 SOAP 패킷의 문제가 무엇인지 말씀해 주시겠습니까? 사전에

감사합니다,

답변

2

는 SOAP 메시지 자체에 데이터를 보내려면 데반, 당신은 PutObjectInline, 그리고 PutObject을 (이 데이터는 DIME 첨부 될 것으로 예상) 사용해야합니다.

(s3 docs)을 참조하십시오.

관련 문제