Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2004, 06:04 AM
Registered User
 
Join Date: Jun 2004
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.