xml - Need assistance with diagnosing SOAP packet problem with Amazon S3 -


we building application stores data in s3 bucket. however, having problems putobject method. here xml packet sending out:

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

and response getting 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> 

can tell me problem soap packet is?

thanks in advance, devan

if want send data in soap message itself, need use putobjectinline, , not putobject (which expects data dime attachment).

see putobjectinline in s3 docs.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -