SST SOAP-Exception not valid coded in VA 8.03?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SST SOAP-Exception not valid coded in VA 8.03?

bonndias
In our WebServices a lot of attributes are defined like this:
<xsd:element name="anElementName" type="xsd:decimal"/>

A consumer of our WebService sent a request which included a line like this:
            <anElementName>1000.12345678901234567890123456789</anElementName>


This is the answer generated by SST:

<SOAP-ENV:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault xsi:type="SOAP-ENV:Fault">
         <faultcode xsi:type="xsd:QName">Server</faultcode>
         <faultstring xsi:type="xsd:string">Precision exceeds the maximum</faultstring>
         <detail xsi:type="xsd:string">Fault Occured at: (30.09.2011 08:41:25)
Location nil
--- Fault Detail ---
'Precision exceeds the maximum'</detail>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

A consumer of our WebService says, this is not a correct. The Fault should be coded like this, with an 'SOAP-ENV' namespace prefix to the 'Server':
      <SOAP-ENV:Fault xsi:type="SOAP-ENV:Fault">
         <faultcode xsi:type="xsd:QName">SOAP-ENV:Server</faultcode>
         <faultstring xsi:type="xsd:string">Precision exceeds the maximum</faultstring>
         <detail xsi:type="xsd:string">Fault Occured at: (30.09.2011 08:41:25)
Location nil
--- Fault Detail ---
'Precision exceeds the maximum'</detail>
      </SOAP-ENV:Fault>

Being not that sure what's right or wrong any suggestions are welcome.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/va-smalltalk/-/jcTOUWuVucYJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/va-smalltalk?hl=en.