Web services Setup

nader2000nader2000 Member Posts: 6
edited 2010-09-01 in NAV Three Tier
I am trying to setup web services on our Windows server 2003. We use NAV 2009 and I can access the web services for the demo database. When I use another database, I can not get a display of the webservices using http://localhost:7047/dynamicsNAV/WS/Services. What is the problem. any help ?

Comments

  • kinekine Member Posts: 12,562
    You need to have the corect service setup and running, and you need to publish some pages/codeunits as webservices in the database...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • nader2000nader2000 Member Posts: 6
    Sure, I have publish some pages and I can see the published pages in the browser. The question I have , if I use another database Nothing appears in the browser. If I change the custom config file back to the Demo , the browser display the pages which I published?
  • kinekine Member Posts: 12,562
    Once again - have you published something in the second database?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • nader2000nader2000 Member Posts: 6
    Yes, I published some pages. My Database is created alone and not in the same demo DB. When I try to list the pages , the browser show "The website cannot display the page"
  • kinekine Member Posts: 12,562
    Check the event log. After you changed the settings of the service tier, have you restarted the service? Did it started sucessfully? (Confirm that by checking the event log)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • nader2000nader2000 Member Posts: 6
    The log

    User:
    Type: Microsoft.Dynamics.Nav.Types.NavDatabasePasswordException
    SuppressMessage: False
    FatalityScope: None
    Message: The user ID and password are invalid. Try again.
    StackTrace:
    at Microsoft.Dynamics.Nav.Runtime.NavRuntimeAdapter.ErrorHandler(Int32 errorCode, Int32 errorNumber, Int32 moduleNumber, String errorText)
    at Microsoft.Dynamics.Nav.Runtime.NativeMethods.AdapterOpenConnection(IntPtr databaseHandle, String serverName, NetProtocolType netType, String databaseName, Int32 clientConnectionType, DeadConnectionHandler deadConnectionHandler)
    at Microsoft.Dynamics.Nav.Runtime.NavConnection.Open()
    at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke(Boolean isSoapMessage, String serviceName, Uri url, XmlReader input, TextWriter output)
    at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass2.<>c__DisplayClass4.<ProcessMessage>b__1()
    at Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
    at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass2.<ProcessMessage>b__0(StreamWriter streamWriter)
    at Microsoft.Dynamics.Nav.Service.WebServices.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
    at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.ProcessMessage(Message message)
    at SyncInvokeProcessMessage(Object , Object[] , Object[] )
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
    Source: Microsoft.Dynamics.Nav.Ncl


    Do I have a problem with the Database ?
  • nader2000nader2000 Member Posts: 6
    Ok just remove the userId and password from my DB and make it accessed using Windows Authentication and Now I am able to see the list of pages published.

    Many Thanks Kamil for let me view the event viewer.
  • kinekine Member Posts: 12,562
    You are welcome. Event log is one of tools which are often forgotten...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • dipakpatel2505dipakpatel2505 Member Posts: 169
    Hello,
    You need to restart Nav Server and Nav Web Services (Use StartUp Programs -> Run -> Services.msc) after Changing
    the database name in Custom.Config File and then you publish one Webservice
    (Either Page or Codeunit) in Database which is given custom setting file
    and check it in broser.
Sign In or Register to comment.