You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Bruns, Oliver" <Ol...@neutrasoft.de> on 2005/04/13 09:43:52 UTC

No Valid WSDL?

Hello,

 

I'm using JBoss 3.2.3 (Axis is included)

 

I think that the following wsdl is not valid. XMLSpy says, "unexpected
child element 'simpleContent'". (section "ObjectNameType")

But I think that the namespaces are not valid, too.

WSDL2Java is not able to generate Sourcecode out of these WSDL.

Is it my fault, or is it a bug?

WSDL2JAVA errormessage:

 

java.io.IOException: Type
de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel is referenced
but not defined.

 

I removed the "java:" prefix in the line "<complexType
name="java:de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel">"

and of course in the type-line.

<wsdl:part name="in0"
type="tns1:java:de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel
"/>

 

Then, WSDL2Java is able to generate a JunitTestCase.

The generated TestCase is runnable runs ok. (with an argument "new
CreateGeraetWechsel()")

But if there is an "GeraetEinbau" or "GeraetAusbau" in the Bean
"CreateGeraetWechsel" included, there comes an errormessage

"no deserializer found for CreateGeraetWechsel".

 

Has anybody an idea?

 

Thanks,

 

Oliver

 

Original WSDL generated by Axis:

 

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions
targetNamespace="http://pcobruns:8080/jboss-net/services/SaintsService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://pcobruns:8080/jboss-net/services/SaintsService"
xmlns:intf="http://pcobruns:8080/jboss-net/services/SaintsService"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="http://www.neutrasoft.de/saints/core"
xmlns:tns2="http://interfaces.core.saints.neutrasoft.de"
xmlns:tns3="http://net.jboss.org/jmx"
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="http://interfaces.core.saints.neutrasoft.de"
xmlns="http://www.w3.org/2001/XMLSchema">

                    <import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

                    <complexType name="Zaehlwerk">

                           <sequence>

                                 <element name="abgelesen"
nillable="true" type="xsd:boolean"/>

                                 <element name="abgelesen2"
nillable="true" type="xsd:string"/>

                                 <element name="ableseArt"
nillable="true" type="xsd:string"/>

                                 <element name="ablesedatum"
nillable="true" type="xsd:string"/>

                                 <element name="anzeige" nillable="true"
type="xsd:string"/>

                                 <element name="belegnr" nillable="true"
type="xsd:string"/>

                                 <element name="bewertungsangaben"
nillable="true" type="xsd:string"/>

                                 <element name="measuredVariable"
nillable="true" type="xsd:string"/>

                                 <element name="meterReading"
nillable="true" type="xsd:string"/>

                                 <element name="stand" nillable="true"
type="xsd:string"/>

                                 <element name="zaehlwerkcode"
nillable="true" type="xsd:string"/>

                           </sequence>

                    </complexType>

                    <complexType name="GeraetAusbau">

                           <sequence>

                                 <element name="mandant" nillable="true"
type="xsd:string"/>

                                 <element name="meteritem"
nillable="true" type="xsd:string"/>

                                 <element name="newInstallationPlace"
nillable="true" type="xsd:string"/>

                                 <element name="zaehlwerk"
nillable="true" type="impl:ArrayOf_tns2_Zaehlwerk"/>

                           </sequence>

                    </complexType>

                    <complexType name="GeraetEinbau">

                           <sequence>

                                 <element name="mandant" nillable="true"
type="xsd:string"/>

                                 <element name="meteritem"
nillable="true" type="xsd:string"/>

                                 <element name="meteritemtype"
nillable="true" type="xsd:string"/>

                                 <element name="transducerFactor"
nillable="true" type="xsd:string"/>

                                 <element name="zaehlwerk"
nillable="true" type="impl:ArrayOf_tns2_Zaehlwerk"/>

                           </sequence>

                    </complexType>

             </schema>

             <schema
targetNamespace="http://pcobruns:8080/jboss-net/services/SaintsService"
xmlns="http://www.w3.org/2001/XMLSchema">

                    <import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

                    <complexType name="ArrayOf_tns2_Zaehlwerk">

                           <complexContent>

                                 <restriction base="soapenc:Array">

                                        <attribute
ref="soapenc:arrayType" wsdl:arrayType="tns2:Zaehlwerk[]"/>

                                 </restriction>

                           </complexContent>

                    </complexType>

             </schema>

             <schema
targetNamespace="http://www.neutrasoft.de/saints/core"
xmlns="http://www.w3.org/2001/XMLSchema">

                    <import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

                    <complexType
name="java:de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel">

                           <sequence>

                                 <element name="connectionlevel"
nillable="true" type="xsd:string"/>

                                 <element name="documentDate"
nillable="true" type="xsd:string"/>

                                 <element name="geraetAusbau"
nillable="true" type="tns2:GeraetAusbau"/>

                                 <element name="geraetEinbau"
nillable="true" type="tns2:GeraetEinbau"/>

                                 <element name="mandant" nillable="true"
type="xsd:string"/>

                                 <element name="measurelevel"
nillable="true" type="xsd:string"/>

                                  <element name="meteringCode"
nillable="true" type="xsd:string"/>

                                 <element name="verbrauchsstellennr"
nillable="true" type="xsd:string"/>

                           </sequence>

                    </complexType>

             </schema>

             <schema targetNamespace="http://net.jboss.org/jmx"
xmlns="http://www.w3.org/2001/XMLSchema">

                    <import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

                    <simpleType name="ObjectNameType">

                           <simpleContent>

                                 <extension base="xsd:string"/>

                           </simpleContent>

                    </simpleType>

             </schema>

       </wsdl:types>

       <wsdl:message name="createGeraetWechselRequest">

             <wsdl:part name="in0"
type="tns1:java:de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel
"/>

       </wsdl:message>

       <wsdl:message name="createGeraetWechselResponse">

             <wsdl:part name="createGeraetWechselReturn"
type="xsd:string"/>

       </wsdl:message>

       <wsdl:portType name="Service">

             <wsdl:operation name="createGeraetWechsel"
parameterOrder="in0">

                    <wsdl:input
message="impl:createGeraetWechselRequest"
name="createGeraetWechselRequest"/>

                    <wsdl:output
message="impl:createGeraetWechselResponse"
name="createGeraetWechselResponse"/>

             </wsdl:operation>

       </wsdl:portType>

       <wsdl:binding name="SaintsServiceSoapBinding"
type="impl:Service">

             <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>

             <wsdl:operation name="createGeraetWechsel">

                    <wsdlsoap:operation soapAction="SaintsService"/>

                    <wsdl:input name="createGeraetWechselRequest">

                           <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://interfaces.core.saints.neutrasoft.de" use="encoded"/>

                    </wsdl:input>

                    <wsdl:output name="createGeraetWechselResponse">

                           <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://pcobruns:8080/jboss-net/services/SaintsService"
use="encoded"/>

                    </wsdl:output>

             </wsdl:operation>

       </wsdl:binding>

       <wsdl:service name="ServiceService">

             <wsdl:port binding="impl:SaintsServiceSoapBinding"
name="SaintsService">

                    <wsdlsoap:address
location="http://pcobruns:8080/jboss-net/services/SaintsService"/>

             </wsdl:port>

       </wsdl:service>

</wsdl:definitions>