cancel
Showing results for 
Search instead for 
Did you mean: 

B1WS: Unable to connect to the remote server

Former Member
0 Kudos

Hello Forum,

I'm trying to access the B1 DI Server via the Wsdl Soap interface. I followed the instructions from this site:

In the word document within the Zip file for B1 9.0 are the latest instructions. Now I'm trying the login function from the LoginService.wsdl. For testing I'm using a WinForm project. If I start the project from the same machine where IIS and the DI Server are installed, I get the SessionID like expected. But if I start the project from a remote machine, I get this error "Unable to connect to the remote server" (System.Net.WebException). I can look into the log file from the DI server (Extended Log=true), the remote loggin isnt logged. What could be the problem?

I have added the IIS_IUSERS the Start and Stop rights and Configuration rights like in the doc mentioned.

I have done some search within the forum. They say I have to change the AppPool PipelineMode to classic. But this does not help, even the loal access to the DI server does not work with this settings.

The Firewall is turned off.

In the doc file and some forum posts is written that I have to add entries to the web.config file. (Set server address) But I dont know where?

Thanks

Mark

Accepted Solutions (1)

Accepted Solutions (1)

maik_delly
Active Contributor
0 Kudos

Hi Mark,

most probably your WSDL files are using localhost as server location. Regular LoginService.WSDL looks like this ( last child ) :


<wsdl:service name="LoginService">

    <wsdl:port name="LoginServiceSoap" binding="tns:LoginServiceSoap">

      <soap:address location="http://localhost/B1WS/Service.asmx" />

    </wsdl:port>

    <wsdl:port name="LoginServiceSoap12" binding="tns:LoginServiceSoap12">

      <soap12:address location="http://localhost/B1WS/Service.asmx" />

    </wsdl:port>

  </wsdl:service>

Change the <soap:address location=...  accordingly and refresh the reference in your project.

regards,

Maik

Former Member
0 Kudos

Thank you Maik, now it works

Answers (0)