web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Using SOAP for Dynamics NAV Webservices with PHP

(0) ShareShare
ReportReport
Posted on by

Hi guys,

i would like to create a debitor and an order with Laravel (PHP) and a Soapclient Wrapper https://github.com/artisaninweb/laravel-soap in Navision.

I can connect to SOAP "SalesOrder" and create a kind of order (without order positions oder items) with this code snippet in my controller:

        $this->soapWrapper->add('SalesOrder', function ($service) {
            $service
            ->wsdl(env('SOAP_URL',''))
            ->trace(true)         
            ->options([
                'login' => env('SOAP_USER',''),
                'password' => env('SOAP_PASSWORD','')
            ]);
        });  

        $paramsHeader = array('SalesOrder' => array (
                                                'Key' => '1233', 
                                                'Sell_to_Customer_No' => '25000', 
                                                'Order_Date' => '2018-11-28', 
                                                'Customer_Order_No' => '21233572',
                                                'Prices_Including_VAT' => 0,                                                                                          
                                                ));        

        $response = $this->soapWrapper->call('SalesOrder.Create', ['SalesOrder' => $paramsHeader]);

but i have to create a new debitor and an order with a lot of sales item lines (and i have no idea how to use soap api)

Thank you for any ideas and tips.

regards

Version Microsoft Dynamics CRM 2018

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans