Skip to Content
avatar image
Former Member

Webservice connection to SAP

Hi,

How do I connect to SAP through the SAP .NET Connector 1.0 without using a web form?

I would like to open a connection without using a form when I supply the username and password.

Thanks

Rolf

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 15, 2005 at 09:46 AM

    Hi,

    Somewhere in your program:

    Destination dest = new Destination();

    dest.AppServerHost= "sapservr1";

    dest.SystemNumber = 0;

    dest.User= "hello"

    dest.Password = "world";

    dest.Client= 0;

    SAPConnection conn = new SAPConnection(dest.ConnectionString);

    conn.Open();

    Hope it helps,

    Guangwei

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Guangwei,

      It worked when I used

      SAPConnection conn = new SAPConnection(dest.ConnectionString);

      instead of trying to get the connection form the connection pool.

      Thanks for your help.

      /Rolf