Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 7th, 2004, 06:04 AM
Registered User
 
Join Date: Jun 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default VERY strange problem with VB6 and .net WebService

Hi all!

I'm going very desperate with this problem i'm having when I try to call a .net webservice via VB6.



I have this form that does some things and then makes an instance of a class (named relatorio), fill some of its properties
and then call a method of it:


Dim Relat As Relatorio

Relat.NumOF = 2
Relat.NumTrab = 97868


Relat.ImprimirpEcraFC


this method will read the properties that were set and then call the vb.net webservice:


CLASS RELATORIO:

in the function ImprimirpEcraFC:

res = oSoap.EscrevePDFb("par1", NumTrab, NumOF, "Impressao")

When I'm debugging the values NumTrab and NumOf (they are of the type long) are set correctly but when the
webservice is called nothing happens (like if they were not set).


However if i hard-code those values in the class:

NumTrab= 1000000
NumOF = 2
res = oSoap.EscrevePDFb("par1", NumTrab, NumOF, "Impressao")

everything workout ok! This seems absurd and I can't find an explanation for it! Can anyone help me out on this
crazy bug???

thanks a lot for any idea.

Rui
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling c# webservice from VB6 GS Pro VB 6 2 February 26th, 2016 09:28 AM
Consume VB6.0 WebService in ASP.NET using VB.NET pinkarc .NET Web Services 1 March 5th, 2007 08:19 AM
VB6 Excel App to .NET problem zayasv VB.NET 0 October 24th, 2005 04:08 PM
VB6 Excel App to .NET problem zayasv General .NET 0 October 24th, 2005 04:05 PM
Calling WebService from VB6 without use SOAP toolk sanjaykabra82 .NET Web Services 1 February 25th, 2004 08:30 AM



All times are GMT -4. The time now is 05:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.