5
にins0を追加し、私は次の要求XML取得:サボンルビー宝石がサボンの宝石を使用してタグ
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="URL"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ins0="SOME URL">
<soap:Body>
<ins0:Test xmlns="SOME URL">
</ins0:Test>
</soap:Body>
</soap:Envelope>
をしかし、それは、この代わりにする必要があります:ins0
が削除された
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="URL"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Test xmlns="SOME URL">
</Test>
</soap:Body>
</soap:Envelope>
注意してください。
提案がありますか?
http://stackoverflow.com/questions/6720720/how-to-stop-savon-from-adding-prefixes-to-soap-body –
それを試してみましたが、私はエラーが発生しました: 'サーバーは、 HTTP Header SOAPAction:test.'の値を返します。これは "Test"アクションを実行して小文字にしたためです。 –
実際に私はこのXMLの違いが何も壊れていないことを知りました。コードは正常に動作します。しかし、それは誰かのelsesコードを破る可能性があります。 –