Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

BC21 OnPrem SOAP WebService Wrong Definition part

(0) ShareShare
ReportReport
Posted on by 5

Hi,

one of our departments is still relying on a SOAP webservice. We are using this WebService since NAV2018.

In NAV2018 and BC18 the SOAP webservice returns the following in the definition part:

    <service name="MyService">
        <port name="MyService_Port" binding="tns:MyService_Binding">
            <address location="https://[FQDN]:7047/[InstanceName]/WS/[CompanyName]/Codeunit/MyService" xmlns="">schemas.xmlsoap.org/.../"/>
        </port>
    </service>

Now in BC21 this changed to:

    <service name="MyService">
        <port name="MyService_Port" binding="tns:MyService_Binding">
            <address location="https://[FQDN]:7047/[CompanyName]/Codeunit/MyService" xmlns="">schemas.xmlsoap.org/.../"/>
        </port>
    </service>
So the InstanceName is missing in the address location and in my opinion this is a wrong definition. Is there an option (maybe in the BC service configuration) to get the InstanceName back to the definition?
Thanks
  • Verified answer
    Marco Mels Profile Picture
    on at
    RE: BC21 OnPrem SOAP WebService Wrong Definition part

    Hi,

    Understood, thanks. I have a bug open on this issue, so this feedback that it is resolved this way really helps.

    Thank you.

  • JuliettWhiskey81 Profile Picture
    5 on at
    RE: BC21 OnPrem SOAP WebService Wrong Definition part

    Hi Daniele,

    I'm absolutely able to read documentation and did this before opening this thread. But where is the solution for my problem in your link?

    @thecommunity: If you need an example for an totally useless answer: here you are!

  • Suggested answer
    JuliettWhiskey81 Profile Picture
    5 on at
    RE: BC21 OnPrem SOAP WebService Wrong Definition part

    Hi Marco,

    thanks for your feedback. Removing the PublicSOAPBaseUrl worked for me. Thank you so much for sharing this info.

  • Suggested answer
    DAnny3211 Profile Picture
    9,280 Moderator on at
    RE: BC21 OnPrem SOAP WebService Wrong Definition part

    hi

    look this

    learn.microsoft.com/.../soap-web-services

    DAniele

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: BC21 OnPrem SOAP WebService Wrong Definition part

    Hello,

    Thank you for this message. We are working with a partner that reported the same issue. The partner mentioned the issue can be considered as mitigated when using a hosts file (location: c:\windows\system32\drivers\etc). You can add the following line in the hosts file:

    127.0.0.1   FQDN

    You can also clear the field PublicSOAPBaseUrl in the customsettings.config file, this was our last suggestion to try out. We currently do not have an internal repro so we do not know why this is happening.

    Thank you.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans