Service Reference
-
Connecting to NAV Web Services from the Cloud–part 5 out of 5
If you haven’t already read part 4 (and the prior parts) you should do so here, before continuing to read this post. In this post, I am going to create a small Windows Phone 7 application, which basically will be a phone version of the sidebar gadgets from this post. When we are done, your Windows Phone 7 will look like: During the other posts, I have been describing how to make the Proxy and one way of securing this....
-
Connecting to NAV Web Services from the Cloud–part 4 out of 5
If you haven’t already read part 3 you should do so here, before continuing to read this post. By now you have seen how to create a WCF Service Proxy connected to NAV with an endpoint hosted on the Servicebus (Windows Azure AppFabric). By now, I haven’t written anything about security yet and the Proxy1 which is hosted on the Servicebus is available for everybody to connect to anonymously. In the real world, I cannot imagine a lot of scenarios...
-
Web Services Infrastructure and how to Create an Internal Proxy
I am NOT an expert in how to setup a secure network and I do NOT know a lot about firewalls, DMZ setup and all of these things, but I have seen a lot in my 25 years of working with computers and the following (absolutely non-exhaustive) gives a good picture of a common network situation of companies, who wants to interact with customers and partners through Web Applications and/or Web Services. DMZ can be at the customer site or...
-
Connecting to NAV Web Services from Silverlight 3
Please read this post to get a brief explanation of the scenario I will implement in Silverlight. Yes, yes – I know it isn’t a fancy graphical whatever as Silverlight should be, but to be honest – I would rather do something crappy on purpose than trying to do something fancy and everybody would find it crappy anyway:-) Getting started with Silverlight http://silverlight.net/getstarted – is your friend. Go to the web site and click this button: Or click the image...
-
Logging the XML generated from .net or received from NAV WS
When working with Web Services using languages who doesn’t natively have Web Services support (like Javascript and NAV self) you have to create a SOAP envelope yourself in the correct format. Of course you can do so by looking at the WSDL, understanding SOAP and using theory – or… – you can create a small C# application, invoke the Web Service you want to and see what XML .net creates for this. You can also see what XML you get...
-
Connecting to NAV Web Services from Visual Basic .net using Service Reference
This post is really just a Visual Basic version of this post and this post combined, please read those posts before continuing this post. As described in the other posts, there are two ways to work with Service References – one is to keep the configuration in a .config file and the other is to do everything from code. Using the .config file First I create a Visual Basic Console application and add the two service references as explained in...
-
Connecting to NAV Web Services from C# using Service Reference (code version)
You should read the post about connecting to NAV Web Services from C# using Service Reference (config file version) before continuing here. Code is king As you saw in the other post, the config file was pretty complicated and although it is editable by hand and as such could be modified at installtime or whatever, I actually prefer to capture a number of these settings in code and only have very specific values in a config file (like f.ex. the...
-
Connecting to NAV Web Services from C# using Service Reference (config file version)
Prerequisites Please read this post to get a brief explanation of the scenario I will implement in C# using Web References. For C# we can leave the Service Tier running Negotiate or we can use Ntlm as PHP and Java. In this example I will assume that the Service Tier is running SPNEGO (which is the default) BTW. Basic knowledge about C# is required to understand the following post:-) Version and download I am using Visual Studio 2008 professional with...



