NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Declaring faults/exceptions


Joined: 18 Jul 2007
Posts: 1
Location: Richardson, TX
Reply with quote
I would like my service to declare a set of faults/exceptions each operation may raise (a la Java's "throws"), but I have yet to find a way to do this with NuSOAP. Is there something I'm missing, or is this not possible with NuSOAP?

Many thanks,
Scott Stebleton
View user's profileFind all posts by stebletonSend private message


Joined: 31 Jul 2007
Posts: 3
Reply with quote
You can stick something like this in the function that's been registered in the soap object

Code:
return new soap_fault('MyErrorCode','','My description about why this error was thrown','');
View user's profileFind all posts by gtaitSend private message
Declaring faults/exceptions
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