Web service and database connection

We have a SharePoint 2010 webservice that is used to make calls to a database basically Microsoft Dynamics Navision.

The link for it is http://navdatas/Nav_Data.asmx in SharePoint.

It has various  GETPO GETORDER commands that it is calling.  We are moving the database of where these are talking to and I need to know how to repoint these to the new servername and database of the NAVISION DB.  

I have had no luck finding a connection string anywhere to talk to this DB.  Any ideas?
scusackAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
Hi,
is this a custom developed web service?
Could you perhaps post / attach the web.config which resides inside of the web service web application?
In 99.9 percent of all cases, the connection string is in there.

KR
Rainer
scusackAuthor Commented:
<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>
scusackAuthor Commented:
I believe it was a custom application.
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Rainer JeschorCommented:
Hm,
Looks not as usual/expected.
What's in the ASMX file?
scusackAuthor Commented:
<%@ WebService Language="C#" CodeBehind="NAV_Data.asmx.cs" Class="NAV_DATA.Service1" %>
scusackAuthor Commented:
Rainer,

There is a dll in the BIN file called Nava_data.dll.  I think this is a compiled application where maybe the settings are that point to the DB. installed a hex editor and took a look and I do see references to our Navision database.  Any idea how I would do this?




dll snipdll snip
scusackAuthor Commented:
I downloaded /Net Reflector and decompiled the dll. There was a connection string within the NAV_DATA.Service1 code that needed to be updated.  Thank You for your help Rainer.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rainer JeschorCommented:
Hi,
that are not really good News, but just in case: there is a really useful tool where you can patch .NET dlls - and It could be really good in your Situation.
The tool is called ReflexIL - http://reflexil.net/

HTH
Rainer
scusackAuthor Commented:
Once I installed .Net Reflector and decompiled the dll file I was able to see the connection string to the DB.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Services

From novice to tech pro — start learning today.