0
我一直在使用XSLT將xml轉換爲html,直到現在,我必須將Soap Xml響應轉換爲相同的輸出,而且我似乎無法找到調用節點並使用它們。 XML version here。問題是,當我嘗試使用XSLT改變或多或少類似的SOAP響應,並想辦法得到這個工作要像上面提到的XML例子使用soap,xml和XSLT
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ProcessRequestTrans43Response xmlns="https://secure.transunion.co.za/TUBureau">
<ProcessRequestTrans43Result>
<RawData />
<ResponseStatus>Success</ResponseStatus>
<ProcessingStartDate>2015-12-21T10:37:09.6260543+02:00</ProcessingStartDate>
<ProcessingTimeSecs>1.6709999999999998</ProcessingTimeSecs>
<UniqueRefGuid>f3e76769-5b1f-44ae-82ff-3c7f96f4fd7a</UniqueRefGuid>
<AddressNA08>
<AddressNA08>
<ConsumerNo>645390100</ConsumerNo>
<InformationDate>20151118</InformationDate>
<Line1>52 CORLETT DR</Line1>
<Line2>WANDERERS OFFICE PARK</Line2>
<Suburb>ILLOVO</Suburb>
<City>JOHANNESBURG</City>
<PostalCode>2196</PostalCode>
<ProvinceCode>GP</ProvinceCode>
<Province>GAUTENG</Province>
<AddressPeriod>00</AddressPeriod>
<OwnerTenant />
<AddressChanged>N</AddressChanged>
</AddressNA08>
<AddressNA08>
<ConsumerNo>645390100</ConsumerNo>
<InformationDate>20120109</InformationDate>
<Line1>MABETSHE ADMIN AREA</Line1>
<Line2>MTHATHA</Line2>
<Suburb />
<City>UMTATA</City>
<PostalCode>5100</PostalCode>
<ProvinceCode>EC</ProvinceCode>
<Province>EASTERN CAPE</Province>
<AddressPeriod>03</AddressPeriod>
<OwnerTenant />
<AddressChanged>N</AddressChanged>
</AddressNA08>
</AddressNA08>
<AKANamesNK04>
<AKANamesNK04>
<RecordSeq>01</RecordSeq>
<Part>001</Part>
<PartSeq>01</PartSeq>
<ConsumerNo>645390100</ConsumerNo>
<InformationDate>20101215</InformationDate>
<AKAName>NONDLOBO,ZANILE</AKAName>
</AKANamesNK04>
<AKANamesNK04>
<RecordSeq>02</RecordSeq>
<Part>001</Part>
<PartSeq>01</PartSeq>
<ConsumerNo>645390100</ConsumerNo>
<InformationDate>19980428</InformationDate>
<AKAName>NONDLOBO,ZANELA</AKAName>
</AKANamesNK04>
</AKANamesNK04>
</soap:Body>
</soap:Envelope>
我是新來這個肥皂的方法和命名空間。
你加SOAP信封相關的命名空間到你的XSLT,而試圖呢?如果你從'/ soap:Envelope'遍歷,以防直接更改爲'// tagname'這樣的標籤,那麼它可能會起作用,你可以嘗試使用 – Rahul
@Rahul那個沒有用的選項,它仍然是空白的 – Tumelo
與鏈接中給出的xslt相同嗎?肥皂有效載荷是否超出了有效範圍?我發現未封閉的標籤 – Rahul