Webservice authentication problem: authtoken not being recognized

Trips

Well-known member
Joined
Aug 7, 2010
Messages
2,788
Im connecting to a webservice and trying to pass my login credentials, but am getting an error. heres the code:<br/><br/>using VIN_decoder_web_service.com.vinlink.ws;<br/>using Microsoft.Web.Services3;<br/>using Microsoft.Web.Services3.Security;<br/>using System.Web.Services.Protocols;<br/>using Microsoft.Web.Services3.Security.X509;
namespace VIN_decoder_web_service<br/>{<br/>    public partial class frmForm1 : Form<br/>    {<br/>        public frmForm1()<br/>        {<br/>            InitializeComponent();<br/>        }
        private void btnDecode_Click(object sender, EventArgs e)<br/>        {<br/>            {<br/>                string currentVIN = txtVIN.Text.ToString();<br/>              <br/>                VIN_decoder_web_service.com.vinlink.ws.authToken = new VIN_decoder_web_service.com.vinlink.ws.UserToken();<br/>                authToken.username = "username";<br/>                authToken.password = "password";<br/><br/>... heres the error: The type or namespace name authToken does not exist in the namespace VIN_decoder_web_service.com.vinlink.ws (are you missing an assembly reference?)<br/><br/>It seems almost like I need to manually tell the app to use the webservice... just a guess.  <br/><br/>Thanks!<br/>
<span style="font-size:x-small;color:#0000ff <span style="font-size:x-small;color:#0000ff <span style="font-size:x-small;color:#0000ff <span style="font-size:x-small;color:#0000ff
 
<span style="font-size:x-small;color:#0000ff <span style="font-size:x-small;color:#0000ff <span style="font-size:x-small;color:#0000ff <span style="font-size:x-small;color:#0000ff <span style="font-size:x-small
<hr class=sig>
slowly getting my mind around .NET

View the full article
 
Back
Top