Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Consume C# WS in C# App
Message
 
À
16/03/2008 22:02:38
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
01302443
Message ID:
01302565
Vues:
9
Bonnie,

I removed the WS, deleted it, recreated it, and readded it ot the project - same situation. The
References.cs file did not appear in the project. I added it manaully.

This seems like it should be a no brainer. ALl I've done to this point is create one class with 4 small
methods, one of which calls the WS. I'm not sure why this is so difficult.

Don't know if you have a moment to look at it, but I would appreciate it if you can.
http://www.geocities.com/zephaneas/project1/csdataaccess.zip

I wouldn't normally ask someone to poke into something so simple, but I'm stuck at this point.

Kevin






>Kevin,
>
>My point is that that should have already been part of your solution and should have been in your MyWS folder. There are 3 other files that go with it as well. Were they in that MyWS folder also? You should not have to add them to your solution, they should be included when you add the web reference. Where did you put them? Perhaps you should simply remove the web reference and add it back in again. Maybe it will regenerate it correctly this time.
>
>You should be able to do something like this:
>
>CSDataAccess.MyWS.Service oWS = new CSDataAccess.MyWS.Service();
>
>If this is not showing up correctly in Intellisense, then you may have added the Web Reference incorrectly.
>
>~~Bonnie
>
>
>
>
>>>>What am I doing wrong here????
>>>
>>>I don't know ... you should see 4 files. Try looking in the folder itself with Windows Explorer and see what you see.
>>>
>>
>>
>>Ok, I did a Win search for the References.cs and added it to the solutuon. It has:
>>
>>
>>
>>namespace CSDataAccess.MyWS {
>>    using System.Diagnostics;
>>    using System.Web.Services;
>>    using System.ComponentModel;
>>    using System.Web.Services.Protocols;
>>    using System;
>>    using System.Xml.Serialization;
>>
>>
>>    /// <remarks/>
>>    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
>>    [System.Diagnostics.DebuggerStepThroughAttribute()]
>>    [System.ComponentModel.DesignerCategoryAttribute("code")]
>>    [System.Web.Services.WebServiceBindingAttribute(Name="ServiceSoap", Namespace="http://tempuri.org/")]
>>
>>    public partial class Service : System.Web.Services.Protocols.SoapHttpClientProtocol {
>>
>>    .
>>    .
>>    .
>>
>>
>>
>>I'm ont entirely sure what to do with this.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform