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错误就会被顺利地捕捉和处理。
Shown in Listing 2, demonstrates how to add a header block to an outgoing SOAP message. This method will.
signOut going(如清单2所示)演示了如何将一个头信息块添加到一个传出SOAP消息中。
应用推荐