Hi guys,
I was using web services to upload documents such as word, pdf and images into the squiz environment. It was working perfectly but recently it keeps on throwing internal server error. I guess the problem is with defining the type code for various documents.
I am using following type code for various documents;
PDF=>PDF_FILE
Word=>Word_Doc
Excel=>Excel_Doc
Powerpoint=>Powerpoint_Doc
and here is the soap format
<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/'
xmlns:ns1='https://xyz/_web_services/eg-soap-service'>
<soap:Body>
<ns1:CreateAsset>
<TypeCode>" + typeCode + @"</TypeCode>
<Name>" + docName + @"</Name>
<ParentID>212630</ParentID>
<LinkType>1</LinkType>
<LinkValue>link value</LinkValue>
<SortOrder>1</SortOrder>
<IsDependant>1</IsDependant>
<IsExclusive>0</IsExclusive>
<FileName>" + filename + @"</FileName>
<FileContentBase64>" + data + @"</FileContentBase64>
<AttributeInfo>
<AttributeName>allow_unrestricted</AttributeName>
<AttributeValue>0</AttributeValue>
</AttributeInfo>
</ns1:CreateAsset>
</soap:Body>
</soap:Envelope>";
The soap request is called using c# as programming language.
Any sort of help or guidance will be much appreciated.