I wanted to create a one-way method for wcf service. Everything is ok unless I want to return fault message - if any.
I am using wscf blue code generator for wsdl and contract files.
In wsdl operation element I have only 'Input' and 'Fault' child elements. When I run the service i got the information that cannot declare fault message in one-way communication and .. one of the solutions is to set one-way to false .. what I did and well it works ok. If error occurs I get the message.
However I am wondering if I broke the web service/wsdl creation rules ... Because from wsdl service schema generator creates for me one-way communication (set to 'true') and other in other programming languages' generators would probably do the same ...
So Is it correct what i Did? How can I change wsdl so that the generator could create the code appropriately?
If in theory I cannot use fault in one-way communication then Do I need extra structure on response to return any error?
Thanks!