Access WebServices Through Internet Explorer

Jatin_PatelJatin_Patel Member Posts: 200
edited 2011-02-21 in NAV Three Tier
Hello,

I am trying to access webservices through IE.
My Both NAV service is running.
I also Publish codeunit in Webservices table.
And i use this URL : http://localhost:7047/DynamicsNAV/WS/CR ... ./Services
But it will give me output like "Internet Explorer cannot display the webpage"
How can i resolve it?
Jatin Patel
Microsoft Dynamics NAV Consultant
Jatin's Blog

Answers

  • kinekine Member Posts: 12,562
    1) The company must b coded correctly (replace . with _ etc.)
    2) You need to run it under account which have access ito NAV (but if it is this case, you will get the "Not Authorised")
    3) Try this: http://localhost:7047/DynamicsNAV/WS/Services
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Jatin_PatelJatin_Patel Member Posts: 200
    Now i get HTTP 500 error.
    Jatin Patel
    Microsoft Dynamics NAV Consultant
    Jatin's Blog
  • kinekine Member Posts: 12,562
    Than check even log on the server.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Jatin_PatelJatin_Patel Member Posts: 200
    In Event Log I found this error.

    Service:
    User:
    Type: Microsoft.Dynamics.Nav.Service.WebServices.ServiceBrokerException
    Message: Service "CRONUS India Ltd_/Codeunit/RunJob" was not found!
    StackTrace:
    at Microsoft.Dynamics.Nav.Service.WebServices.UrlParser.ParseUrlPart(String theUrlPart)
    at Microsoft.Dynamics.Nav.Service.WebServices.UrlParser..ctor(String urlPart)
    at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke(Boolean isSoapMessage, String serviceName, Uri url, XmlReader input, TextWriter output, String sid)
    at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<>c__DisplayClass5.<ProcessMessage>b__1()
    at Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
    at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<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.Service.WebServices
    Jatin Patel
    Microsoft Dynamics NAV Consultant
    Jatin's Blog
  • kinekine Member Posts: 12,562
    As you can see, the URL you entered is not correct... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Jatin_PatelJatin_Patel Member Posts: 200
    I use this URL 'http://localhost:7047/DynamicsNAV/WS/CRONUS India Ltd./Codeunit/RunJob'
    and i get output like this image.
    1.JPG 80.9K
    Jatin Patel
    Microsoft Dynamics NAV Consultant
    Jatin's Blog
  • kinekine Member Posts: 12,562
    That's correct. This is WSDL which describe the webservice. What else you are expecting?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Jatin_PatelJatin_Patel Member Posts: 200
    Got it.
    Thanks kine for Your great support.
    Jatin Patel
    Microsoft Dynamics NAV Consultant
    Jatin's Blog
Sign In or Register to comment.