Change default ws publication path

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

Hello, I need to change path of custom Web Service inside 1c.

By default it is published to... http://sitename/ws/name.1cws?wsdl
I need to change it to http://sitename/custom/path/ServiceName?wsdl

Is there any way to do it? I can use proxy, but inside wsdl file there is a link to publication address. What should I do?

Code
<port name="RecepcionComprobantesOfflineServiceSoap12" binding="tns:RecepcionComprobantesOfflineServiceSoap12Binding">
<soap12bind:address location="http://localhost/mifactura2/ws/rec.1cws"/>
</port>


By the way, apache web module for 8.3.11.latest does not work.

 
#2
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 12, 2017
Company:

Dear Alexey,

Do you mean that you have the latest version of Apache web server and could not make it work for publishing a 1C:Enterprise platform 8.3.11 infobase?

If yes, please let us know the exact version of your 1C:Enterprise platform and the version of Apache web server you use. Otherwise, please clarify your situation.

Best regards,
Vladimir Gurov

 
#3
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

Quote
Vladimir Gurov wrote:
Do you mean that you have the latest version of Apache web server and could not make it work for publishing a 1C:Enterprise platform 8.3.11 infobase?

No, I mean that Apache 2.4 does not work with 1C:Ent 8.3.11.2899 (latest published stable version)

What about my question?

 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 12, 2017
Company:

Hi Alexey,

As for your question about changing the WSDL publication path. Yes, you can use a proxy for this purpose. At that, to have the correct path in WDSL, use the Reverse Proxy headings there.

Best regards,
Vladimir Gurov

 
#5
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 12, 2017
Company:

Alexey,

As for your note that in your case Apache 2.4 does not work with 1C:Enterprise Platform 8.3.11.2899:

we need the detailed information on your system configuration, including the infobase, to reproduce the issue you mentioned.

Best regards,
Vladimir Gurov

 
#6
People who like this:1Yes/0No
Just came
Rating: 1
Joined: Dec 12, 2017
Company:

Further details on reverse proxies:

Reverse proxy is a proxy server that relays client requests fr om an external network to one or several servers in your internal network. It can be used for load balancing and security increase.

If you configured access to the web server where your 1C:Enterprise infobase is published via a reverse proxy and the proxy is configured incorrectly, certain functions in your system when accessed via the web interface can stop working. Typically, this happens because a request that comes to your 1C:Enterprise system's web server comes from a computer wh ere you have the reverse proxy installed rather than from an external client.

To avoid such problems, configure the reverse proxy to ensure that when forwarding an HTTP request, the X-Forwarded-Port, X-Forwarded-Host, and X-Forwarded-Proto request headings are formed correspondingly. In this instance, your 1C:Enterprise system can "restore" an external HTTP request correctly.

For more information on configuring reverse proxies, refer to the relevant Apache HTTP server documentation.

 
#7
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

Vladimir, regarding the Apache module problem.

httpd.exe: Syntax error on line 163 of C:/Apache24/conf/httpd.conf: Cannot load C:/Program Files/1cv8/8.3.11.2899/bin/wsap24.dll into server: %1 is not a valid Win32 application.  

This is my error. I have not noticed that I have 2 versions of 8.3.11.2899 installed (x32 and x64), and as there is no message which one is running. By checking that I have x32 installed I thought that the module is correct.


About proxy.
Establishing proxy would not affect wsdl publication. So inside wsdl file those paths would not be correct.

 
#8
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 12, 2017
Company:

Hi Alexey,

To let us investigate what happens in your web service, please send us:

- stack traces of HTTP requests:
  * from an external client to the proxy
  * from the proxy to the 1C:Enterprise server

Best regards,
Vladimir Gurov

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.