Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   How to consume web service from code behind? (http://www.velocityreviews.com/forums/t786141-how-to-consume-web-service-from-code-behind.html)

staeri@gmail.com 05-09-2006 12:26 PM

How to consume web service from code behind?
 
I've attached the wdsl file with "Add web reference" in VWD.

The class is called DataImport and the method is called
PackageListCompany.

PackageListCompany returns PackageListCompanyResult and I want to print
the received information but the only thing which gets printed is the
text "test.PackageListResult".

I have the following code:

Dim p As New test.DataImport
Dim o As test.PackageListResult = p.PackageListCompany("login1",
"login2", "pwd", "lang")
Response.Write(o.ToString)

Can someone tell me what is wrong?

Regards,

S



All times are GMT. The time now is 01:13 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.