Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: ZipFiles Class and wwDotNetBridge

$
0
0
Re: ZipFiles Class and wwDotNetBridge
.NET Development
Re: ZipFiles Class and wwDotNetBridge
Jul. 24, 2013
02:11 pm
3U80UFLOCShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Rick Strahl

That sounds like an error on their server that might be unrelated to the data structure you're passing in (or might have to do with the formatting of the data). Since hte message references a type that is not part of the service WSDL, this indicates an error in their application.

Two things: Download SOAPUI and run the same request and see what you get. If you do (and I think you will) you know the error is in the server, not hte message format which is all that the WSDL generator cna do for you.

+++ Rick ---



And... why not use the ZipFiles and UnzipFiles functions from Web Connection/Client Tools? It does wildcard/folder compression and doesn't require .NET interop.

+++ Rick ---



Hi Rick,
I am trying to use the .NET ZipFile class in System.IO.Compression.FileSystem assembly in VFP using wwDotNetBridge.
Please help.
Thanks, Craig

My .net version is ".NET Version: 4.0.30319.18052".

loBridge = CreateObject("wwDotNetBridge","V4.5")
loBridge good...

I could not get loBridge.InvokeStaticMethod() to work. However, I could on other assemblies such as 'System.IO.Directory'.

I can even load the assembly from ..\.NETFramework\v4.5\ folder but can't get the ZipFile class to instantiate.

.NET equivalent from http://msdn.microsoft.com/en-us/library/system.io.compression.zipfile.aspx

using System;using System.IO;using System.IO.Compression;namespace ConsoleApplication {class Program {staticvoid Main(string[] args) {string startPath = @"c:\example\start";string zipPath = @"c:\example\result.zip";string extractPath = @"c:\example\extract"; ZipFile.CreateFromDirectory(startPath, zipPath); ZipFile.ExtractToDirectory(zipPath, extractPath); } } }






Rick Strahl
West Wind Technologies


from Slovenia


Viewing all articles
Browse latest Browse all 10393

Trending Articles