web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

GetBookmark Webservice

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    on at

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

  • Community Member Profile Picture
    on at

    It is standard.

  • keoma Profile Picture
    32,729 on at

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

  • Community Member Profile Picture
    on at

    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
    32,729 on at

    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?

  • keoma Profile Picture
    32,729 on at

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

  • Community Member Profile Picture
    on at

    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
    32,729 on at

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

  • Verified answer
    Community Member Profile Picture
    on at

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

    Thanks a lot

    Christian

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans