Hi everyone, I'm sending a file to a Rest WebService, in this way: HttpWebRequest := HttpWebRequest.Create('http://eshop.xxxxx-eu.com/ws/api/rest'); HttpWebRequest.Method := 'POST'; HttpWebRequest.ContentType('application/x-www-form-urlencoded'); postString := STRSUBSTNO('json=%1',pJson); StreamWriter := StreamWriter.StreamWriter(HttpWebRequest.GetRequestStream); StreamWriter.Write(postString); StreamWriter.Close; StreamWriter.Dispose; HttpWebRequest.GetResponse; But I'mn getting an error in the WebResposne, becasue the server is not responding anything. How can i "run" the request without expecting any response? Thank you very much
↧
Forum Post: HTTp to REST without response
↧
Forum Post: Backorder: status pending invoicing
Hello, I am quite new user of Navision. really often I have backorders with status Pending invoicing. For example, the order left the warehouse and there is a registered packing list in the system, but some of the items were not available and in orders there is back order with status Pending invoicing. What is going to happen if I will delete it? the order (items) that previously left the warehouse will be invoiced (there is the packing list) or everything, the order and back order will be deleted because of removing back order pending to invoice? Hope I explained it in clear way. Thank you.
↧
↧
Forum Post: RE: Archive Sales Blanket Orders?
Not standard, but it is a very same feature to develop :-)
↧
Forum Post: RE: HTTp to REST without response
And what does the error message look like? In a situation like this, when a client does not receive any response from the server, I would look for a communication error in the first place. Either the server does not receive the request, or the client does not get the response. HttpWebRequest doesn't support such "deaf" requests, because it's one of the basic requirements of the HTTP protocol that the sever must send a response. It may not contain a body, but at least the header with a status code must be sent back to the client.
↧
Forum Post: RE: HTTp to REST without response
THnaks for your answer Alexasnder. THe issue is that I'm sure that the request is correct, because the provider tells me that they are receibing the jSOn. The issue is that the service isn't "prepared" to return any response, but as you've said, it's a basic requirement of the HTTP protocol, so they should repair that, am I right?
↧
↧
Forum Post: RE: HTTp to REST without response
And how should it be prepared to respond? I'm afraid that "not prepared" in this case means that it is non-operational. RFC on the HTTP protocol states that the server sends the response after processing the request, and the client must interpret the status code: https://tools.ietf.org/html/rfc2616#section-6 Or otherwise, how can you be sure that your request is received and processed, if you don't receive any confirmation?
↧
Forum Post: RE: HTTp to REST without response
Yes, I'm sure because I can see the log of the webService, and I see that there is processing the jSon I'm sending. The issue is that the provider has the service let's say, "strange". I'll explain myself. Basically, they are sending a response, but when the jSon is fully processed. If the jSon is small, there is no problem. But if the jSon is wrong, 2 events are happening: 1: Nav get a timeout error because we haven't received any response yet 2: Also the webService is having an internal error. So, the provider is trying to send a response at the moment they receive the the jSon, doesn't matter if it is still processing it. This is the correct way to work.
↧
Forum Post: RE: HTTp to REST without response
[quote userid="200378" url="~/nav/f/developers/96782/http-to-rest-without-response/502927"]Yes, I'm sure because I can see the log of the webService, and I see that there is processing the jSon I'm sending.[/quote] I did not want to insert my 5 cents, but could you answer for yourself - if you see Log for webService WHY you can't receive any Reason Code xxx (e.g. 401 or ..) answer? If you prepare the right request, sent it and Service received it you should receive the answer. P.S. TO be honest, I don't understand why did you use the StreamWriter for HttpWebRequest..I plan to be at home on weekend and if you have not to find the answer, I will send my version (I did request|responce handling for NAV 2016)
↧
Forum Post: Integration of App Monetization using Stripe API
Hello, I am trying to integrate the App monetization with BC app. By using the video reference but i am getting the below error. Error: [2019-05-14 19:45:52.57] The request for path /BC130/dev/apps?SchemaUpdateMode=recreate failed with code 422. Reason: Could not install the extension App Monetization Demo on tenant default due to the following error: Could not find JsonToken $.metadata.level Thanks in Advance, Sainath.
↧
↧
Forum Post: RE: HTTp to REST without response
Answering to your question: 1: I can see the log with the filezilla, not with NAV. That's how I know that the platform is processing the jSon file. And I don't receive answer in case the jSon is long, because the server is sending the answer when the jSon is fulkly processed, and NAV get a timeout. 2: I'm using the streamwritter because it was the only way I found to send the json into a variable called "json", system requirements.. Probably isn't the best way to solve, but it works...
↧
Forum Post: RE: HTTp to REST without response
[quote userid="200378" url="~/nav/f/developers/96782/http-to-rest-without-response/502929"] I'm using the streamwritter because it was the only way I found to send the json into a variable called "json", system requirements.. Probably isn't the best way to solve, but it works...[/quote] I'm preparing formatted JSON without this DotNet component.. but I'm "out of office" now.
↧
Forum Post: RE: HTTp to REST without response
I'm using NAV2018, may be that will answer to a few doubts.. .
↧
Forum Post: Installation of Dynamics 365: Registry key not found error
I am getting below error when trying to install D365BC, any help suggestion to get rid of this error. Id = 'IISASPNET45Installed', Registry value not found. Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = 'ASPNET45' RegistrySearch: Id = 'IISNETFXInstalled', searching for registry key value. Id = 'IISNETFXInstalled', Registry value not found. Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = 'NetFxExtensibility' RegistrySearch: Id = 'IISNETFX45Installed', searching for registry key value. Id = 'IISNETFX45Installed', Registry value not found. Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = 'NetFxExtensibility45' RegistrySearch: Id = 'IISISAPEXInstalled', searching for registry key value. Id = 'IISISAPEXInstalled', Registry value not found. Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = 'ISAPIExtensions' RegistrySearch: Id = 'HttpActivationInstalled', checking registry key existence. Id = 'HttpActivationInstalled', Key = 'SYSTEM\CurrentControlSet\Services\WAS', Exists = '0' RegistrySearch: Id = 'IISISAPIFIInstalled', searching for registry key value. Id = 'IISISAPIFIInstalled', Registry value not found. Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = 'ISAPIFilter' RegistrySearch: Id = 'IISREQSTFIInstalled', searching for registry key value. Id = 'IISREQSTFIInstalled', Registry value not found. Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = 'RequestFiltering' RegistrySearch: Id = 'IISSTATICInstalled', searching for registry key value. Id = 'IISSTATICInstalled', Registry value not found. Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = 'StaticContent' RegistrySearch: Id = 'WebComponentsPrerequisitesInstalled', searching for registry key value. Id = 'WebComponentsPrerequisitesInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\Microsoft Dynamics NAV\140\Web Components Prerequisites' RegistrySearch: Id = 'IdentityFoundationInstalled', checking registry key existence. Id = 'IdentityFoundationInstalled', Key = 'SOFTWARE\Microsoft\Windows Identity Foundation\Setup\v3.5', Exists = '1' RegistrySearch: Id = 'IISAspNetCoreModuleInstalled', searching for registry key value. Id = 'IISAspNetCoreModuleInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\IIS Extensions\IIS AspNetCore Module' Configuring package. Id = 'ARP' MSI log file set to: C:\Users\evs\AppData\Local\Temp\setup.wix.msi.15.log Done configuring package. Id = 'ARP' ReturnCode = 0 Configuring package. Id = 'DotNetFx472'
↧
↧
Forum Post: nav 365
Hello , where I find the 365 for navision? I just found for dynamcis ax as finance and operation by dlp and partner source i can access this url https://d365try-2015.trial.operations.dynamics.com/namespaces/4959b343-2091-48bf-97a6-fb331987aceb/?mode=trial&cmp=012&mi=SalesOrderProcessingWorkspace and about navision 365? anyone can help me ? regards angelo amaral
↧
Forum Post: RE: nav 365
in this page i dont found the option to navision https://trials.dynamics.com/Dynamics365/Signup/BusinessCentral
↧
Blog Post: Dynamics 365 Business Central: direct extensions upload to a sandbox environment
Do you remember this idea? I’ve suggested it last year because in my opinion one of the noisy things related to Dynamics 365 Business Central sandbox environments was the lack of a direct upload of an .app file (manual deployment of an extension). I think that this is a need for developers, but also for consultants and customers that want to test an app before making it into production (sharing a PTE app file with your consultants is more easy than instruct them to open Visual Studio Code or Powershell). As you can see from the above link, the feature is now implemented and released with Dynamics 365 Business Central platform 14.0 . I’ve decided to write this quick post because I see that the release of this feature is actually not known for many. Now, if you go to your sandbox environment and select the Extensions Management page, you can see this action: This is the same button that you have on a production tenant. You can manually upload a .app file and test it on your sandbox now, without deploying it from Visual Studio Code. Microsoft is always listening and open to suggestions, remember…
↧
Forum Post: RE: HTTp to REST without response
Ok, so the server does respond after all, and it is the timeout on large messages that is the issue. Maybe all you need is increase timeout on the HttpWebRequest? https://docs.microsoft.com/en-us/dotnet/api/system.net.httpwebrequest.timeout?view=netframework-4.8 Or else, use asynchronous request and response.
↧
↧
Forum Post: RE: Business central API v1.0 vs API beta
It's like the dimension of ledger entries is now also available in the beta endpoint. And v1.0 endpoint is now working also
↧
Forum Post: Shown Error while using preview posting function on Sales Order -Microsoft Dynamics NAV2016
Microsoft Dynamics NAV --------------------------- The transaction cannot be completed because it will cause inconsistencies in the G/L Entry table. Check where and how the CONSISTENT function is used in the transaction to find the reason for the error. Contact your system administrator. Tables can be marked as inconsistent during comprehensive tasks, such as posting. This prevents data from being updated incorrectly. --------------------------- OK ---------------------------
↧
Forum Post: Dynamics BC task scheduler is only running once
I'm trying to run a Dynamics 365 BC CU2 service with task scheduler turned on. The task-scheduler is only running one's. During this first run the tasks are executed, but it will not run tasks anymore that are scheduled for a later time. The windows log doesn't show any errors. Does anyone have same experience and how to solve this problem, Thanks in advance for suggestions. Regards, Nick Lenting
↧