From: "Oliver M. Bolzer" Date: 2003-11-11T23:14:39+09:00 Subject: WSDL: Only one fault per operation? Hi! I'm currently building a simple request-response style webservice using SOAP4R and describing it in WSDL, so that it can easily be used from multiple langages. I was wondering how best I should describe the exceptions my methods will be raising. First, I defined two compexType's that look like what SOAP4R actually throws. and then, defined each of them as a message. Finally I bound the two messages to my operation with the element The AuthenticationError and AuthorizationError classdefs are generated according to the type-definition (naturally, similart to Ruby's Exception class) but using the XML-code above, only AuthorizationError inherits from StandardError, AuthenticationError doesn't. If I swap the two tags above, only AuthorizationError inherits but AuthenticationError doesn't. Looking at SOAP4R 1.5.0's wsdl/operation.rb, it seems that it only supports one fault per operation, overriding earlier s with later occuring ones in WSDL::Operation#parse_element(). But the WSDL 1.1 schema states that an can have multiple . ... .... .... A bug in SOAP4R 1.5.0 ? Or I might be misunderstanding something. Or is there any recommended/proper way to declare the exceptions that my SOAP4R-service will raise in WSDL, in a langage-independent way ? -- Oliver M. Bolzer oliver@gol.com GPG (PGP) Fingerprint = 621B 52F6 2AC1 36DB 8761 018F 8786 87AD EF50 D1FF