The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Jan 11, 2013
Company: Brighteye AB

Hi,
get 'Service not found' when trying to use samples from 1C and Web Services. Using local machine only , 32 bit and have published according to all samples, e.g. http://localhost/ws1 as namespace for service.
Something in security settings in IIS I have not found?
/ws/ described correctly in default.vrd. And can se the xml file if run from Internet Explorer.

Regards
Keijo

 
#2
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Nov 19, 2012
Company:

Keijo Nordstrom,
Can you provide here screenshoots of error with browser's address line, content of default.vrd, and web-service in Designer?

 
#3
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Jan 11, 2013
Company: Brighteye AB

Code
<?xml version="1.0" encoding="UTF-8"?>
<point xmlns="http://v8.1c.ru/8.2/virtual-resource-system"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      base="/Fonder"
      ib="Srvr=&quot;kenohp&quot;;Ref=&quot;Fonder&quot;;"
      enableStandardOData="true"
      temp="D:\1C\Fonder\">
   <ws>
      <point name="MAExchange"
            alias="ws1.1cws"
            enable="true"/>
   </ws>
</point>

Hope enclosed pics are the one's you asked for..
Regards
Keijo

 
#4
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Nov 19, 2012
Company:

Keijo Nordstrom,
Yes, thanks. So you caught an error in 1C.. it might be some issue with source code.
May you show here also your 1C code for calling web-service?
Does your connection string looks like "http://localhost/Fonder/ws/MAExchange"?

Edited: Aleksey Bochkov - Jan 08, 2015 10:30 AM
 
#5
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Jan 11, 2013
Company: Brighteye AB

Hi Alexey,
The connection string is http://localhost/Fonder/ws/ws1.1cws. The synonym for MAExchange.
I managed to get connection, setting Anonymous Authentication in IIS, but got other error.

SOAP server error:  Unknown error. {CommonModule.ExchangeMobileGeneral.Module(87)}: Error calling context method (BeginRead)
reason:
{CommonModule.ExchangeMobileGeneral.Module(87)}: Error calling context method (BeginRead)
reason:
Calling Function Is :

Code
    Address = Constants.MainInfoBaseAddress.Get();
    User = Constants.MainInfoBaseUser.Get();
    
    Address = Address + "/ws/ws1.1cws?wsdl";
    Try
        Definitions = New WSDefinitions(Address,User,Password, 60);
    Except
        // Showing the error message to the user
      ErrorText = NStr("en = 'Cannot connect the server. Please try again later.'; sv= '
      | Kan ej ansluta till server. Försök senare!'", "sv");
        Return Undefined;
    EndTry;

    URI = ServiceNamespaceURI();
      
    Proxy = New WSProxy(Definitions, URI,"MAExchange", "MAExchangeSoap");
   Proxy.User = User;
   Proxy.Password = Password;
    Return  Proxy;

Just copied from 1C Managed Demo
Maybe totally wrong?
Regards
Keijo

 
#6
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Jan 11, 2013
Company: Brighteye AB

Sorry reason slipped in previous ..
Shall be ;
reason:
Unknown recipient
Regards
Keijo

 
#7
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Jan 11, 2013
Company: Brighteye AB

Hi,
found the problem, my own mistake with Node definitions. Still problem with authorities, need to use Anonymous logg in, but that is more related to Windows.
Thanks for helps
Keijo

 
Subscribe
Users browsing this topic (guests: 2, registered: 0, hidden: 0)