|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
simple schema questionOk,
I've got a dummy wsdl that is happy until I put the element DOC_APP_CALDT in. Then axis complains java.io.IOException: Type CombinedDateType is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665) I really don't see anything wrong with this, but xmlspy also complains wiht Invalid XML schema: 'Element <union> is not allowed under element <s:simpleType>' but I don't think that's true ...
Anybody see what's wrong with it? <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://company.com/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://company.com/">
<wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://company.com/">
<s:simpleType name="CombinedDateType"> <union memberTypes="s:dateTime s:date s:gYearMonth s:gYear"/>
</s:simpleType> <s:element name="DOC_APP_CALDT" type="CombinedDateType"/>
<!-- the error is java.io.IOException: Type CombinedDateType is referenced but not defined. at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
--> <s:element name="getbyIsbn"> <s:complexType>
<s:sequence> <s:element minOccurs="0" maxOccurs="1" name="isbn" type="s:string"/>
</s:sequence> </s:complexType> </s:element>
<s:element name="getbyIsbnResponse"> <s:complexType>
<s:sequence> <s:element minOccurs="0" maxOccurs="1" name="getbyIsbnResult" type="tns:ArchiveBook"/>
</s:sequence> </s:complexType> </s:element>
<s:complexType name="ArchiveBook"> <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Year" type="s:int"/> <s:element minOccurs="0" maxOccurs="1" name="Author" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="Isbn" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="Title" type="s:string"/>
</s:sequence> </s:complexType> </s:schema>
</wsdl:types> <wsdl:message name="getbyIsbnSoapIn">
<wsdl:part name="parameters" element="tns:getbyIsbn"/> </wsdl:message>
<wsdl:message name="getbyIsbnSoapOut"> <wsdl:part name="parameters" element="tns:getbyIsbnResponse"/>
</wsdl:message> <wsdl:portType name="Service1Soap">
<wsdl:operation name="getbyIsbn"> <wsdl:input message="tns:getbyIsbnSoapIn"/>
<wsdl:output message="tns:getbyIsbnSoapOut"/> </wsdl:operation>
</wsdl:portType> <wsdl:binding name="Service1Soap" type="tns:Service1Soap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getbyIsbn">
<soap:operation soapAction="http://company.com/getbyIsbn" style="document"/>
<wsdl:input> <soap:body use="literal"/> </wsdl:input>
<wsdl:output> <soap:body use="literal"/> </wsdl:output>
</wsdl:operation> </wsdl:binding> <wsdl:service name="Service1">
<wsdl:port name="Service1Soap" binding="tns:Service1Soap"> <soap:address location="http://localhost:1459/Service1.asmx"/>
</wsdl:port> </wsdl:service> </wsdl:definitions> |
|
|
Re: simple schema questionOn Fri, Nov 6, 2009 at 19:15, New AxisU <newaxisu@...> wrote:
> Ok, > I've got a dummy wsdl that is happy until I put the element DOC_APP_CALDT > in. Then axis complains > java.io.IOException: Type CombinedDateType is referenced but not defined. > at > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665) > I really don't see anything wrong with this, but xmlspy also complains wiht > Invalid XML schema: 'Element <union> is not allowed under element > <s:simpleType>' but I don't think that's true ... You should trust XML Spy ;-) <union> should be <s:union> > Anybody see what's wrong with it? > <?xml version="1.0" encoding="utf-8"?> > <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" > xmlns:tns="http://company.com/" xmlns:s="http://www.w3.org/2001/XMLSchema" > xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > targetNamespace="http://company.com/"> > <wsdl:types> > <s:schema elementFormDefault="qualified" > targetNamespace="http://company.com/"> > <s:simpleType name="CombinedDateType"> > <union memberTypes="s:dateTime s:date s:gYearMonth s:gYear"/> > </s:simpleType> > <s:element name="DOC_APP_CALDT" type="CombinedDateType"/> > <!-- > the error is > java.io.IOException: Type CombinedDateType is referenced but not defined. > at > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665) > --> > <s:element name="getbyIsbn"> > <s:complexType> > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="isbn" type="s:string"/> > </s:sequence> > </s:complexType> > </s:element> > <s:element name="getbyIsbnResponse"> > <s:complexType> > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="getbyIsbnResult" > type="tns:ArchiveBook"/> > </s:sequence> > </s:complexType> > </s:element> > <s:complexType name="ArchiveBook"> > <s:sequence> > <s:element minOccurs="1" maxOccurs="1" name="Year" type="s:int"/> > <s:element minOccurs="0" maxOccurs="1" name="Author" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="Isbn" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="Title" type="s:string"/> > </s:sequence> > </s:complexType> > </s:schema> > </wsdl:types> > <wsdl:message name="getbyIsbnSoapIn"> > <wsdl:part name="parameters" element="tns:getbyIsbn"/> > </wsdl:message> > <wsdl:message name="getbyIsbnSoapOut"> > <wsdl:part name="parameters" element="tns:getbyIsbnResponse"/> > </wsdl:message> > <wsdl:portType name="Service1Soap"> > <wsdl:operation name="getbyIsbn"> > <wsdl:input message="tns:getbyIsbnSoapIn"/> > <wsdl:output message="tns:getbyIsbnSoapOut"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="Service1Soap" type="tns:Service1Soap"> > <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="getbyIsbn"> > <soap:operation soapAction="http://company.com/getbyIsbn" style="document"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="Service1"> > <wsdl:port name="Service1Soap" binding="tns:Service1Soap"> > <soap:address location="http://localhost:1459/Service1.asmx"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > > > > |
|
|
Re: simple schema questionYes, thank you. That was definitely a problem!
On Fri, Nov 6, 2009 at 2:29 PM, Andreas Veithen <andreas.veithen@...> wrote:
|
|
|
Re: simple schema questionAlso, I needed
xmlns="http://company.com/" up in the <wsdl:definitions ...> to make xmlspy happy. Otherwise it complained that it couldn't find CombinedDateType. Now I will see if axis likes it better!
On Fri, Nov 6, 2009 at 5:19 PM, New AxisU <newaxisu@...> wrote: Yes, thank you. That was definitely a problem! |
| Free embeddable forum powered by Nabble | Forum Help |