2016-07-12 5 views
0

シエスタを使用してXMLコンテンツを読む方法を理解するのに問題があります。私はこのようなものを試しました(私のサービスのサブクラスで):シエスタとXMLの使用

configureTransformer("*") { (content: NSData, entity) -> NSXMLDocument? in 
    return try? NSXMLDocument(data: content, options: 0) 
} 

しかし、それは呼ばれていないようです。私はまさに正しい道を歩いていますか?

更新:はここで単一のリソースのためのシエスタログです:

[Siesta:Configuration] Computing configuration for GET Siesta.Resource(https://[host]/httpAuth/app/rest/builds/running:any,branch:develop)[] 
[Siesta:Configuration] Applying config 0 [Siesta default response parsers] to Siesta.Resource(https://[host]/httpAuth/app/rest/builds/running:any,branch:develop)[] 
[Siesta:Configuration] Applying config 1 [custom] to Siesta.Resource(https://[host]/httpAuth/app/rest/builds/running:any,branch:develop)[] 
[Siesta:Staleness] Siesta.Resource(https://[host]/httpAuth/app/rest/builds/running:any,branch:develop)[] is not up to date: no error | no data 
[Siesta:Network] GET https://[host]/httpAuth/app/rest/builds/running:any,branch:develop 
[Siesta:Observers] Siesta.Resource(https://[host]/httpAuth/app/rest/builds/running:any,branch:develop)[L] sending Requested to 1 observer 
[Siesta:Observers] Siesta.Resource(https://[host]/httpAuth/app/rest/builds/running:any,branch:develop)[L] sending Requested to <XTSideBarDataSource: 0x600000091440> 
[Siesta:Network] 200 ← GET https://[host]/httpAuth/app/rest/builds/running:any,branch:develop 
[Siesta:StateChanges] Siesta.Resource(https://[host]/httpAuth/app/rest/builds/running:any,branch:develop)[] received new data from Network : Entity(content: <OS_dispatch_data: data[0x61000026a4c0] = { leaf, size = 3201, buf = 0x1021f2200 }>, charset: nil, headers: ["cache-control": "no-cache, no-store", "strict-transport-security": "max-age=31536000; includeSubDomains", "content-length": "3201", "content-type": "application/xml", "set-co… 
[Siesta:Observers] Siesta.Resource(https://[host]/httpAuth/app/rest/builds/running:any,branch:develop)[D] sending NewData(Network) to 1 observer 
[Siesta:Observers] Siesta.Resource(https://[host]/httpAuth/app/rest/builds/running:any,branch:develop)[D] sending NewData(Network) to <XTSideBarDataSource: 0x600000091440> 
+0

これはOS X上にありますか? –

+0

はい、正しいです。 – Uncommon

+0

ログには応答変圧器が一切表示されません。これは好奇心が強いです。 OS Xの可能性があります。ローカルで調査します。 –

答えて

0

はい、あなたは正しい軌道に乗っています。 "*"は、単一のパスセグメントにのみ一致します。代わりに"**"を試してください。

+0

それはそれをしなかった。私はブレークポイントを設定し、NSLog呼び出しを追加しました。これは起こっていません。 – Uncommon

+0

その場合は、 'Siesta.enabledLogCategories = LogCategory.detailed'を試して、あなたの質問を出力に更新してください(もちろん、どのような機密情報も省略します)。それが問題の診断に役立ちます。 –

+0

ログを更新しました。 – Uncommon

関連する問題