NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
NuSoap and Wsdl


Joined: 30 May 2014
Posts: 1
Reply with quote
Hi,

I'm trying to create a webservice wot nusoap. But the problem is that de wsdl is not generated when i clicked
it. i recieve the error page below.

This page contains the following errors:

error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.

here is my code:

<?php

//call library
require ('service_functions.php');
require ('lib/nusoap.php');

//using soap_serverto create server object
$server = new nusoap_server();
$server->configureWSDL("ptm", "urn:PTMwebservice");

//register a function that works on server
$server->register("get_message",
array("your_name"=>'xsd:string'),
array("return"=>'xsd:strimg');


// create HTTP listener
// Get our posted data if the service is being consumed
// otherwise leave this data blank.
$POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA'])
? $GLOBALS['HTTP_RAW_POST_DATA'] : '';

// pass our posted data (or nothing) to the soap service
$server->service($POST_DATA);

exit();
?>
View user's profileFind all posts by orim01Send private message
NuSoap and Wsdl
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