これは私のXML タグEnvelope
にxsi:xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
宣言を入れた私のrequestです。myRequestMethod
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sd="http://www.foo.bar/ws"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soapenv:Header/>
<soapenv:Body >
<sd:myRequestMethod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<sd:name xsi:nil="true"/>
これは動作します (SoapUI でテスト済み) が、ユーザーが SOAP クライアントを生成すると、次のようにxsi:xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
宣言が自動的にEnvelope
タグに挿入されます (最も外側のタグ)。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sd="http://www.foo.bar/ws"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body >
<sd:myRequestMethod>
<sd:name xsi:nil="true"/>
これは彼に
The namespace associated with the prefix 'xsi' could not be resolved.
これは通常の動作ですか? 内部タグにない場合、石鹸はそれを理解できませんか? または、spring-ws を何らかの方法で構成して許可することはできますか? ユーザーはクライアントとリクエストを自動生成するため、自分の側を変更することはできません。