Skip to content

Anonymous

My feedback

8 results found

  1. 24 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Anonymous supported this idea  · 
  2. 13 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Anonymous supported this idea  · 
  3. 1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Anonymous shared this idea  · 
  4. 6 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Anonymous supported this idea  · 
  5. 7 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Anonymous shared this idea  · 
  6. 6 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Anonymous commented  · 

    This is possible with IIS URL rewrite rule. You can even select desired layers.

  7. 19 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Anonymous commented  · 

    you can do it with this extension class.
    I hope it helps someone
    Best regards

    public static class DWExtensions{
    private static async Task<DeserializedHttpResponse<T>> PostAsync<T>(ServiceConnection service, string uri, HttpContent content) where T : new(){
    HttpResponseMessage message = await service.HttpClient.PostAsync(uri, content);

    DeserializedHttpResponse<T> dresp;
    if (message.IsSuccessStatusCode)
    {
    T newdoc = DocuWare.Services.Http.Client.XmlSerializerRepository.ParseFromXmlString<T>(await message.Content.ReadAsStringAsync());
    dresp = new DocuWare.Services.Http.DeserializedHttpResponse<T>(message, newdoc);
    }
    else
    {
    dresp = new DocuWare.Services.Http.DeserializedHttpResponse<T>(message, default(T));
    }

    return dresp;
    }

    public static async Task<DeserializedHttpResponse<Document>> UploadDocumentAsync(this ServiceConnection service, string Cabinet, HttpContent content, bool? processTextshot = null, bool? imageProcessing = null, string redirect = null, string storeDialogId = null, bool? checkFileNameForCheckinInfo = null)
    {
    string uri = string.Format("FileCabinets/{0}/Documents?processTextshot={1}&imageProcessing={2}&redirect={3}&storeDialogId={4}&checkFileNameForCheckinInfo={5}", Cabinet, processTextshot, imageProcessing, redirect, storeDialogId, checkFileNameForCheckinInfo);
    return await PostAsync<Document>(service, uri, content);
    }
    }

    public void CallExample(){
    Document newdoc = new Document();
    byte[] ByteData = new byte[100];

    //fill index data
    newdoc.Fields = new List<DocumentIndexField>();
    newdoc.Fields.Add(new DocumentIndexField() { FieldName = "FIELD", Item = "string value", ItemElementName = ItemChoiceType.String });

    MultipartFormDataContent content = new MultipartFormDataContent();
    //add xml params
    var parameters = DocuWare.Services.Http.Client.ContentHelper.CreateXmlContent<Document>(newdoc);
    content.Add(parameters, "params", "params.xml");

    var citem = new ByteArrayContent(ByteData));
    citem.Headers.ContentType = new MediaTypeHeaderValue(GetFileMIMEType(docDescription.files[i].FileName));
    content.Add(citem, "file", docDescription.files[i].FileName);

    //Store document with index data
    var newdoc = await client.UploadDocumentAsync(Cabinet, content);
    }

  8. 97 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Anonymous supported this idea  · 

Feedback and Knowledge Base