a very open question - hard to know what has been checked and what not...
1. Is the Service running? (default installation leaves the Web Service Listener service as Start manually)?
2. Page and Codeunit in the URL are case sensitive - should be Page/MyCustomer - but this would give a different error I think.
3. Does http://localhost:7047/DynamicsNAV/WS/CR ... d/Services give any result?
It should list the available Services under that company - then we know that the Company Name is escaped correctly - and you should be able to copy and paste the URL from one of these services.
4. Does http://localhost:7047/DynamicsNAV/WS/Services give any result?
If this URL works and not the first - it points towards a wrong company name in the URL - what is the company name in clear text?
5. Which page number is exposed in the Web Service table as MyCustomer - and what is the page type (only Card and List can be exposed as Web Services)
One of these questions (in order of likelyhood) should bring you on the right track.
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.
So this means that the Computername is right, the Company name is right and Web Services Service is running - but you haven't any pages nor codeunits exposed.
Try to attach a screenshot of your Web services table (Run the table from the Classic Client - and make a screen shot)
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.
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.
I am also facing the same problem.
I use URL --> http://im56:7047/DynamicsNAV/WS/Services.
I have checked all pre-requisites and they are set properly.
Not sure what is going wrong.
When i start the Microsoft Dynamics NAV Business Services, it gets started and then stopped automatically with a warning message.
Regards,
Hemant
Regards,
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
The error related to starting the web service in the application event log is: The service MicrosoftDynamicsNavWS failed to start. This could be caused by a configuration error. Detailed error information:HTTP could not register URL https://+:7047/DynamicsNAV/. Another application has already registered this URL with HTTP.SYS.
I then opened CustomSettings.config file and saw that the key 'WebServiceSSLEnabled' is set to true. I changed it to false and restarted the service. It got started.
Now when i open the URL http://im56:7047/DynamicsNAV/WS/Services in browser, it does not work.
The error it displays is not consistent. Some time it displays 'page not found error' whereas sometime it shows 'login failed when connecting to SQL Server im56'
I either case i am unable to test the webservice.
Regards,
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
Is the SQL Server running on the same machine as the servicetier/webservice listener?
You could add your customsettings.config in a code or quote here.
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.
Yes, the SQL Server is on the same machine as that of the service tier i.e.IM56
Here is the content of CustomSettings.config file:-
<?xml version="1.0" encoding="UTF-8"?>
<appSettings>
<!--
The network protocol used to access the database.
Valid options: Default, NamedPipes, Sockets
-->
<add key="NetType" value="Default"></add>
<!--
Name of the database server to connect to.
-->
<add key="DatabaseServer" value="IM56"></add>
<!--
Name of the database to connect to.
-->
<add key="DatabaseName" value="Demo Database NAV (6-0)"></add>
<!--
Name of the Microsoft Dynamics NAV Server instance to connect
to (for client) or listen on (for server).
-->
<add key="ServerInstance" value="DynamicsNAV"></add>
<!--
The listening TCP port for the Microsoft Dynamics NAV Server.
This is part of the server's URL.
Valid range: 1-65535
-->
<add key="ServerPort" value="7046"></add>
<!--
The listening HTTP port for the Microsoft Dynamics NAV
Business Web Services.
This is part of the web service's URL.
Valid range: 1-65535
-->
<add key="WebServicePort" value="7047"></add>
<!--
Turns on or off the https for Web Services
-->
<add key="WebServiceSSLEnabled" value="false"></add>
<!--
Maximum permitted size of a Web Services request, in kilobytes
-->
<add key="WebServicesMaxMsgSize" value="512"></add>
<!--
Maximum time in seconds a call from the client to the server
may take to return.
Time span format: [dd.]hh:mm:ss[.ff]
dd: days
hh: hours
mm: minutes
ss: seconds
ff: fractions of a second
Or "MaxValue" to indicate there is no timeout.
-->
<add key="OperationTimeout" value="MaxValue"></add>
<!--
The security services used to protect the client/server data stream.
Valid options: EncryptAndSign, Sign, None
-->
<add key="ProtectionLevel" value="EncryptAndSign"></add>
<!--
Maximum number of concurrent client calls that can be active on the
Microsoft Dynamics NAV Server. To disable this setting set the value
to "MaxValue".
-->
<add key="MaxConcurrentCalls" value="40"></add>
<!--
Sets the grace period within which the client can reconnect to a
running session.
Time span format: [dd.]hh:mm:ss[.ff]
dd: days
hh: hours
mm: minutes
ss: seconds
ff: fractions of a second
Or "MaxValue" to indicate there is no timeout.
-->
<add key="ClientReconnectPeriod" value="00:10:00"></add>
<!--
Threshold for when to start compressing data sets to avoid that they
consume prohibitive amounts of memory.
-->
<add key="CompressionThreshold" value="64"></add>
<!--
Sets the Metadata Provider cache size (in number in objects cached).
Set to 0 to disable cache.
-->
<add key="MetadataProviderCacheSize" value="150"></add>
<!--
Limits the size of files that can be uploaded in order to avoid out of memory errors. This value is in megabytes.
-->
<add key="MaxUploadSize" value="5"></add>
<!--
With the EnableDebugging flag set to true the Microsoft Dynamics NAV Server
will start with debugging mode enabled. This mode has three main functions:
1) Upon first connection by a RoleTailored Client all C# for that application
will be generated.
2) C# files will be persisted between server restarts.
3) Application Objects will be compiled with debug information.
-->
<add key="EnableDebugging" value="false"></add>
</appSettings>
Note that i am testing a codeunit web service.
Regards,
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
(that is of course if the WebServicePort is 7047, SSL is false and your instance name is DynamicsNAV)
should always return a list of what is exposed as web services
What do you have exposed as web services? (content of your web services table)
You could try to change database server to localhost instead of the computername - but else I am pretty much out of options.
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.
One mistake i found was that my Codeunit name was 'Test' and Web Service name i gave was 'Test Service'. According to the 'Walkthrough: Creating and Consuming a Codeunit Web Service' in C/SIDE Reference Guide, the Web Service name and Codeunit name is 'Letters'.
So i changed the name of my Web Service from 'Test Service' to 'Test'.
If this is your error - then it is not an error!
This is how it is supposed to look - it tells you which Services are available and where to find them.
You can copy the URL for the Codeunit/Test and see the discovery for that in a browser - looking like a lot of XML too - thats web services.
In order to use a codeunit Web Service you need to specify the company name like
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.
Comments
1. Is the Service running? (default installation leaves the Web Service Listener service as Start manually)?
2. Page and Codeunit in the URL are case sensitive - should be Page/MyCustomer - but this would give a different error I think.
3. Does http://localhost:7047/DynamicsNAV/WS/CR ... d/Services give any result?
It should list the available Services under that company - then we know that the Company Name is escaped correctly - and you should be able to copy and paste the URL from one of these services.
4. Does http://localhost:7047/DynamicsNAV/WS/Services give any result?
If this URL works and not the first - it points towards a wrong company name in the URL - what is the company name in clear text?
5. Which page number is exposed in the Web Service table as MyCustomer - and what is the page type (only Card and List can be exposed as Web Services)
One of these questions (in order of likelyhood) should bring you on the right track.
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.
I have tried the solution given by Freddy Kristiansen.
When i give the URL
http://localhost:7047/DynamicsNAV/WS/CR ... d/Services
It only shows the System services.
- <discovery xmlns="http://schemas.xmlsoap.org/disco/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<contractRef ref="http://localhost:7047/DynamicsNAV/WS/CRONUS_India_Ltd/SystemService" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
</discovery>
As I published a page and a codeunit..It doesnt display other services..as shown in the demo.
Kindly suggest
Try to attach a screenshot of your Web services table (Run the table from the Classic Client - and make a screen shot)
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.
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.
Thanx for your support
I use URL --> http://im56:7047/DynamicsNAV/WS/Services.
I have checked all pre-requisites and they are set properly.
Not sure what is going wrong.
When i start the Microsoft Dynamics NAV Business Services, it gets started and then stopped automatically with a warning message.
Regards,
Hemant
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
It would be interesting to see the screen shot - In the Web Services form (810) has this page been added to the table and is the Published box marked?
Test Lead
Microsoft Dynamics NAV
This posting is provided "AS IS" with no warranties, and confers no rights.
Test Lead
Microsoft Dynamics NAV
This posting is provided "AS IS" with no warranties, and confers no rights.
The service MicrosoftDynamicsNavWS failed to start. This could be caused by a configuration error. Detailed error information:HTTP could not register URL https://+:7047/DynamicsNAV/. Another application has already registered this URL with HTTP.SYS.
I then opened CustomSettings.config file and saw that the key 'WebServiceSSLEnabled' is set to true. I changed it to false and restarted the service. It got started.
Now when i open the URL http://im56:7047/DynamicsNAV/WS/Services in browser, it does not work.
The error it displays is not consistent. Some time it displays 'page not found error' whereas sometime it shows 'login failed when connecting to SQL Server im56'
I either case i am unable to test the webservice.
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
You could add your customsettings.config in a code or quote here.
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.
Here is the content of CustomSettings.config file:-
Note that i am testing a codeunit web service.
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
if the web service listener service is started
http://localhost:7047/DynamicsNAV/WS/Services
(that is of course if the WebServicePort is 7047, SSL is false and your instance name is DynamicsNAV)
should always return a list of what is exposed as web services
What do you have exposed as web services? (content of your web services table)
You could try to change database server to localhost instead of the computername - but else I am pretty much out of options.
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.
So i changed the name of my Web Service from 'Test Service' to 'Test'.
Now if i run http://localhost:7047/DynamicsNAV/WS/services, it displays below error
<discovery xmlns="http://schemas.xmlsoap.org/disco/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<contractRef ref="http://localhost:7047/DynamicsNAV/WS/SystemService" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<contractRef ref="http://localhost:7047/DynamicsNAV/WS/Codeunit/Test" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
</discovery>
Refer the attachment for snapshot of Web Service form.
So, whats going wrong is the mystery.
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
Test Lead
Microsoft Dynamics NAV
This posting is provided "AS IS" with no warranties, and confers no rights.
This is how it is supposed to look - it tells you which Services are available and where to find them.
You can copy the URL for the Codeunit/Test and see the discovery for that in a browser - looking like a lot of XML too - thats web services.
In order to use a codeunit Web Service you need to specify the company name like
http://localhost:7047/DynamicsNAV/WS/CRONUS_Internaional_Ltd/Codeunit/Testbut still - IE will just show the discovery, you need something that can consume the web services like InfoPath or Visual Studio.
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.
I have written a console application to consume/test the web service.
It works fine.
Thanks for your support.
Regards,
Hemant
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)