Re: [PHP] How to use wsdl files?

2012-08-30 Thread Matijn Woudt
On Thu, Aug 30, 2012 at 4:44 PM, Matijn Woudt  wrote:
> On Thu, Aug 30, 2012 at 2:57 PM, Michelle Konzack
>  wrote:
>> Hello Experts,
>>
>> I am coding an Online Shop and need to include a VAT validation for  the
>> Europe Community.  The Form can be found here:
>>
>> 
>>
>> However, there is a SOAP API:
>>
>> 
>>
>> but I do not understand, how I have to use it. I need it very simple and
>> a response of "TRUE" or "FALSE" plus maybe an ERROR CODE  is  enough.  I
>> would prefer to use a simple URL call and take the reponse to validate a
>> business customer.
>>
>> An help welcome.
>>
>> Thanks, Greetings and nice Day/Evening
>> Michelle Konzack
>>
>
> Hi Michelle,
>
> You could start by looking at the PHP SoapClient [1], which takes a
> URI to a WSDL descriptor as argument. You can enter the URL to the
> WSDL file there, like this:
> $client = new 
> SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl";);
>
> Now you need to know which function you want to call, let's say it's
> called SomeFunction, then you can do:
> $client->SomeFunction($paramA, $paramB);
>
> Hope this gets you started.
>
> - Matijn

And the URL I was referring to:
[1] http://nl.php.net/manual/en/soapclient.soapclient.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to use wsdl files?

2012-08-30 Thread Matijn Woudt
On Thu, Aug 30, 2012 at 2:57 PM, Michelle Konzack
 wrote:
> Hello Experts,
>
> I am coding an Online Shop and need to include a VAT validation for  the
> Europe Community.  The Form can be found here:
>
> 
>
> However, there is a SOAP API:
>
> 
>
> but I do not understand, how I have to use it. I need it very simple and
> a response of "TRUE" or "FALSE" plus maybe an ERROR CODE  is  enough.  I
> would prefer to use a simple URL call and take the reponse to validate a
> business customer.
>
> An help welcome.
>
> Thanks, Greetings and nice Day/Evening
> Michelle Konzack
>

Hi Michelle,

You could start by looking at the PHP SoapClient [1], which takes a
URI to a WSDL descriptor as argument. You can enter the URL to the
WSDL file there, like this:
$client = new 
SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl";);

Now you need to know which function you want to call, let's say it's
called SomeFunction, then you can do:
$client->SomeFunction($paramA, $paramB);

Hope this gets you started.

- Matijn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to use wsdl files?

2012-08-30 Thread Michelle Konzack
Hello Experts,

I am coding an Online Shop and need to include a VAT validation for  the
Europe Community.  The Form can be found here:



However, there is a SOAP API:



but I do not understand, how I have to use it. I need it very simple and
a response of "TRUE" or "FALSE" plus maybe an ERROR CODE  is  enough.  I
would prefer to use a simple URL call and take the reponse to validate a
business customer.

An help welcome.

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux
   Internet Service Provider, Cloud Computing


itsystems@tdnet Jabber  linux4miche...@jabber.ccc.de
Owner Michelle Konzack

Gewerbe Strasse 3   Tel office: +49-176-86004575
77694 Kehl  Tel mobil:  +49-177-9351947
Germany Tel mobil:  +33-6-61925193  (France)

USt-ID:  DE 278 049 239

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature