I
I
Ivan Shumakov2020-10-14 09:44:57
PHP
Ivan Shumakov, 2020-10-14 09:44:57

Is it possible to integrate 1C-Enterprise and PHP site using DMService?

I was given the task of receiving data from a 1C enterprise using the SOAP protocol.
The data is needed on a PHP site.
The 1C programmer set up DMService and gave me a link to the documentation. He claims that he did his job, and then it's up to me.
After reading the documentation and fiddling a little with the code, I convinced myself that DMService is a "history inside 1s" and does not provide for use in PHP.

Can you tell me if I can use DMService with PHP?
If I can, then give at least some link, or a code snippet, or at least something, please.
I will be glad for any donation. Thank you)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kinash, 2020-10-16
@ivanshumakov

DMService is a SOAP service for working with the Document Management System. It's better than REST because it gives you full description of incoming/outgoing types in XDTO package.

The 1C programmer set up DMService and gave me a link to the documentation. He claims that he did his job, and then it's up to me.
If you didn’t have anything in the project statute about providing simple and understandable access, then you were thrown. DMService is part of the Document Management Integration Library (BID), which is supplied exclusively as a 1C subsystem. It is possible to write a library in PHP if you have nothing to do in the coming months, but this will require a deep dive into understanding the structure of data storage and organization of Workflow processes (not every certified consultant will help with this).

A
Andrey Nikolaev, 2020-10-14
@gromdron

After reading a little documentation and some mana from known resources, I can say yes.
There are no libraries for third-party languages ​​(at least I did not find any, especially for php).
But after reading the links above, I assume that this is a regular xml package wrapped on top in something like wsdl (xml over xml is shorter).
According to your situation, you can go from several sides (obvious simplest solutions):

  • from the side of a lazy developer: require documentation with examples of http requests and responses (or other protocols)
  • from the php developer side: open the link in the browser (maybe it's a regular wsdl)
  • from the side of the 'networker/sysadmin': install fiddler on the 1C-nick's computer and ask to write a client and send several different requests and send the log to you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question