サードパーティの Axis Web サービスへの SOAP 呼び出しを行う単純な .NET アプリがあります。HTTP トラフィックをトレースすると、リクエストは問題ないように見えますが、「レスポンスは整形式の XML ではありません」という例外が発生します。XML を逆シリアル化できないように見えるため、戻りオブジェクトは null です。
wsdl 内のさまざまな名前空間宣言に関する 1 つの質問。これらの宣言のいくつかは、もはや存在しない URL/ドメインを指しています。これにより問題が発生する可能性はありますか?
wsdl ドキュメントから:
<wsdl:definitions targetNamespace="http://domaindoesntexist.com/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://domaindoesntexist.com/"
xmlns:intf="http://domaindoesntexist.com/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
犯罪データが削除された HTTP 応答の例:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 05 Jun 2009 13:54:59 GMT
7cb
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<someMethod xmlns="http://test.com/services/myservice/">
</someMethod>
</soapenv:Body>
</soapenv:Envelope>
0