How to fill in the External Processing of the Web service?

Good afternoon. The situation is the following, I have a External treatment in a separate file, and has published WebСервис. Trying to access different examples from the Internet, to which the answer is almost one. In place of "Processing" and the name forms and name external processing, etc does not want to cling to it, the interpreter thinks that it is a variable.
{WebСервис.test.Module(12,16)}: Variable is not defined (Processing)

The conclusion is obvious, it is necessary that the processing to register, add processing using 1C Enterprise, via menu - Service - External processing and Reports, as a result, it appears in the list - but in the Configurator on the left there. Duck that is the question, how do I get access if :

There is an external treatment : "Calculation of production", it is a form of "Calculator".
In the calculator when you change the value of the field is called -

Function Recalculate(Tonnes) Export
The End Of The Function

If even shorter, it's my job to Call the web service function external processing "Function of the Conversion(Tonnes) Export" and return the value to the user
September 19th 19 at 00:15
1 answer
September 19th 19 at 00:17
menu - Tools - External processing and Reports

You misunderstand the mechanism. External processing is a directory. When you add processing, then there is a dictionary element whose field contains binary data the file itself. When you open it, some of this binary data object is created in the processing and it opens.

This is such a common way to insert processing without changing the configuration, so they should not appear in the Configurator.

You need either the Configurator right click in and select "insert external processing..." and then it will be added to the configuration and will be available from the module via code "Treatment.Nazvanivaet".

Or look at the directory of the external treatments and do they have to the element of the dictionary, to read the binary data, likely to create a temporary file, then to create a treatment.

Or you can use the design Vneshnetorgbank.Create(<Pornoamateure>, <Bezopasnyi>) in which the file name will file path processing. But then the user under which the server runs must have access to this file.
Half everything turned out, thank you. She finally became visible in the code, but the main problem is not solved - now there's an error

Fatal error: Uncaught SoapFault exception: [soap:Client] Unspecified error. {WebСервис.test.Module(11)}: Error calling context method (Polycitra) because: {WebСервис.test.Module(11)}: Error calling context method (Polycitra) due to the Interactive operations are not available in
//string in PHP code//

Google gave the following solution
1) it is Necessary somehow to put right
2) to Save the binary data
3) Add a export code into the processing.

Please help in what direction to dig, and if there would be a clear example - that would be wonderful ! - Shawna_Hegma commented on September 19th 19 at 00:20
I don't know. It may be possible to form on the server and no. In General, to lay the business logic in a form is bad practice, so I advise you to rewrite it in the object module/ Manager.

If you want to work with the form, then you need to look for different ways of working with forms on the server. But they may not be.

In the Configurator there is a "Syntax helper" - a very useful thing, there is a description of the procedures, their parameters, the context in which they can run (client, server, etc.) - taylor6 commented on September 19th 19 at 00:23
: Okay, I will try) - Shawna_Hegma commented on September 19th 19 at 00:26

Find more questions by tags 1C1C-Enterprise