473,723 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NuSOAP WSDL problem

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->schemaTargetNa mespace=$ns;
$server->register('klan tgegevens', array('klantnr' => 'xsd:int'), array
('klantnaam' => 'xsd:string'), $ns);
function klantgegevens($ klantnr){
$dsn = ***; $user = ***; $passwd = ***;
$conn = odbc_connect($d sn,$user,$passw d,SQL_CUR_USE_O DBC);
$sql="SELECT SRONAM.NANAME FROM ***.A3DBFO01.SR ONAM SRONAM WHERE
SRONAM.NANUM=$k lantnr";
$result=odbc_ex ec($conn,$sql);
$klantnaam=odbc _fetch_array($r esult);
return new soapval('klantn aam','string',$ klantnaam);
}
$server->service($HTTP_ RAW_POST_DATA);
?>
Jul 17 '05 #1
0 2964

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2375
by: Unbreakable | last post by:
I am using the nusoap client and nusoap server without any problem. However, once I change the client to the excel, I am not sure how to call the nusoap server. Especially the nusoap server only generate the a SOAP message as follow instead of a WSDL file. So, my question is 1.) Can I use excel or .Net as a client to call the nusoap server?
5
5386
by: Mark C | last post by:
I have a memory allocation problem in PHP using NuSOAP and the built in XML parser. The code below is called in a loop and executed about 1900 times before it failed. I am using nusoap.php,v 1.76 2004/06/25 13:17:56 snichol Exp $. I am running PHP version 4.2.2 on RedHat 9.0 I presume I need to unallocated something other than the soapclient, but I'm nor sure what. This is the code that is called in the loop and the error message...
0
1682
by: Dom | last post by:
Where can I find resources and documentation about interoperability problems between nuSOAP PHP client and Apache Axis Server? Have you experienced problems in transmitting over SOAP (sending and receiving) between nuSOAP client and Axis Server: a) primitive types b) HashMap c) Object (defined in WSDL as ComplexType) = Java Class d) nested HashMap e) Array of Array or Array of HashMap or Array of Object (defined in WSDL as
6
21003
amine
by: amine | last post by:
Hello People, I created a WebService in .NET on my machine with following methode: <WebMethod(Description:="test")> _ Public Function sayHello(ByVal myName As String, ByVal myID As Integer) As String Return "Hello " & myName & " (" & myID & ")" End Function Web service works fine, I can access my function in .NET without problem.
7
3803
by: craig.keightley | last post by:
I have access to the following web service but always retreive the same error:- Array ( =soapenv:Server.userException =se.brodit.ws.InvalidUserException =Array ( =webserver
1
4143
by: tietram | last post by:
hi i also have some problem to access web api my api taking arguments as an array but the correct request is not generated my code is like this<?php set_time_limit(3*60); /* * $Id: wsdlclient1.php,v 1.3 2007/11/06 14:48:48 snichol Exp $ * * WSDL client sample. * * Service: WSDL * Payload: document/literal
1
9995
by: neoblitz | last post by:
Hi Guys, I'm very new to NuSoap. I'm able to call a webservice which actually returned me results.. But I'm having trouble to read the response or I simply don't understand how to read the response.. here is the code i've used to call the service. It returns a kind of big array so i'm so much lost inside it.. I would be grateful if someone help me out on reading the array values into variables so that i can do something depends on the result...
1
4007
by: Philluminati | last post by:
I've had a nightmare at work. I have a simple app makes a simple SOAP call to a webservice. It all worked fine but when we tried to deploy it on the live site there appears to be some version issues. I get this error: Fail: Unknown protocol. Only http and https are allowed. To solve it I think it would just be easier to rewrite my existing PHP code to use NuSoap rather than what I am currently using. Can someone help me change this...
2
8171
by: flydev | last post by:
Hello, I have very little knowledge when it comes to SOAP, but a developer I'm working with says it will make things easier when passing data to/from client software and the mySQL database. Anyhow, I created this SOAP server per examples and instructions on various websites, and the server appears to be functioning (Server). However, the client software developer says they are getting the "Schedule" object back empty, regardless of what argument...
0
8741
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9160
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9090
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6685
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5996
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4504
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3209
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2612
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.