- - PR -
axisでWSDL2Java時にエラー
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2004-06-14 20:50
こんにちは、濃縮トマトです。
WebServiceを勉強して1ヶ月ほどで 単純な質問かも知れませんがご教授お願い致します。 axisを利用してjava.sql.Timestamp型を送受信しようと思い、 独自にSerializer/Deserializerを作成しました。 次にwsddで<typeMapping>を定義しデプロイが成功したあとに wsdlからスタブクラスを生成しようとしたのですが、 以下のエラーが発生しました。 --------------------------- java.io.IOException: Type {http://sql.java}Timestamp is referenced but not defined. at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:667) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:547) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:521) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:498) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:374) at java.lang.Thread.run(Thread.java:534) --------------------------- 定義は行っていると思うのですが、上記エラーが発生する原因がわかりません。 ご存知の方がいらっしゃいましたら、ご教授お願い致します。 尚、出力されたwsdlは以下のとおりです。 ------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://localhost:8080/axis/services/dateTest" xmlns:impl="http://localhost:8080/axis/services/dateTest" xmlns:intf="http://localhost:8080/axis/services/dateTest" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://sql.java" xmlns:tns1="http://www.w3.org/1999/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <!--WSDL created by Apache Axis version: 1.2alpha Built on Dec 01, 2003 (04:33:24 EST)--> <wsdl:message name="returnTimestampResponse"> <wsdl:part name="returnTimestampReturn" type="tns2:Timestamp"/> </wsdl:message> <wsdl:message name="returnTimestampRequest"> <wsdl:part name="timestamp" type="tns2:Timestamp"/> </wsdl:message> <wsdl:portType name="DateTest"> <wsdl:operation name="returnTimestamp" parameterOrder="timestamp"> <wsdl:input name="returnTimestampRequest" message="impl:returnTimestampRequest"/> <wsdl:output name="returnTimestampResponse" message="impl:returnTimestampResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="dateTestSoapBinding" type="impl:DateTest"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="returnTimestamp"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="returnTimestampRequest"> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.sample"/> </wsdl:input> <wsdl:output name="returnTimestampResponse"> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/dateTest"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="DateTestService"> <wsdl:port name="dateTest" binding="impl:dateTestSoapBinding"> <wsdlsoap:address location="http://localhost:8080/axis/services/dateTest"/> </wsdl:port> </wsdl:service> </wsdl:definitions> ---------------------------------------------------------------------------------- |
1