Hello dear developers!
Interested in the question, whether added web service SOAP?
SOAP
Moderators: alexandrleonenko, alexmst
-
- Site Admin
- Posts: 6171
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: SOAP
Currently it's not implemented, but we're planning to add it in the next version.
Re: SOAP
Seems there is an fine example on stackoverflow.com
http://stackoverflow.com/questions/7120 ... -with-curl
http://stackoverflow.com/questions/7120 ... -with-curl
-
- Site Admin
- Posts: 6171
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: SOAP
It's already exists in current version.
See framework/helpers/CSoap.php
USAGE:
----------
1. Standard call CSoap::config() + CSoap::call()
2. Simple call with default parameters CSoap::call()
EXAMPLE:
------------------
<SOAP-ENV:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/>
<SOAP-ENV:Body>
<checkVat xmlns="urn:ec.europa.eu:taxud:vies:services:checkVat:types">
<countryCode>MS</urn:countryCode>
<vatNumber>TESTVATNUMBER</urn:vatNumber>
</checkVat>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
1) Standard
CSoap::config(array('namespace'=>'SOAP-ENV', 'operation'=>'checkVat', 'wsdl'=>true));
CSoap::call('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl', array('parameters'=>array('countryCode'=>'BG', 'vatNumber'=>'...')));
2) Simple
CSoap::call('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl', array('checkVat'=>array('countryCode'=>'BG', 'vatNumber'=>'...')));
See framework/helpers/CSoap.php
USAGE:
----------
1. Standard call CSoap::config() + CSoap::call()
2. Simple call with default parameters CSoap::call()
EXAMPLE:
------------------
<SOAP-ENV:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/>
<SOAP-ENV:Body>
<checkVat xmlns="urn:ec.europa.eu:taxud:vies:services:checkVat:types">
<countryCode>MS</urn:countryCode>
<vatNumber>TESTVATNUMBER</urn:vatNumber>
</checkVat>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
1) Standard
CSoap::config(array('namespace'=>'SOAP-ENV', 'operation'=>'checkVat', 'wsdl'=>true));
CSoap::call('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl', array('parameters'=>array('countryCode'=>'BG', 'vatNumber'=>'...')));
2) Simple
CSoap::call('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl', array('checkVat'=>array('countryCode'=>'BG', 'vatNumber'=>'...')));