Skip to main content
deleted 43 characters in body
Source Link
sv3n
  • 11.7k
  • 7
  • 41
  • 73

Example For PHP SOAP Client CALL For Magento 2 : Change your magento path , service name and accecs tocken in place of key after word 'Barear'

$request = new SoapClient(
    'http://magento2.ce/index.php/soap/? wsdl&services=foggylineSliderSlideRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
                'http' => array(
                    'header' => 'Authorization: Bearer pk8h93nq9cevaw55bohkjbp0o7kpl4d3')
            )
        )
    )
);
$response = $request-> foggylineSliderSlideRepositoryV1GetById(array('slideId'=>1));

If you magento 2 with having order in database than this will shows you detail of order having id 1 because salesOrderRepositoryV1 is default api provided by magento 2 , for more default apis : http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

$request = new SoapClient(
    'http://192.168.0.54/magento20sample/index.php/soap/default?wsdl&services=salesOrderRepositoryV1',
            array(
                'soap_version' => SOAP_1_2,
                'stream_context' => stream_context_create(array('http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox')
               'http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox')                               
                ))
            )
        );
 
        $response = $request->SalesOrderRepositoryV1Get(array('id' => 1));

hope this will help you ..

Example For PHP SOAP Client CALL For Magento 2 : Change your magento path , service name and accecs tocken in place of key after word 'Barear'

$request = new SoapClient(
    'http://magento2.ce/index.php/soap/? wsdl&services=foggylineSliderSlideRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
                'http' => array(
                    'header' => 'Authorization: Bearer pk8h93nq9cevaw55bohkjbp0o7kpl4d3')
            )
        )
    )
);
$response = $request-> foggylineSliderSlideRepositoryV1GetById(array('slideId'=>1));

If you magento 2 with having order in database than this will shows you detail of order having id 1 because salesOrderRepositoryV1 is default api provided by magento 2 , for more default apis : http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

$request = new SoapClient('http://192.168.0.54/magento20sample/index.php/soap/default?wsdl&services=salesOrderRepositoryV1',
            array(
                'soap_version' => SOAP_1_2,
                'stream_context' => stream_context_create(array('http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox')
                    )                               
                )
            )
        );
 
        $response = $request->SalesOrderRepositoryV1Get(array('id' => 1));

hope this will help you ..

Example For PHP SOAP Client CALL For Magento 2 : Change your magento path , service name and accecs tocken in place of key after word 'Barear'

$request = new SoapClient(
    'http://magento2.ce/index.php/soap/? wsdl&services=foggylineSliderSlideRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
            'http' => array(
                'header' => 'Authorization: Bearer pk8h93nq9cevaw55bohkjbp0o7kpl4d3')
        ))
    )
);
$response = $request-> foggylineSliderSlideRepositoryV1GetById(array('slideId'=>1));

If you magento 2 with having order in database than this will shows you detail of order having id 1 because salesOrderRepositoryV1 is default api provided by magento 2 , for more default apis : http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

$request = new SoapClient(
    'http://192.168.0.54/magento20sample/index.php/soap/default?wsdl&services=salesOrderRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
            'http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox')
        ))
    )
);
$response = $request->SalesOrderRepositoryV1Get(array('id' => 1));

hope this will help you ..

added 705 characters in body
Source Link

Example For PHP SOAP Client CALL For Magento 2 : Change your magento path , service name and accecs tocken in place of key after word 'Barear'

$request = new SoapClient(
    'http://magento2.ce/index.php/soap/? wsdl&services=foggylineSliderSlideRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
                'http' => array(
                    'header' => 'Authorization: Bearer pk8h93nq9cevaw55bohkjbp0o7kpl4d3')
            )
        )
    )
);
$response = $request-> foggylineSliderSlideRepositoryV1GetById(array('slideId'=>1));

If you magento 2 with having order in database than this will shows you detail of order having id 1 because salesOrderRepositoryV1 is default api provided by magento 2 , for more default apis : http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

$request = new SoapClient('http://192.168.0.54/magento20sample/index.php/soap/default?wsdl&services=salesOrderRepositoryV1', array( 'soap_version' => SOAP_1_2, 'stream_context' => stream_context_create(array('http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox') )
) ) );

$request = new SoapClient('http://192.168.0.54/magento20sample/index.php/soap/default?wsdl&services=salesOrderRepositoryV1',
            array(
                'soap_version' => SOAP_1_2,
                'stream_context' => stream_context_create(array('http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox')
                    )                               
                )
            )
        );

        $response = $request->SalesOrderRepositoryV1Get(array('id' => 1));

hope this will help you ..

Example For PHP SOAP Client CALL For Magento 2 : Change your magento path , service name and accecs tocken in place of key after word 'Barear'

$request = new SoapClient(
    'http://magento2.ce/index.php/soap/? wsdl&services=foggylineSliderSlideRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
                'http' => array(
                    'header' => 'Authorization: Bearer pk8h93nq9cevaw55bohkjbp0o7kpl4d3')
            )
        )
    )
);
$response = $request-> foggylineSliderSlideRepositoryV1GetById(array('slideId'=>1));

If you magento 2 with having order in database than this will shows you detail of order having id 1 because salesOrderRepositoryV1 is default api provided by magento 2 , for more default apis : http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

$request = new SoapClient('http://192.168.0.54/magento20sample/index.php/soap/default?wsdl&services=salesOrderRepositoryV1', array( 'soap_version' => SOAP_1_2, 'stream_context' => stream_context_create(array('http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox') )
) ) );

    $response = $request->SalesOrderRepositoryV1Get(array('id' => 1));

hope this will help you ..

Example For PHP SOAP Client CALL For Magento 2 : Change your magento path , service name and accecs tocken in place of key after word 'Barear'

$request = new SoapClient(
    'http://magento2.ce/index.php/soap/? wsdl&services=foggylineSliderSlideRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
                'http' => array(
                    'header' => 'Authorization: Bearer pk8h93nq9cevaw55bohkjbp0o7kpl4d3')
            )
        )
    )
);
$response = $request-> foggylineSliderSlideRepositoryV1GetById(array('slideId'=>1));

If you magento 2 with having order in database than this will shows you detail of order having id 1 because salesOrderRepositoryV1 is default api provided by magento 2 , for more default apis : http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

$request = new SoapClient('http://192.168.0.54/magento20sample/index.php/soap/default?wsdl&services=salesOrderRepositoryV1',
            array(
                'soap_version' => SOAP_1_2,
                'stream_context' => stream_context_create(array('http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox')
                    )                               
                )
            )
        );

        $response = $request->SalesOrderRepositoryV1Get(array('id' => 1));

hope this will help you ..

added 705 characters in body
Source Link

Example For PHP SOAP Client CALL For Magento 2 : Change your magento path , service name and accecs tocken in place of key after word 'Barear'

$request = new SoapClient(
    'http://magento2.ce/index.php/soap/? wsdl&services=foggylineSliderSlideRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
                'http' => array(
                    'header' => 'Authorization: Bearer pk8h93nq9cevaw55bohkjbp0o7kpl4d3')
            )
        )
    )
);
$response = $request-> foggylineSliderSlideRepositoryV1GetById(array('slideId'=>1));

If you magento 2 with having order in database than this will shows you detail of order having id 1 because salesOrderRepositoryV1 is default api provided by magento 2 , for more default apis : http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

$request = new SoapClient('http://192.168.0.54/magento20sample/index.php/soap/default?wsdl&services=salesOrderRepositoryV1', array( 'soap_version' => SOAP_1_2, 'stream_context' => stream_context_create(array('http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox') )
) ) );

    $response = $request->SalesOrderRepositoryV1Get(array('id' => 1));

hope this will help you ..

Example For PHP SOAP Client CALL For Magento 2 : Change your magento path , service name and accecs tocken in place of key after word 'Barear'

$request = new SoapClient(
    'http://magento2.ce/index.php/soap/? wsdl&services=foggylineSliderSlideRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
                'http' => array(
                    'header' => 'Authorization: Bearer pk8h93nq9cevaw55bohkjbp0o7kpl4d3')
            )
        )
    )
);
$response = $request-> foggylineSliderSlideRepositoryV1GetById(array('slideId'=>1));

hope this will help you ..

Example For PHP SOAP Client CALL For Magento 2 : Change your magento path , service name and accecs tocken in place of key after word 'Barear'

$request = new SoapClient(
    'http://magento2.ce/index.php/soap/? wsdl&services=foggylineSliderSlideRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
                'http' => array(
                    'header' => 'Authorization: Bearer pk8h93nq9cevaw55bohkjbp0o7kpl4d3')
            )
        )
    )
);
$response = $request-> foggylineSliderSlideRepositoryV1GetById(array('slideId'=>1));

If you magento 2 with having order in database than this will shows you detail of order having id 1 because salesOrderRepositoryV1 is default api provided by magento 2 , for more default apis : http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

$request = new SoapClient('http://192.168.0.54/magento20sample/index.php/soap/default?wsdl&services=salesOrderRepositoryV1', array( 'soap_version' => SOAP_1_2, 'stream_context' => stream_context_create(array('http'=> array('header' => 'Authorization: Bearer w9vqx2uyenkbvbim6mwochwapq714yox') )
) ) );

    $response = $request->SalesOrderRepositoryV1Get(array('id' => 1));

hope this will help you ..

added 48 characters in body
Source Link
7ochem
  • 7.6k
  • 14
  • 52
  • 80
Loading
Source Link
Loading