Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

GetBookmark Webservice

Posted on by Microsoft Employee

Hi,

I invoke the Navision Bookmark Webservice using generated C# classes like following:

                var bookMarkService = new GetBookmarkSvc
                {
                    UseDefaultCredentials = true,
                    Url = "MyUrl"
                };

                var bookMarkData = bookMarkService.CallGetBookmarkSvc("MyArgument");

This works fine with Navision 2013. Trying to invoke this on Navision 2015 I receive the following error:

<form method="post" action="./BrowserIsNotSupported.aspx?company=01-MyCompany%2fCodeUnit%2fGetBookmarkSvc" id="aspnetForm">

It seems to me, that my GetBookmarkSvc wrapper is not compatible for Navision 2015.

Where can I get the GetBookmarkSvc classes for Navision 2015?

Thanks

Christian

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GetBookmark Webservice

    The problem is solved. It was a configuration problem. A wrong Webservice URL was configured in the application :-(

    Thanks a lot

    Christian

  • keoma Profile Picture
    keoma 32,675 on at
    RE: GetBookmark Webservice

    run the web service url in different browsers. do you get always the same error ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GetBookmark Webservice

    Hi,

    I tried it with the ip.

    This is the complete ErrorMessage:

    Der vom Client gefundene Anforderungsinhaltstyp ist 'text/html; charset=utf-8', erwartet wurde 'text/xml'.

    Fehler bei der Anforderung mit folgender Fehlermeldung:

    --

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "www.w3.org/.../xhtml1-strict.dtd&quot;>

    <html>

    <head><meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=10" /><link id="ctl00_desktop" href="Resources/desktop.css?h=5C2802A678776CBF041709904E8D5232415959423150CAA2412B8E5AF53BD7D4" Rel="stylesheet" Type="text/css" /><title>

    Microsoft Dynamics NAV

    </title></head>

    <body>

       <form method="post" action="./BrowserIsNotSupported.aspx?company=01-Zentralmandant%2fCodeUnit%2fGetBookmarkSvc" id="aspnetForm">

    <div class="aspNetHidden">

    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wg==" />

    </div>

    <div class="aspNetHidden">

    <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="AE4512FD" />

    </div>

           <div class="ms-nav-minimal-layout">

               <div class="ms-nav-minimal-logo"><img id="ctl00_LogoImage" src="/NAV2015-PROD-User/WebClient/Resources/Images/Header.png" alt="Logo von Microsoft Dynamics NAV" /></div>

               <div class="ms-nav-minimal-content"><div class="ms-nav-minimal-content-innerContent"><p>Ihr Browser erfüllt die Mindestanforderungen für den Zugriff auf Microsoft Dynamics NAV nicht.</p><p>Weitere Informationen zu den Browseranforderungen finden Sie unter <a href="go.microsoft.com/fwlink; title="Navigation zur Website mit der Microsoft Dynamics NAV-Hilfe">Microsoft Dynamics NAV-Hilfe.</a></p><p>Technische Details:<ul><li>Der von Ihnen verwendete Browser wird nicht unterstützt.</li></ul></p></div><div class="ms-nav-minimal-content-innerContent"><p>Ihr Browser erfüllt die Mindestanforderungen für den Zugriff auf Microsoft Dynamics NAV nicht.</p><p>Weitere Informationen zu den Browseranforderungen finden Sie unter <a href="go.microsoft.com/fwlink; title="Navigation zur Website mit der Microsoft Dynamics NAV-Hilfe">Microsoft Dynamics NAV-Hilfe.</a></p><p>Technische Details:<ul><li>Der von Ihnen verwendete Browser wird nicht unterstützt.</li></ul></p></div></div>

           </div>

       <div class="ms-nav-centerAlignment"><span id="ctl00_CopyrightLabel">© 2014 Microsoft Corporation. Alle Rechte vorbehalten.</span></div>

       </form>

    </body>

    </html>

    --.

    HResult:    -2146233079

    StackTrace:    bei System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

      bei System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

  • keoma Profile Picture
    keoma 32,675 on at
    RE: GetBookmark Webservice

    try to use ip address in web service url instead of server name.

  • keoma Profile Picture
    keoma 32,675 on at
    RE: GetBookmark Webservice

    did you reference as web service or as wcf service ?

    envelope the web service call in your c# project in a try/catch clause, catch the exception, check the exception and the inner exception, if there is one. what are the exception messages in detail? is there a timeout issue, authentication issue?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GetBookmark Webservice

    Hi,

    thanks for your help!

    I imported the codeunit into Navision 2015, published it as SOAP Service and created a new Webreference in my C# app. I still have the same problem.

    Details from the error message (translated):

    The cliend found 'text/html; charset=utf-8', expexted was 'text/xml'.

    Any idea?

    Thanks

    Christian

  • keoma Profile Picture
    keoma 32,675 on at
    RE: GetBookmark Webservice

    when targeting nav 2015 web service update your web reference in your c# app, then try again.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GetBookmark Webservice

    It is standard.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GetBookmark Webservice

    Is GetBookmarkSvc web service customized or available as standard in NAV 2013 version?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans