none
How do I return a success and failure messages RRS feed

  • Question

  • I need return success messages and failure messages. 

    If validation is successful:

    <?xml version="1.0"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> 
      <env:Body>
    	<n:response xmlns:n="http://example.com/user"
    			 env:role="http://www.w3.org/2003/05/soap-envelope/role/next"
    			 env:mustUnderstand="true">
    		<n:id>123456</n:id>
    		<n:result>
                <n:signonResult>0</n:signonResult>
    		</n:result>
    	<n:response>
      </env:Body>
    </env:Envelope>
    If it is failure:
    <?xml version="1.0"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> 
      <env:Body>
    	<n:response xmlns:n="http://example.com/user"
    			 env:role="http://www.w3.org/2003/05/soap-envelope/role/next"
    			 env:mustUnderstand="true">
    		<n:error>
    			<n:code>##</n:code>
    			<n:message>Custom error msg</n:message>
    			<n:messageUser>Custom error msg</n:messageUser>
    		</n:error>
    		<n:id>123456</n:id>
    	<n:response>
      </env:Body>
    </env:Envelope>
    Anyone know of any examples to guide me?



    • Edited by juanchiy2k Thursday, March 26, 2015 4:10 PM Edit XML
    Thursday, March 26, 2015 3:24 PM

Answers

All replies