NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Any ideas why this SOAP wizard generated code is not working


Joined: 15 Jun 2005
Posts: 46
Reply with quote
Hi,

I'm not familar with SOAP at all and used the wizzard to generate the following PHP code:


*******************************************************************************
// Nusoap library 'nusoap.php' should be available through include_path directive

/*
Version of Nusopa we use:

$Id: nusoap.php,v 1.95 2006/02/02 15:52:34 snichol Exp $

NuSOAP - Web Services Toolkit for PHP

Copyright (c) 2002 NuSphere Corporation
*/

require_once('nusoap.php');

// set the URL or path to the WSDL document
$wsdl = "http://ec.europa.eu/taxation_customs/vies/api/checkVatPort?wsdl";

// instantiate the SOAP client object
$soap = new soapclient($wsdl,"wsdl");

// get the SOAP proxy object, which allows you to call the methods directly
$proxy = $soap->getProxy();

// set parameter parameters (checkVat)
$parameters = array(countryCode=>"NL",vatNumber=>12345);

// get the result, a native PHP type, such as an array or string
$result = $proxy->checkVat($parameters);


/*

*******************************************************************************


After running this, $Result returns the following array:

faultcode -> ns1:Client.NoSOAPAction"
faultstring-> no SOAPAction header!"
detail ->

This is not what we expected. Does someone had any idea what could be wrong.


We use PHP version 5.0.4 and Apache version 20020903


Scubaticus.
View user's profileFind all posts by ScubaticusSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
faultstring-> no SOAPAction header!"


I'd recommend you to contact maintainers for http://ec.europa.eu/taxation_customs/vies/api/checkVatPort and ask them what they mean under SOAPAction header.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Any ideas why this SOAP wizard generated code is not working
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic