Skip to main content

Notifications

Microsoft Dynamics NAV forum
Unanswered

Using SOAP for Dynamics NAV Webservices with PHP

Posted on by Microsoft Employee

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

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans