MediaService
Click here for a complete list of operations.
Upload
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /Services/Media/MediaService.asmx HTTP/1.1 Host: crm247.vn Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/Upload" <?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> <Upload xmlns="http://tempuri.org/"> <MediaId>string</MediaId> <Category>string</Category> <Folder>string</Folder> <UploadFileName>string</UploadFileName> <Bytes>base64Binary</Bytes> <Overwrite>boolean</Overwrite> </Upload> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?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> <UploadResponse xmlns="http://tempuri.org/"> <UploadResult> <InfoMessage>string</InfoMessage> <HtmlContent>string</HtmlContent> <RefKeyId>string</RefKeyId> <RetObject /> <RetObject1 /> <RetObject2 /> <RetObject3 /> <RetObject4 /> <RetObject5 /> <RetObjectExtraParam1 /> <RetObjectExtraParam2 /> <RetObjectExtraParam3 /> <RetObjectExtraParam4 /> <RetObjectExtraParam5 /> <RetUrl>string</RetUrl> <RetUrlNoUpdate>string</RetUrlNoUpdate> <RetUrlTarget>string</RetUrlTarget> <RetExtraParam1>string</RetExtraParam1> <RetExtraParam2>string</RetExtraParam2> <RetExtraParam3>string</RetExtraParam3> <RetExtraParam4>string</RetExtraParam4> <RetExtraParam5>string</RetExtraParam5> <RetExtraParam6>string</RetExtraParam6> <SaveFile>string</SaveFile> <Error>boolean</Error> <RetBoolean>boolean</RetBoolean> <RetNumber>int</RetNumber> <RetNumber1>int</RetNumber1> <RetNumber2>int</RetNumber2> <RetNumber3>int</RetNumber3> <RetNumber4>int</RetNumber4> <RetNumberDecimal>decimal</RetNumberDecimal> <RetNumberDecimal1>decimal</RetNumberDecimal1> <RetNumberDecimal2>decimal</RetNumberDecimal2> <RetNumberDecimal3>decimal</RetNumberDecimal3> <RetNumberDecimal4>decimal</RetNumberDecimal4> <Price>decimal</Price> <Cost>decimal</Cost> <RetDecimal>decimal</RetDecimal> <IsReturnUrlLink>boolean</IsReturnUrlLink> <XmlData>string</XmlData> <XmlDataSchema>string</XmlDataSchema> <RetBytes>base64Binary</RetBytes> <MediaBytes>base64Binary</MediaBytes> <FocusControl>string</FocusControl> <XmlDataResult>string</XmlDataResult> <XmlDataResultSchema>string</XmlDataResultSchema> <ShowDialogMessage>boolean</ShowDialogMessage> <ProcessServiceId>string</ProcessServiceId> <AssetCode>string</AssetCode> <AssetLevelId>string</AssetLevelId> <FollowUpSubject>string</FollowUpSubject> <FollowUpDescription>string</FollowUpDescription> <OwnerId>string</OwnerId> <FollowUpStatus>string</FollowUpStatus> <QuickHelp>string</QuickHelp> <VisibleQuickHelp>int</VisibleQuickHelp> <ColorId>string</ColorId> <SizeId>string</SizeId> <LastImportPrice>decimal</LastImportPrice> <DetectByEan13>boolean</DetectByEan13> <PaggingInfo> <StartIndex>int</StartIndex> <EndIndex>int</EndIndex> <CurrentPageIndex>int</CurrentPageIndex> <PageCount>int</PageCount> <TotalSegment>int</TotalSegment> <PageSize>int</PageSize> <TotalFound>int</TotalFound> <PageInfoItems> <PageInfoItemCls xsi:nil="true" /> <PageInfoItemCls xsi:nil="true" /> </PageInfoItems> </PaggingInfo> </UploadResult> </UploadResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /Services/Media/MediaService.asmx HTTP/1.1 Host: crm247.vn 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://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <Upload xmlns="http://tempuri.org/"> <MediaId>string</MediaId> <Category>string</Category> <Folder>string</Folder> <UploadFileName>string</UploadFileName> <Bytes>base64Binary</Bytes> <Overwrite>boolean</Overwrite> </Upload> </soap12:Body> </soap12:Envelope>
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://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <UploadResponse xmlns="http://tempuri.org/"> <UploadResult> <InfoMessage>string</InfoMessage> <HtmlContent>string</HtmlContent> <RefKeyId>string</RefKeyId> <RetObject /> <RetObject1 /> <RetObject2 /> <RetObject3 /> <RetObject4 /> <RetObject5 /> <RetObjectExtraParam1 /> <RetObjectExtraParam2 /> <RetObjectExtraParam3 /> <RetObjectExtraParam4 /> <RetObjectExtraParam5 /> <RetUrl>string</RetUrl> <RetUrlNoUpdate>string</RetUrlNoUpdate> <RetUrlTarget>string</RetUrlTarget> <RetExtraParam1>string</RetExtraParam1> <RetExtraParam2>string</RetExtraParam2> <RetExtraParam3>string</RetExtraParam3> <RetExtraParam4>string</RetExtraParam4> <RetExtraParam5>string</RetExtraParam5> <RetExtraParam6>string</RetExtraParam6> <SaveFile>string</SaveFile> <Error>boolean</Error> <RetBoolean>boolean</RetBoolean> <RetNumber>int</RetNumber> <RetNumber1>int</RetNumber1> <RetNumber2>int</RetNumber2> <RetNumber3>int</RetNumber3> <RetNumber4>int</RetNumber4> <RetNumberDecimal>decimal</RetNumberDecimal> <RetNumberDecimal1>decimal</RetNumberDecimal1> <RetNumberDecimal2>decimal</RetNumberDecimal2> <RetNumberDecimal3>decimal</RetNumberDecimal3> <RetNumberDecimal4>decimal</RetNumberDecimal4> <Price>decimal</Price> <Cost>decimal</Cost> <RetDecimal>decimal</RetDecimal> <IsReturnUrlLink>boolean</IsReturnUrlLink> <XmlData>string</XmlData> <XmlDataSchema>string</XmlDataSchema> <RetBytes>base64Binary</RetBytes> <MediaBytes>base64Binary</MediaBytes> <FocusControl>string</FocusControl> <XmlDataResult>string</XmlDataResult> <XmlDataResultSchema>string</XmlDataResultSchema> <ShowDialogMessage>boolean</ShowDialogMessage> <ProcessServiceId>string</ProcessServiceId> <AssetCode>string</AssetCode> <AssetLevelId>string</AssetLevelId> <FollowUpSubject>string</FollowUpSubject> <FollowUpDescription>string</FollowUpDescription> <OwnerId>string</OwnerId> <FollowUpStatus>string</FollowUpStatus> <QuickHelp>string</QuickHelp> <VisibleQuickHelp>int</VisibleQuickHelp> <ColorId>string</ColorId> <SizeId>string</SizeId> <LastImportPrice>decimal</LastImportPrice> <DetectByEan13>boolean</DetectByEan13> <PaggingInfo> <StartIndex>int</StartIndex> <EndIndex>int</EndIndex> <CurrentPageIndex>int</CurrentPageIndex> <PageCount>int</PageCount> <TotalSegment>int</TotalSegment> <PageSize>int</PageSize> <TotalFound>int</TotalFound> <PageInfoItems> <PageInfoItemCls xsi:nil="true" /> <PageInfoItemCls xsi:nil="true" /> </PageInfoItems> </PaggingInfo> </UploadResult> </UploadResponse> </soap12:Body> </soap12:Envelope>