Ibm midrange 我的RPGLE程序无法完全读取SOAP异常响应。我使用WSDL2RPG.sh生成C和RPG存根

Ibm midrange 我的RPGLE程序无法完全读取SOAP异常响应。我使用WSDL2RPG.sh生成C和RPG存根,ibm-midrange,rpgle,Ibm Midrange,Rpgle,我的RPGLE程序无法完全读取SOAP异常响应。程序正在部分读取它 下面是接收和记录的节目和响应的快照- If pThis_t.excOccurred = *On; // Error Code --> pThis_t.excCode Error Indicator --> pThis_t.excOccurred O@ErrDes = %Trim(pThis_t.excS

我的RPGLE程序无法完全读取SOAP异常响应。程序正在部分读取它

下面是接收和记录的节目和响应的快照-

If pThis_t.excOccurred  = *On;                                                
   // Error Code -->  pThis_t.excCode  Error Indicator --> pThis_t.excOccurred
   O@ErrDes  = %Trim(pThis_t.excString);                                      
   RGAERI = C#Y;                                                              
   RGAERC = pThis_t.excCode;                                                  
   RGAERD = %Trim(pThis_t.excString);                                         
   //O@ErrFlg = C#Y;                                                          
   O@ErrDes  = %Trim(RGAERD);                                                 
Endif;                                                                        
SOAP异常响应XML-

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Server</faultcode>
         <faultstring>request message schema validation error</faultstring>
         <detail>
            <ns2:SOAPServiceException xmlns:ns2="http://www.sampleservice.com/schema/services/xyz/v1">
               <errorCode>100</errorCode>
               <errorMessage>javax.xml.bind.MarshalException - with linked exception: [org.xml.sax.SAXParseException: cvc-pattern-valid: Value '(905)40&amp;-2468       ' is not facet-valid with respect to pattern '[0-9,\-,(,),X,x,.,+,\s+]+' for type 'PhoneType'.]</errorMessage>
            </ns2:SOAPServiceException>
         </detail>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>
如何读取完整的SOAP异常


关于

请求的消息不正确。因此,对Web服务的调用是错误的。这就是我从中得到的。网络服务未按预期格式化电话号码。感谢Danny的回复。出于测试目的,我故意输入了错误的值。问题在于SOAP错误(错误处理),当我的RPGLE程序和C/RPG存根没有完全拾取SOAP响应时,我得到了正确的SOAP异常。如果你能在这个问题上帮我的话。这是我用rpglewebservice所能做的。我可以在另一个问题中帮助RPG调用调用Web服务的java程序。需要查看您正在使用的过程的代码…您使用什么来解析SOAP消息?
 "AxisSoapException: SOAP fault occurred:  faultcode  : soap:Server faultstring: request message schema validation error faultactor :"