on 09-19-2012 4:32 AM
Dear experts!
I create a simple website and reference to B1WS to login SAP B1 throught website. The result appears the message :"
My connection string:
string sSessionID = null;
oCompanyService = new localhost.CompanyService();
sSessionID = oLoginService.Login("10.169.10.40",
"Test_Sand",
localhost.LoginDatabaseType.dst_MSSQL2005,
false,
"manager",
"123456",
localhost.LoginLanguage.ln_English,
true,
"10.169.10.40:30000");
in parameter: localhost.LoginDatabaseType , i do not see the value dst_MSSQL2008 to choose, althought, infact, my SAP B1 database is MSSQL2008.
So, can anyone show me how to choose value dst_MSSQL2008 in connection string, and fix the error above?
Thanks and regards!
Long.
And i can access: http://localhost/b1ws/
http://localhost/B1WS/WebReferences/LoginService.wsdl
from web browser but can not access : http://localhost/B1WS/service.asmx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nham,
Try this:
localhost.LoginService oLoginService = new localhost.LoginService();
oLoginService.Url = "http://10.169.10.40/B1WS/Service.asmx";
sSessionID = oLoginService.Login("10.169.10.40",
"Test_Sand",
localhost.LoginDatabaseType.dst_MSSQL2005,
false,
"manager",
"123456",
localhost.LoginLanguage.ln_English,
true,
"10.169.10.40:30000");
This happens because .NET usually places localhost in the webservice address.
You can alternatively change it in LoginService.wsdl (in your project) and app.config/web.config (depending on your type of project).
Good luck.
Best regards,
Pedro Magueija
Dear Pedro Magueija,
I tried follow you, but it is still error. I can access URL: http://10.169.10.40/B1WS/Service.asmx by web browser, always message appear:
HTTP Error 404 - File or directory not found. And in the default website (IIS), i do not see the file Service.asmx.
Thanks and regards!
Long.
Hi Pedro Magueija,
IIS on my machine, and i am using browser on this machine to login the simple website. My machine is installed Window Server 2003. All configuration i following the document below:
I have not problem in configuration process.
Thanks and regards!\
Long.
Hi Nham,
Ok, most likely you have the latest IIS so B1WS was created as a ASP.NET app pool.
Follow this:
1) Go to the IIS Manager
2) Under the Default Web Site click the B1WS
3) On the right side bar click Basic Settings
4) In the following window if the Application Pool reads any other then Classic .NET AppPool click the Select button and change it to Classic .NET AppPool
5) Restart your Default Web Site by clicking it and on the right hand side clicking restart.
6) Point your browser to the localhost/B1WS/Service.asmx and check that an invalid XML structure message appears.
Good luck,
Best regards,
Pedro Magueija
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.