NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Please help!


Joined: 02 Nov 2006
Posts: 2
Reply with quote
Hi, I am having the same problem and I can't disable wsdl as I needed it for addComplexType, does anyone has an alternative solution?
View user's profileFind all posts by yukisanSend private message


Joined: 29 Jun 2006
Posts: 20
Reply with quote
Hi,

what do you mean? WSDL is not needed for the service to RUN properly. It is only needed to tell a client how to access the service correctly. In my case WSDL is only needed when there are changes made in the structure or new services are created. Then the client is built automatically from the WSDL. You don't "need WSDL for addComplexType".
I solved it this way...
Code:

$server = new soap_server();

// WITH WSDL...   

if ( isset($_GET['wsdl']) ) {
   $server -> configureWSDL('example', 'urn:example');
   
   // include WSDL-type definitions & register WSDL functions
   require_once('soap_wsdl_types.php');
}   

// WITHOUT WSDL
else {
   $server -> register('addTransaction');
   $server -> register('getInventories');
   $server -> register('getItems');
   (...)
}


Do you get the idea?
View user's profileFind all posts by Doc OlsonSend private message


Joined: 02 Nov 2006
Posts: 2
Reply with quote
addComplexType is used for creating self-defined data structures, see example here, I've tried it myself and it works perfectly until I hit this "socket read of headers timed out" error
View user's profileFind all posts by yukisanSend private message
socket read of headers timed out
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 2 of 2  

  
  
 Reply to topic