SOAP

Discuss everything related to ApPHP MVC Framework. All versions. Any questions related to the Framework developing or using should be posted to this forum.

Moderators: alexandrleonenko, alexmst

Jonathan
Newbie
Newbie
Posts: 7
Joined: Jul 16th, '13, 08:56

SOAP

Postby Jonathan » Jun 30th, '14, 06:37

Hello dear developers!
Interested in the question, whether added web service SOAP?

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

Re: SOAP

Postby administrator » Jul 1st, '14, 06:16

Currently it's not implemented, but we're planning to add it in the next version.

paragate
Master
Master
Posts: 151
Joined: Nov 13th, '14, 13:04
Location: Denmark, Odense

Re: SOAP

Postby paragate » Aug 19th, '16, 11:14

Seems there is an fine example on stackoverflow.com
http://stackoverflow.com/questions/7120 ... -with-curl

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

Re: SOAP

Postby administrator » Aug 21st, '16, 06:17

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'=>'...')));


Return to “ApPHP MVC Framework {developers/users}”