Archive

Archive for the ‘IIS’ Category

PHP NuSOAP to IIS .net webservice to AXAPTA Dynamics

August 22nd, 2011 No comments

Today I built a PHP frontend web service that connects to a .NET IIS webservice that I built some time ago via NuSOAP that connects to a AXAPTA dynamics business connector bridge service that I built at the same time as the IIS web service.

I should of really extended the IIS webservice in .NET and made that public but as we want to focus more on PHP I was required to bridge this in php.

The PHP service accepts XML as the request but is required to break certain elements from the XML to built to request to the IIS web service, also as part of the request to the IIS web service uses a XML request this needs to be parsed out.

So I’ve used a bit of Simple XML to parse the incoming XML to built the required request.

Also the NuSOAP response is an array but needs to be outputted as XML for the devices which call on it to use. So an Array to XML via simple xml is also required. Very simple, very long winded but the input and output is so easy.

Also the input and output needs to be written to timestamped log files for tracking.

I will need to do some serious testing tomorrow.

Categories: .NET, Axapta, Dynamics, IIS, NuSoap, PHP, Web service, XML Tags: