The SOAP method call is performed within a try - except block, which is generally good style, but here we do it specifically to catch a SOAP.faultType exception.
SOAP 方法调用是在 try - except 块中执行的,一般来说,这种方式比较好,但这里我们这样做只是捕捉 SOAP.faultType 异常。
From the SOAP client perspective, it's a good idea to wrap the SOAP call inside a try-catch block, so that SOAP faults like the one above can be caught and handled gracefully.
对于SOAP客户端来说,将这个SOAP调用封装在一个try - catch代码块中是很好的做法,这样类似于上面的SOAP错误就会被顺利地捕捉和处理。
For Web services, if SOAP is used, the internationalization context can be expressed as a SOAP header block.
如果Web服务使用SOAP,那么国际化上下文可以表示为SOAP标题块。
应用推荐