soapfault

    0热度

    1回答

    我正在使用合同优先方法使用JAX-WS发布Web服务。 WSDL中没有SOAP错误,但现有的Web服务会适当地引发错误异常。 我无法抛出类似的错误异常,因为我现在执行的服务方法要求添加throws子句。 我能找到this question作为相关的一个。

    -1热度

    1回答

    我使用的弹簧WS-2.3.1,同时为web服务客户端的某个时候我得到SoapFaultClientException像下面, <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Server</faultcode> <faultstring>There was a problem with the server s

    1热度

    1回答

    我正在使用JUnit和Mockito来测试我的SOAP Web服务是否正常处理SOAP错误,并且不会抛出任何不需要的例外情况。因此,直到现在,从下面的代码中可以看出,我只测试SOAPFaultException是否正在被抛出(当然是,我抛出了它)。我想知道如何检查接收SOAP错误时是否会引发其他异常。 也有什么办法模拟SOAP错误而不会引发异常(SOAPFaultException)? publi

    0热度

    1回答

    我只是想知道我是否可以举一个例子来处理Cilent端的Soap故障,主要是我如何捕获故障代码? 这是我在WCF侧有我的错 Throw New FaultException(Of String)("Value to large", New FaultReason("Reason: Value too large"), New FaultCode(23)) 正确? 但是,客户端的原因确实是正确的,

    0热度

    2回答

    我想将一些SOAP错误添加到我的JAX-WS Web服务中,但我不想更改WSDL模式的内容。据我所知,我将不得不使用annotation @WebFault来定义SOAP Fault,并在下一次构建时自动导致WSDL中的更改。有没有办法在不更改WSDL方案内容的情况下使用SOAP Faults?

    0热度

    1回答

    我正在调用第三方Web服务以获取用户提供的凭证详细信息。以下是我的Soap客户端请求。 $client = new \SoapClient($url, array("exception" => 0)); $auth = ' <wsse:Security SOAP-ENV:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/ws

    0热度

    1回答

    我不能在我的乱序变换的SOAPFault以JSON SOAP错误,请帮助。 这是SOAP响应: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server</faultc

    0热度

    1回答

    <soapenv:Fault xmlns:m="http://schemas.xmlsoap.org/soap/envelope/"> <faultcode>m:Server</faultcode> <faultstring>someFaultString</faultstring> <detail> <NS1:confirmIdentityErrorIn

    1热度

    1回答

    的Webservice我打电话回报的SOAPFault嵌入在<detail>元素XML - 这是它的外观在了SoapUI: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv

    0热度

    1回答

    我们目前在Jboss EAP 6.2上使用CXF 2.7.3时遇到了自定义SoapFault异常问题。 子码和它的价值,当我们发送自定义的SOAPFault不显示: 这是我们希望从CXF什么: <?xml version="1.0" encoding="UTF-8"?> <tns:Fault xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins