- - PR -
このWSDLで警告が出るのはどうして??
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2009-03-05 17:51
度々お世話になりますm(__)m
今、とあるSOAPサービスを使うアプリを開発しているのですが、 どうやっても、応答は正しく返ってきているのにメソッドの返値がNULLになる、という現象で困っています。 そこで、いろいろ調べていると、WSDLのなかで気になる点を見つけました。 その、問題の起きるWSDLから、問題に関係在りそうな箇所を抜き出してみました。 <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="hogeNS" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="serviceResult" xmlns:tns2="resultMessage" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <schema targetNamespace="serviceResult" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="serviceResult"> <sequence> <element name="id" nillable="true" type="xsd:string"/> </sequence> </complexType> </schema> <schema targetNamespace="resultMessage" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType abstract="true" name="resultMessage"> <sequence> <element name="result" nillable="true" type="tns1:serviceResult"/> </sequence> </complexType> </schema> </wsdl:types> </wsdl:definitions> これをVisualStudioで開くと、25行目のelementのところに波線が付いて、 「名前空間'serviceResult'はこのスキーマでの参照には使用できません。」 という警告がポップアップします。 これはどういう意味、どうして起こるモノなのでしょうか? (XML初心者なもので、基本的な質問でしたらごめんなさい) サーバーはAXISで作ってあって、 クライアント側もJava+AXISならば問題なく使えるそうなのですが・・・ |
|
投稿日時: 2009-03-06 11:53
すみません。m(__)m
もっと別の問題(どうやら応答メッセージが微妙におかしい)のために、 返値がNULLになってしまっていことが判明しました。 |
1