そののxmlns:NS1 =「http://thomas-bayer.com/blz/」Jaywayの残り-安心のXML supportを使用して、次のXMLで。Jaywayの残り-保証私は検証しようとしています
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:getBankResponse xmlns:ns1="http://thomas-bayer.com/blz/">
<ns1:details>
<ns1:bezeichnung>ABK-Kreditbank</ns1:bezeichnung>
<ns1:bic>ABKBDEB1XXX</ns1:bic>
<ns1:ort>Berlin</ns1:ort>
<ns1:plz>10789</ns1:plz>
</ns1:details>
</ns1:getBankResponse>
</soapenv:Body>
</soapenv:Envelope>
私はそれを理解し、
xmlns:ns1="http://thomas-bayer.com/blz/"
は @プレフィックスは @次の幹に一致する属性を返す必要があり
<ns1:getBankResponse
の属性です。
以下の全てがヌル戻ってきた、xmlString上記のSOAP応答XMLに等しいと仮定する:すべてのヘルプ
String nameSpace1 = given(xmlString).getString("[email protected]:ns1");
String nameSpace2 = given(xmlString).getString("[email protected]");
String nameSpace3 = given(xmlString).getString("[email protected]");
List<String> nameSpace = given(xmlString).get("Envelope.Body.getBankResponse[0][email protected]:ns1");
List<String> nameSpace = given(xmlString).get("Envelope.Body.getBankResponse[0][email protected]");
List<String> nameSpace = given(xmlString).get("Envelope.Body.getBankResponse[0][email protected]");
を大幅に理解されるであろう。
PS。安心できることは主にRESTful APIに関係していますが、SOAPをテストするために使用できることはわかっています。
ありがとうございます。ちょうど私が探していたもの。 – MikeJRamsey56