By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,841 Members | 840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,841 IT Pros & Developers. It's quick & easy.

NuSOAP WSDL problem

P: n/a
Hi,

Below is a basic webservice using the NuSOAP class. When I run the code to
register the service, I get the nice html page generated by nusoap,
offering a link to view the WSDL for my service. When I click it, php barfs
this :

Cannot modify header information - headers already sent by \nusoap.php on
line 2421.
Outputbuffering doesn't help.
Has any else experienced this ?

thx

Ward

<?php
require_once('../nusoap.php');
$ns='http://localhost/nusoap';
$server = new soap_server();
$server->configureWSDL('klantgegevens',$ns);
$server->wsdl->schemaTargetNamespace=$ns;
$server->register('klantgegevens', array('klantnr' => 'xsd:int'), array
('klantnaam' => 'xsd:string'), $ns);
function klantgegevens($klantnr){
$dsn = ***; $user = ***; $passwd = ***;
$conn = odbc_connect($dsn,$user,$passwd,SQL_CUR_USE_ODBC);
$sql="SELECT SRONAM.NANAME FROM ***.A3DBFO01.SRONAM SRONAM WHERE
SRONAM.NANUM=$klantnr";
$result=odbc_exec($conn,$sql);
$klantnaam=odbc_fetch_array($result);
return new soapval('klantnaam','string',$klantnaam);
}
$server->service($HTTP_RAW_POST_DATA);
?>
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.