SOAP Codeunit Function with Container

mik
Member Posts: 79
I have trouble calling a simple test function via SOAP.
My function:
(I also tried this in C/AL (Windows AND NavUserPassword Auth + "ServicesUseNTLMAuthentication = true" )
My container is a mcr.microsoft.com/businesscentral/onprem:14.0.29537.31761-at-ltsc2019
Command:
I can list all services and also this special service in chrome.
http://test14bc:7047/NAV/WS/CRONUS AG/Codeunit/WSInterface
I tried to call my function add with WebserviceStudio, Wizdler.
My function:
codeunit 70005 TestWS { [ServiceEnabled] procedure add(a: Integer; var b: Integer); begin b := a + b; end; }
(I also tried this in C/AL (Windows AND NavUserPassword Auth + "ServicesUseNTLMAuthentication = true" )
My container is a mcr.microsoft.com/businesscentral/onprem:14.0.29537.31761-at-ltsc2019
Command:
New-NavContainer -accept_eula -accept_outdated -containerName test14bc -imageName mcr.microsoft.com/businesscentral/onprem:14.0.29537.31761-at-ltsc2019 -includeCSide -licenseFile E:\lizenz\lizbc.flf -enableSymbolLoading -auth NavUserPassword -clickonce -shortcuts Desktop -updateHosts
I can list all services and also this special service in chrome.
http://test14bc:7047/NAV/WS/CRONUS AG/Codeunit/WSInterface
I tried to call my function add with WebserviceStudio, Wizdler.
Error in Wizdler:
Failed to get response (Not Found).
Error in WebServiceStudio
System.Reflection.TargetInvocationException: A call target caused an exception. ---> System.InvalidOperationException: The request content type found by the client is '', expected was 'text / xml'.
Error: Empty response on request.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse (SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (String methodName, Object [] parameters)
at WSInterfac.Add (Int32 a, Int32 & b)
With kind regards
mik
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions