Options

Metadata publishing error with Web Service

NickMtlNickMtl Member Posts: 3
edited 2010-07-20 in NAV Three Tier
I started the Nav 2009 Web Service this morning for the first time. When I tried to list the available services at http://localhost:7047/DynamicsNav/WS/Services I got a blank page.
If I try to go to http://localhost:7047/DynamicsNav I receive the following message : "Metadata publishing for this service is currently disabled".

Has anybody ever seen this message with NAV Web Service?

Thanks

Nick

Comments

  • Options
    Jens_TidemannJens_Tidemann Member, Microsoft Employee Posts: 14
    I have not seen the "Meta Data Publishing" error before. To get your web service running you might want to take a look at your server's CustomSettings.config file (should be in the directory where your service is installed).

    You want to check these settings:
    WebServicePort - you are assumming 7047 which is the default value
    ServerInstance - you are assumming DynamicsNAV
    (If you change anything you need to restart your service.)

    Also make sure the web service is running (it is not by default) - but you seem to have taken care of that.
    Jens Tidemann
    Microsoft, Dynamics NAV

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Options
    NickMtlNickMtl Member Posts: 3
    We have this error on 2 different Nav Server. The error page refers to http://go.microsoft.com/fwlink/?LinkId=65455
    It asks me to add the following xml :
    <behaviors>
        <serviceBehaviors>
            <behavior name="MyServiceTypeBehaviors" >
                <serviceMetadata httpGetEnabled="true" />
            </behavior>
        </serviceBehaviors>
    </behaviors>
    

    Nick
  • Options
    mschneidermschneider Member Posts: 14
    NickMtl wrote:
    We have this error on 2 different Nav Server. The error page refers to http://go.microsoft.com/fwlink/?LinkId=65455
    It asks me to add the following xml :
    <behaviors>
        <serviceBehaviors>
            <behavior name="MyServiceTypeBehaviors" >
                <serviceMetadata httpGetEnabled="true" />
            </behavior>
        </serviceBehaviors>
    </behaviors>
    

    Nick

    Where shall I add these lines!
  • Options
    freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    The error about the metadata publishing being disabled is not an error - I get that too and Web Services works just fine here.
    http://localhost:7047/DynamicsNAV is not supposed to give you anything but this error.

    However http://localhost:7047/DynamicsNAV/WS/Services should give you a list of exposed services (which at least should contain the SystemService if you haven't exposed anything) if the Web Services listener is configured correct and running.

    Do not try to find a location to insert the lines mentioned - it will not solve any problems.
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • Options
    mschneidermschneider Member Posts: 14
    freddy.dk wrote:
    The error about the metadata publishing being disabled is not an error - I get that too and Web Services works just fine here.
    http://localhost:7047/DynamicsNAV is not supposed to give you anything but this error.

    However http://localhost:7047/DynamicsNAV/WS/Services should give you a list of exposed services (which at least should contain the SystemService if you haven't exposed anything) if the Web Services listener is configured correct and running.

    Do not try to find a location to insert the lines mentioned - it will not solve any problems.

    I don't see any list of exposed services. I see only a blank page. I think the Web Services listener is configured correctly. What shall i do? Please help me!
  • Options
    freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    Which browser are you using?
    Have you installed NAV using the Install Demo?
    Have you changed customsettings.config after installing?
    Have you started the Business Web Services service in Services (default not started)?
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • Options
    mschneidermschneider Member Posts: 14
    I used firefox and the internet explorer. both the same!

    but i have installed NAV for developers and not the demo,Maybe there's the problem!
  • Options
    freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    We have seen a couple of posts, wherer firefox has problems displaying our WSDL.

    viewtopic.php?f=32&t=31351&hilit=firefox

    This post also states that IE6 has problems, but IE7 and VS works - have you tried Microsoft Infopath or VS?
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • Options
    mschneidermschneider Member Posts: 14
    freddy.dk wrote:
    ... have you tried Microsoft Infopath or VS?

    tried for what? I first want to display the available services. ](*,)

    thank you for your help!
  • Options
    Tom_CorneliusTom_Cornelius Member, Microsoft Employee Posts: 18
    When you create a web reference in Visual Studio (and Infopath), there is a wizard which allows you to see the discovered services, just as you would in a web browser. Can you check to see if they are discoverable in VS?

    Also, which OS are you using? Win2003 and Win2008 have some extra security around IE, which might explain what you are seeing.
    Tom Cornelius
    Test Lead
    Microsoft Dynamics NAV

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Options
    DenSterDenSter Member Posts: 8,304
    mschneider wrote:
    I first want to display the available services. ](*,)
    Did you add the pages and/or codeunits to the web services table, and set them as 'published'?
  • Options
    bob_upbob_up Member Posts: 155
    I am where you were. Can you remember how you resolved your problem ?
    My web address matches my CustomSettings.config.
    I have started the Microsoft Dynamics NAV Business Web Service
    Adding a Web Reference in VS doesnt show the Microsoft Dynamics NAV Business Web Service in the list of available services.
    I have added the customer page in form 810 as 'Published'.
    I am working in a VPC running XP SP3.
  • Options
    joshuasungjoshuasung Member Posts: 37
    I have exact same problem as well.
    Did you get a solution for that yet?
    Joshua H Sung

    Sr. Project Manager
    S-Metric, LLC
    jsung@smetric.com
  • Options
    joshuasungjoshuasung Member Posts: 37
    Seems like it's because of Windows XP.
    Windows 2003/2008 have no problem~
    Joshua H Sung

    Sr. Project Manager
    S-Metric, LLC
    jsung@smetric.com
Sign In or Register to comment.