473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Web References with C# .NET & Visual Web Developer 05 on Vista

2
Hi Guys,

I'm experimenting with Web Services and would like to know how to use a WSDL file that is hosted on another computer. In the C#.NET language

In Visual Web Developer I have already added the Web Reference for my project which has been InsuranceCalculation.asmx , this in turn returned 3 files:-
InsuranceCalculation.disco
InsuranceCalculation.discomap
InsuranceCalculation.wsdl

Part of the wsdl file contains:-
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.lf.com/webservices/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.lf.com/webservices/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.lf.com/webservices/">
<s:element name="JavaScriptTest">
<s:complexType />
</s:element>
<s:element name="JavaScriptTestResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="JavaScriptTestResult" type="s:string" />
</s:sequence>
</s:complexType>


I have tried creating a new object by using:-
InsuranceCalculation IC = new InsuranceCalculation();

But this does not work.

Any ideas?
Aug 5 '07 #1
1 1381
smeel
2
I have now managed to allow VS to understand the web service I wanted to use. When adding a web reference I also changed the 'Web Reference Name' to convertSvc.


From this I can call:-

convertSvc.JavaScriptTestCompletedEventArgs jst = new convertSvc.JavaScriptTestCompletedEventArgs();

Although I get this error message:- Compiler Error Message: CS0143: The type 'convertSvc.JavaScriptTestCompletedEventArgs' has no constructors defined


How do i go about using the JavaScriptTest method? Please help.



I also would like to call this method:-



<s:element name="WebServiceTestMethod">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SiteId" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="CustomerData" type="tns:InsuranceCalculationData" />
</s:sequence>
</s:complexType>
</s:element>


How do i pass the username,password,SiteId and CustomerData?

Help,help.
Aug 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: JDeats | last post by:
This message is for any developers using Vista RC1 or RC2: I would like to know generally how you feel about developing with Vista using Visual Studio.NET 2003 or 2005. What are you likes what...
13
by: Mark Rae | last post by:
Hi, On Friday I attended the Microsoft EVO conference in London where they talked about Vista, Office 2007 and Exchange 2007 and how they all work together beautifully, how they were all...
6
by: brett | last post by:
I installed VS.NET 2005 final on Vista Ultimate RTM. I have a web project that I'd like open but receive this message: The project file 'c:\myproj.csproj' cannot be opened. The project type is...
0
by: salad | last post by:
I took the Bart down to San Francisco and joined a couple thousand other nerds to watch the Vista/Office launch. The receptionist was quite pleasant and getting the event packets a smooth...
8
by: Miro | last post by:
I was searching on Microsoft's site and found this link: http://support.microsoft.com/lifecycle/search/?sort=PN&alpha=Visual+Studio It stumpped me on something. ( im new to visual studio /...
3
by: =?Utf-8?B?cmF1ZXI=?= | last post by:
I am using Visual C++ 6 Professional in Windows XP. Which new developer product should I use under Vista Business operating system that continues to use the C++ programming language? I understand...
9
by: | last post by:
Does anyone know which edition of Vista you have to buy if you use Visual Studio and probably will upgrade to Visual Studio 2008? Is the Ultimate edition necessary, or will the home or business...
24
by: JJ | last post by:
I see the new software is 'RTM' but what does that mean in terms of when we can actually purchase it? Thanks, JJ
3
by: nzmike | last post by:
Hi, Hoping someone out there can help me... I just built a new Vista Home Premium 64 PC. So far everything has gone well so this morning I decided to install Visual Studio 2005 Professional....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.