B1WS 8.8 DI SERVER 不支持mssql2012 请问如何解决
B1WS 使用 loginservice 登陆报错误 Database server type not supported
Hi Rafael,
Welcome you post on the forum.
Check this first: B1i Installation
Thanks,
Gordon
Similar Messages
-
Hello,
I Recently downloaded and installed WEB SERVICES WRAPPER ( B1WS)
installation went fine i configured my IIS server to accept B1WS
all seems fine but when i try to use the loggin function
u2018 Create Service WebReference
Dim login As LoginService = New LoginService
' service command login call
sessionID = login.Login(
"localhost",
"COM_OBS_AUT_TEST",
LoginWebRef.LoginDatabaseType.dst_MSSQL2005, true,
"sa", "xx",
"manager", "manager",
LoginWebRef.LoginLanguage.ln_English, true,
"localhost:30000")
I get an exception thrown which reads the following
LOGIN ERROR ENV: RECEIVER 100000001 Connection with liscense server failed.
this is a new tool availible from sap and i tried to get support direcetly from SAP but they never heard of this nor support it.
Anyone have this issue? am i missing a step in my configuration?Sebastiano,
In the documentation for the B1WS tool as offered here on SDN ... it is offered "as is" ... meaning that you cannot ger support from SAP on this tool. This is similar to all the SAP Business One SDK tools offered here. At this link ...
https://www.sdn.sap.com/irj/sdn/businessone?rid=/webcontent/uuid/a0915b47-ef89-2a10-91a5-b22649e5cfab [original link is broken]
... you will see this line listed ...
"B1WS is delivered within the SDN license structure and therefore no support is provided."
That being said ... the issue you are getting is that it cannot find your SAP Business One License Server ... based on the message that you are getting. What you need to verify is that you have the DI Server installed, configured and licensed as B1WS requires the DI Server. You may also want to substitute the IP address of the machine that has the SAP Business One License server running on it ...
ex. <ip address>: 30000
Eddy -
We have a server with SQL 2005 on it. We just installed SQL 2012. When I look in the services there is also an instance called SQLEXPRESS. When I go into the control panel to uninstall a program I do not see any SQL Express installed.
I have stopped the SQL express instance and am trying to start the SQL 2005 and SQL 2012 instances at the same time. We need the 2005 to be started to be able to look at the current system and 2012 needs to be started at the same time as we are
trying to redo the system in SQL 2012. Does anyone know why we can not start both instances at once. If one is running and I try and start the other instance I get "Windows could not start the SQL Server (MSSQL2012) on Local Computer.
For more information, review the System Event log. If this is a non-Microsoft service, contact the service vendory, and refer to service-specific error code 10048." When I look in the System event log I see the following "The SQL Server
(MSSQL2012) service terminated with service-specific error Only one usage of each socket address (protocol/network addres/sport) is normally permitted." Can anyone give me some information as to what the problem may be. Thanks in advance.I have previously tried stopping 2005 and 2012 and starting one before the other, while rebooting the server in between. However, I always got the same error regardless of which SQL was started first.
Thanks for the information/link. I stopped all SQL, started 2012, and then tried to start 2005 using the link you provided.
Most of it appears to be OK until I get near the end of the output and then I see the following errors:
(1) error: 26023, Severity: 16, State: 1
Server TCP provider failed to listen on [ 'any' <ipv6> 1433]. Tcp port is already in use.
(2) error: 17182, Severity: 16, State 1
TDSSNIClient initialization failed with error 0x2740, status code 0xa.
(3) error: 17182, Severity: 16, State: 1
TDSSNIClient initialization failed with error 0x2740, status code 0x1.
(4) error: 17826, Serverity: 18, State: 3
Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
(5) error: 17120, Severity: 16, State 1
SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
In looked in the event logs I see the errors above and a warning (at the same time stamp) that says: "MSDTC encountered an erro (HR=0x80000171) while attempting to establish a secure connection with system".
In looking in the event log for SQL 2012 (since 2005 is not running) I do not see any errors. -
Sap B1WS - Unable to authenticate on the license server!
Hello,
I've installed and configured b1ws according to the help file provided.
after creating a virtual directory in the IIS to the sample directory provided with the installation I receive the B1 Webservices login page but cannot login with the usual settings .
here is the settings I've used :
database server
localhost
dbtype sql 2005
dbname :mysqldbname
company user and password : a valid username and password with a pro user license.
license server :localhost also tried localhost:30000
language :In_English
I keep getting the Unable to authenticate on the license server!
error.
I also tried adding the ASP.NET account to the ms-sql databases with not change.
anyhelp would be much appreciate.
Thanks.
NC.Yes, I am specifying the license server. I've tried it both ways (specifying and not specifying the server). Here is my code:
SAPbobsCOM.Company sapCompany = new SAPbobsCOM.Company();
sapCompany.Server = ConfigurationManager.AppSettings["SAPServerName"];
sapCompany.CompanyDB = ConfigurationManager.AppSettings["SAPCompany"];
sapCompany.UserName = ConfigurationManager.AppSettings["SAPUserID"];
sapCompany.Password = ConfigurationManager.AppSettings["SAPPassword"];
sapCompany.language = SAPbobsCOM.BoSuppLangs.ln_English;
sapCompany.LicenseServer = ConfigurationManager.AppSettings["SAPLicenseServer"];
sapCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008;
int returnCode = sapCompany.Connect(); -
Integrating Java into SAP Business One Via DI Server and the B1WS
Hello Everyone
We are using the B1WS to call the Web Services from our web application. We are able to Generate the WSDL files using the Generator application and now wish to test the connection between our web server and the DI server However I am getting a 404 error from the web service endpoint in the WSDL files (/B1WS/Service.asmx)
I've created a login request from the WSDL which all seems sound, but it's still getting 404 errors when it tries to connect to the endpoint. I've passed the request through tcpmon so I can see the content of it, and the request looks good, but isn't getting any response. Is there any other SAP configuration that needs to be done to publish these services? I have read the Detailed B1WS Word Document and everything seems fine from that standpoint.
In hope, I've made the following configuration changes to the web services application, but am still getting a 404 error:
- Given the ASPNET user and the NETWORK SERIVCE group the required permissions for the SBODI_Server in DCOM configuration.
- Changed the virtual directory home of "B1WS" from
C:\Program Files\SAP\SAP Business One Web Services\B1WS\App_Code to
C:\Program Files\SAP\SAP Business One Web Services\B1WS
This directory has a web.config file, and has the bin files etc, but still seems to be missing a Service.asmx file (this missing , I don't know if that's all that's missing as I don't have any reference application to compare it to as I am using Java.
As usual your help is much appreciated.
Regards
RichardHello everyone,
I've had the same problem with the "missing" Service.asmx.
In my case, it helped to activate "Active Server Pages" and "ASP.NET" in the Web Services Configuration in the Internet Services Manager, which were both deactivated by default.
Maybe this can help you along.
Regards,
Andreas
Edited by: Andreas Mantel on Dec 17, 2008 4:51 PM -
DI Server B1WS - Look up current user?
Hello all:
I am just wondering if there is any service that allows me to look up the currently logged on user through B1WS. I was looking through the CompanyInfo and AdminInfo objects, but haven't found any propoerty that relates to the current user.
I know I can save my logon user locally and use that information instead, but it would have been nice to just access this as part of the provided DI objects... Did I just overlook it?
Thanks,
Joerg.Hello Joerg,
I don't think it is possible because this info is not available to any B1 objects. Only B1upf.xml file under licensing server kept that data.
Thanks,
Gordon -
Connection problems with DI-SERVER 2007 & B1WS from remote machine
Hi,
Can you please help us better understand what the issue is, and how to solve it?
I am seeking to get B1WS working on remote machines.
I have built a small test application, which works fine on the server which also hosts the SQL Server instance and IIS.
When I move the application to another machine, no connection happens, and it always throws this error:
Message:
"Unable to connect to the remote server"
Inner Exception:
"No connection could be made because the target machine actively refused it 127.0.0.1:80"
Error Code:
10061
This configuration works:
Licensing Server: Server A
Database Server: Server B
IIS Server (B1WS): Server B
Running App: Server B
This configuration does not work:
Licensing Server: Server A
Database Server: Server B
IIS Server (B1WS): Server B
Running App: Workstation C
I have checked permissions on the web services folder, and gave Everyone all permissions. The same connection problems persists.
All help is welcome!
Thank you in advance,
MikeDear Michael Gurevich,
Was resolved?
Thanks.
João Paulo -
Transaction control with DI Server and B1WS
Hi everyone,
recentily I started working with DI server and B1WS, and talking with friends and with a brief research in the foruns Its seens to be impossible to have a Rollback in database transactions performed with DI server and B1WS.
Its really true? I mean, I receive the Session ID when I use the login service, it shouldn't be so difficult to have a rollback function with this info...Really? Anyone knows?
-
Webinar- Connect Third Party Systems with SAP B1 – DI API, DI Server, B1WS
Webinar happened on 21st August.
Get the Presentation, Video recording and answers of all the questions asked in the webinar through the below link.
Webinar- Connect Third Party Systems with SAP B1 - DI API, DI Server, B1WSHi Oleksiy,
I don't see anything strange in your code. You should receive an error message but it shoudn't loop without end ;o(
The only thing I can propose you is to create a message for support, they will have a deepest look into your problem.
Regards
Trinidad. -
DI Server with SQL Server 2008
Hello.
In the company where I work we develop an application that uses B1WS.
In the development environment had the following characteristics:
SAP Business One 2007 SP01, PL 09
SQL Server 2005 Developer Edition
Windows XP Professional SP 3
SAP Business One Web Services 1.0
At the time we applied to the deploying the SAP Business One version 8.8, but I had a serious problem. The test environment has the following characteristics:
SQL Server 2008 Enterprise Edition
SAP Busines One 8.8 * PL 10
Windows Server 2008
The problem is that when trying to connect to the DI Server generates the following messages:
The TAO NT Naming Service has stopped. (WithOut DBUser and DBPassword)
Unable to access SBO-Common database Login (With DBUser and DBPassword)
I tested the connection directly to the DI Server disponbile by example in the SDK and it generates the same error. For the SAP interface is connected correctly.
DI Server allows connect with SQL Server 2008?
Messagge:
<DatabaseServer>mv-05910a0046</DatabaseServer>
<DatabaseName>Prueba</DatabaseName>
<DatabaseType>dst_MSSQL2008</DatabaseType>
<DatabaseUsername>sa</DatabaseUsername>
<DatabasePassword>12345</DatabasePassword>
<CompanyUsername>manager</CompanyUsername>
<CompanyPassword>12345</CompanyPassword>
<Language>ln_English</Language>
<LicenseServer>mv-05910a0046:30000</LicenseServer>
Thanks
Edited by: Andres Naranjo on May 14, 2010 12:47 AM
Edited by: Andres Naranjo on May 14, 2010 3:56 PM
Edited by: Andres Naranjo on May 14, 2010 3:58 PMHad the same error
'The TAO NT Naming Service has stopped.'
Was using the external IP address for the LicenceServer - which is on the same server as SAP DIserver and B1WS.
I changed to using localhost:30000 and that solved the issue.
I suspect if I had used the internal IP it would have worked as well (ie the one you get from ipconfig) but as it works I'm not going to test that.
HTH -
How to add Purchase Order entry using B1WS?
Hi,
I have implemented B1WS in DI server, I am trying to add purchase order entry, but after adding it via B1WS, I am not able to find entry in SAP;
My code using B1WS:
public void SAPPurchaseOrder(string _SID)
_PIService = new PurchaseInvoicesService();
Document doc = new Document();
doc.Address ="ab";
doc.AgentCode = "ab";
doc.BaseAmountSCSpecified = false;
doc.CardCode = "VEND7";
doc.CardName = "Baker & Taylor";
doc.DocDate = DateTime.Now.Date;
doc.CreationDate = DateTime.Now.Date;
doc.DocType = DocumentDocType.dDocument_Items;
doc.DocumentStatus = DocumentDocumentStatus.bost_Open;
doc.BaseAmount = 100000;
doc.DocCurrency = "USD";
MsgHeader msgHeader = new MsgHeader();
msgHeader.SessionID = _SID;
msgHeader.ServiceName = MsgHeaderServiceName.PurchaseInvoicesService;
msgHeader.ServiceNameSpecified = true;
_PIService.MsgHeaderValue = msgHeader;
_PIService.Add(doc);
Also, I found error while I have use "ADD FUNCTION" as;
can not empty list of tables, doc1, doc3 and doc10
Please suggest me a proper entry flow or code to implement.
Thank you.
Piyush
(Rob IT team - Parabox Media Group)Hello,
Just like DI API, you need add doc lines to purcahse order, here is a sample to add a purchase order.
Public Function Add() As DocumentParams
Dim myPOParams As DocumentParams = Nothing
Try
' Create Input parameters
Dim poDoc As Document = New Document
poDoc.DocDueDate = Date.Now
poDoc.CardCode = "V10000"
Dim docLine1 As DocumentDocumentLine = New DocumentDocumentLine
docLine1.ItemCode = "A00001"
docLine1.Quantity = 1
docLine1.TaxCode = "NY"
poDoc.DocumentLines = Array.CreateInstance(docLine1.GetType(), 2)
poDoc.DocumentLines.SetValue(docLine1, 0)
Dim docLine2 As DocumentDocumentLine = New DocumentDocumentLine
docLine2.ItemCode = "A00002"
docLine2.Quantity = 1
docLine2.TaxCode = "NY"
poDoc.DocumentLines.SetValue(docLine2, 1)
' Create Service
myPOService = New PurchaseOrdersService
' Create Header
Dim msgHeader As MsgHeader = New MsgHeader()
msgHeader.SessionID = GlbData.sessionID
msgHeader.ServiceName = MsgHeaderServiceName.PurchaseOrdersService
msgHeader.ServiceNameSpecified = True
myPOService.MsgHeaderValue = msgHeader
' Call command with output return
myPOParams = myPOService.Add(poDoc)
MsgBox("Purhcase Order added: " + myPOParams.DocEntry.ToString(), MsgBoxStyle.DefaultButton2)
Catch ex As System.Exception
MsgBox(ex.Message, MsgBoxStyle.DefaultButton2)
End Try
Return myPOParams
End Function
Kind Regards
-Yatsea -
Create Purchase Order using B1ws SAP 8.81
Hi Experts I am creating a Purchase Order using the Web Services SAP 8.81 PL7 SQL 2008, the problem is when i create the PO in business one it comes without the deatails on the lines like Price and Line total what am i doing wrong this is the code for the lines
Dim docLine As PurchaseOrdersService.DocumentDocumentLine = New PurchaseOrdersService.DocumentDocumentLine With
.ItemCode = gvItems.Rows(i).Cells(1).Value, .ItemDescription = gvItems.Rows(i).Cells(2).Value, .Quantity = gvItems.Rows(i).Cells(5).Value, .UnitPrice = Double.Parse(gvItems.Rows(i).Cells(6).Value) _
, .Price = Double.Parse(gvItems.Rows(i).Cells(6).Value), .LineTotal =
Double.Parse(gvItems.Rows(i).Cells(9).Value)} If i = 0 Then
poDoc.DocumentLines = Array.CreateInstance(docLine.GetType(), Me.gvItems.RowCount - 1)
End If
poDoc.DocumentLines.SetValue(docLine, i)
Regards BenHi Benedict,
Please review B1WS samples and documentation, it is stated there the following sentence:
Per each object property with a type different of string an associated Boolean property with the same
name but finishing with u201CSpecifiedu201D is automatically created by .NET environment. You are forced to set
this property value to u201Ctrueu201D if you want the associated property to be correctly set in the DI Server SOAP
message automatically formatted.
Hope it helps,
Trinidad. -
hi all
how work with di server? when i run sample in di server this error is coming
"Unable to connect to remote server" after i give correct values before clicking login botton
sandeepHi Sandeep,
If you are trying sample code from DIServer Samples say DIServerBP . Take care of the following points :
1. DI Server Service should be started.
2. DCOM Configurations should be configured (follow the instructions given in B1WS Documentation which asks to allow Remote accession permissions for ASPNet user)
3. Which looks more probable . For the Client application , remove the webservice reference form the Web Application and again locate and add it.
You can find the same WebService hosted on the IIS with the name sample.
Make sure your web reference is added correctly because this error occurs when the web application is not able to address the Web reference .
Regards,
Pooja Singh. -
B1WS CompanyService Query SQL injection potential?
In the code below will I be opening up SAP B1 to SQL injection?
The string value email will be user entered.
If so how do I pass a parameter value without string concatenation?
Is there another way of returning the Bussines Partner / cardcode based on the email address?
// construct Query
string query = "SELECT cardCode FROM OCRD WHERE E_Mail = " + email;
// create input params
CompanyService.RecordsetParams recordesetParams = new CompanyService.RecordsetParams();
recordesetParams.Query = query;
// get record set
CompanyService.Recordset recordset = companyService.Query(recordesetParams);Hi Dave,
You could use regular expressions to validate that the email address is a valid address and not an attempt at SQL injection before passing it to the service.
As the DI Server is a black box it's hard to tell whether there is any potential to use SQL injection to attack through this interface. I'd like to think that both the DI Server and B1WS developers have already bulletproofed these interfaces against this type of attack. Hopefully someone fromt the SAP SDN team can confirm that or not. I think the B1WS source code used to be downloadable so you could check whether they are parsing the recordesetParams.Query property before it is used to query the database.
Kind Regards,
Owen -
DI Server Purchase Request DI Object
Hi Experts,
I am working on DI Server. The Purchase request DI Object is not exposed in it. Is there any other work around to post purchase request through B!WS. I am using SAP business one 9.0 PL 6 and SQL 2008 standard edition.
Regards,
Gokul K.Hi Gokul,
DIS in fact expose no object... But if the object is a regular DI object and the xml is correctly formated you can access it.
Through B1WS, you have to choose the new 1.2 version, which exposes a lot more services than the previous packages.
If using B1WS, you'll have to modify the provided ServicesList.xml file to add the following line (no specific place):
<ServiceName>PurchaseRequestService</ServiceName>
To generate the wsdl and xsd files for this service.
Regards,
Eric
Maybe you are looking for
-
Hi I am trying to uninstall a previous version of itunes or download a newer version and I get the following error message "The feature you are trying to use is on a network resource that is unavailable" can anyone help please?
-
How to use Find Change to add FC in front of all item numbers?
Hello, I am using Indesign CS5 on iMac, running OS 10.8.3. I designed a product catalog that has 148 pages. Now I need to save the same design and make a new catalog for our wholesalers. On the wholesalers catalog I need to change the item numbers an
-
The easiest way to put a YouTube video in iWeb...
Whew! I am so stinkin' proud of myself. Now this tip isn't for you techno gurus out there. This is for the person who is as clueless about half the files on their computer as I am. I have a blog. I tried to use iWebMore...I've tried iWebEnhancer...et
-
Just bought an iTunes music card for the first time, and when i attempted to buy a song through the music store, iTunes prompted me to download version 6. I was cautious about this because i wanted to know if upgrading to a new version gets rid of yo
-
Reading form data using javascript
Hello. I want to go over the data received from the context to the PDF file using JavaScript, without binding it to any elements on the form. How can I access the data? I've tried using xfa.data or xfa.dataset, but didn't manage to get to it. How can