cancel
Showing results for 
Search instead for 
Did you mean: 

problem with sap web services error HTTP-Status 404

achleitner_andreas
Discoverer
0 Kudos

hi all

i've a problem using the webservices with visual studio c#

i can browse and import the webreferences but if i try runnig the site it crashes with an error: HTTP-Status 404: Not Found.

Code looks like this:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            WebReferences.LoginService login = new WebReferences.LoginService();
            login.Login("localhost", "SBODemoAT", WebReferences.LoginDatabaseType.dst_MSSQL2008, true,"sa","pass", "manager", "manager", WebReferences.LoginLanguage.ln_German, true, "localhost:30000");
        }
    }
}

Error:

Zeile 93:         [return: System.Xml.Serialization.XmlElementAttribute("SessionID")]
Zeile 94:         public string Login(string DatabaseServer, string DatabaseName, LoginDatabaseType DatabaseType, [System.Xml.Serialization.XmlIgnoreAttribute()] bool DatabaseTypeSpecified, string DatabaseUsername, string DatabasePassword, string CompanyUsername, string CompanyPassword, LoginLanguage Language, [System.Xml.Serialization.XmlIgnoreAttribute()] bool LanguageSpecified, string LicenseServer) {
Zeile 95:             object[] results = this.Invoke("Login", new object[] {
Zeile 96:                         DatabaseServer,
Zeile 97:                         DatabaseName,

can someone help me?

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

achleitner_andreas
Discoverer
0 Kudos

b1ws documentation page 10

b1wshttphandler configuration

2. richt click under default web site and select new -> virtual directory

change virtual directory to application