Hi,
I have to access share point server and upload a file. Using the following SOAP.
Can any one help me out to achieve this ?
thanks in advance
Jey

POST /_vti_bin/Copy.asmx HTTP/1.1 Host: hyd-pi1 Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://ww +w.w3.org/2003/05/soap-envelope"> <soap12:Body> <CopyIntoItems xmlns="http://schemas.microsoft.com/sharepoint/soap +/"> <SourceUrl>Sample.txt</SourceUrl> <DestinationUrls> <string>string</string> <string>string</string> </DestinationUrls> <Fields> <FieldInformation Type="" DisplayName="string" InternalName="s +tring" Id="guid" Value="string" /> <FieldInformation Type="" DisplayName="string" InternalName="s +tring" Id="guid" Value="string" /> </Fields> <Stream>base64Binary</Stream> </CopyIntoItems> </soap12:Body> </soap12:Envelope>

The Response Should Be

HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://ww +w.w3.org/2003/05/soap-envelope"> <soap12:Body> <CopyIntoItemsResponse xmlns="http://schemas.microsoft.com/sharepo +int/soap/"> <CopyIntoItemsResult>unsignedInt</CopyIntoItemsResult> <Results> <CopyResult ErrorCode="Success or DestinationInvalid or Destin +ationMWS or SourceInvalid or DestinationCheckedOut or InvalidUrl or U +nknown" ErrorMessage="string" DestinationUrl="string" /> <CopyResult ErrorCode="Success or DestinationInvalid or Destin +ationMWS or SourceInvalid or DestinationCheckedOut or InvalidUrl or U +nknown" ErrorMessage="string" DestinationUrl="string" /> </Results> </CopyIntoItemsResponse> </soap12:Body> </soap12:Envelope>

In reply to Upload File to Sharepoint Using SOAP by jai_dgl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.