Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

WSE Attachments & VB6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Graeme Anderson - 20 Dec 2003 12:45 GMT
I am using a .NET Web Service for both VB6 and .NET clients using
stand-alone EXE's - no browser involved. To cut a long story short - who in
their right mind would wish to install the .Net framework from the www using
dial-up modems - our main client base?

Anyway, the .NET version is working well, we can upload and download files
(ZIP/EXE/PDF) with not a problem. The VB6 version is almost running, we can
also download all files - the upload is not working.

Here is the code in question - I have not used any WSDL or fancy code, what
you see here is all that is used.

It bombs out when I attempt to add the attachment - it must be something
simple but I cannot figure it out.

Thanks for any assistance.

Graeme Anderson

   Set Connector = New MSSOAPLib30.HttpConnector30
   Connector.Property("EndPointURL") = WebService
   Connector.Property("SoapAction") = "http://host.com.au/UploadFile"
   Connector.BeginMessage
   Set serializer = New MSSOAPLib30.SoapSerializer30
   serializer.Init Connector.OutputStream

   m_oAttach.FileName = FileName
   serializer.AddAttachment (m_oAttach)

   serializer.StartEnvelope
   serializer.StartBody
   serializer.WriteXml "<UploadFile xmlns='http://host.com.au/'>"
   serializer.WriteXml "<UFN>" & FileName & "</UFN>"
   serializer.WriteXml "</UploadFile>"

   serializer.EndBody
   serializer.EndEnvelope

   Connector.EndMessage
Graeme Anderson - 21 Dec 2003 05:13 GMT
Don't worry, got the bugger working ...

thanks

Graeme A

> I am using a .NET Web Service for both VB6 and .NET clients using
> stand-alone EXE's - no browser involved. To cut a long story short - who in
[quoted text clipped - 35 lines]
>
>     Connector.EndMessage
akollmorgen - 16 Nov 2004 23:00 GMT
I am trying to achieve the same task
Dino Chiesa [Microsoft] - 17 Nov 2004 17:20 GMT
!!?!?
Andrew, we need more context than that.

>I am trying to achieve the same task
>
> *-----------------------*
>        Posted at:
>  www.GroupSrv.com
> *-----------------------*

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.