cancel
Showing results for 
Search instead for 
Did you mean: 

Send me the sample coding of DI Server

Former Member
0 Kudos

Hi DI Server Experts,

Can you send the sample simple coding for the DI Server and what are the steps needs to be taken care?

i have DI server license and when i run the coding of sample it showing 'Could commit the transaction login'.

Please helping out from this error and give good solutions ASAP.

Thanks in Advance,

G.Suresh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi...

see this path

:\Program Files\SAP\SAP Business One SDK\Samples\DI Server\VB.NET

Regards...

Billa 2007

Former Member
0 Kudos

Hi All,

Thanks for your reply...but..

I have gone through those files.i didnt get it. can you send sample coding and what are the procedure needs to take care before running of the DI Server program.

Explain in Step by step which is very helpfull for me.

Thanks in Advance,

Regards,

G.Suresh

Former Member
0 Kudos

Hi Suresh,

With the DI server, you simply send an XML file to the DI server and then receive a response from it:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        oRead = System.IO.File.OpenText("C:\Program Files\SAP\SAP Business One ServerTools\DI_Server\Login2.xml")
        string = oRead.ReadToEnd()

        response = DI_Server.Interact(str)        
    End Sub

This is the login file:

<?xml version="1.0" encoding="utf-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
 <env:Body>
  <dis:Login xmlns:dis="http://www,sap.com/SBO/DIS">
   <DatabaseServer>(local)</DatabaseServer>
   <DatabaseName>SBODemo_UK</DatabaseName>
   <DatabaseType>dst_MSSQL2005</DatabaseType>
   <DatabaseUsername>xx</DatabaseUsername>
   <DatabasePassword>xxxxx</DatabasePassword>
   <CompanyUsername>manager</CompanyUsername>
   <CompanyPassword>manager</CompanyPassword>
   <Language>ln_English</Language>
   <LicenseServer>localhost:30000</LicenseServer>
  </dis:Login>
 </env:Body>
</env:Envelope>

The code for sending the files to the DI server is the same for every operation, it is what is contained in the XML file that determines what the DI Server will do.

The SDK help file has examples of the different operations. Help Centre->DI Server->SOAP Message types->Data Manipulation Messages.

Regards,

Niall

SAP Business One Forums

Former Member
0 Kudos

Hi Niall O'Grady,

Thanks. its works!!!.

Do one favour for me. Please send any documentation about this topic.

i have one doubt on this also...that i explain.

SAP DB <=> DI Server (Web Service) <=> Client

Which application i can use for Client?? Windows or Web ???

Thanks and Advance

Regards,

G.Suresh

Former Member
0 Kudos

Link: [sureshmail4u.gmail.com]

can you send documents to this mail...

regards,

G.Suresh

Former Member
0 Kudos

Hai Suresh,

can you send sample coding and what are the procedure needs to take care before running of the DI Server program.

Explain in Step by step which is very helpfull for me.

Thanks & Regards

Madhu

Answers (2)

Answers (2)

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Consider using B1WS. Available on 2007A. You can download it from SDN under the usual "Business One SDK Tools" section. Sits on top of DI Server and just makes your life easier.

Former Member
0 Kudos

Hi Suresh,

Did u check these..?

C:\Program Files\SAP\SAP Business One SDK\Samples\DI Server

Vasu Natari.