axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruns, Oliver" <Oliver.Br...@neutrasoft.de>
Subject AW: No Valid WSDL?
Date Wed, 13 Apr 2005 09:39:24 GMT
Sorry, we missunderstood.

When I remove the "java:" prefix also, I can generate the TestCase.

But: (that's the next step)

 

When I start the generated TestCase a StackTrace appears: (Client-side)

 

AxisFault

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode: 

 faultString: org.xml.sax.SAXException: Deserializing parameter &apos;in0&apos;: 
could not find deserializer for type {http://www.neutrasoft.de/saints/core}de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel

 faultActor: 

 faultNode: 

 faultDetail: 

            {http://xml.apache.org/axis/}stackTrace: AxisFault

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode: 

 faultString: org.xml.sax.SAXException: Deserializing parameter &amp;apos;in0&amp;apos;:
 could not find deserializer for type {http://www.neutrasoft.de/saints/core}de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel

 faultActor: 

 faultNode: 

 faultDetail: 

 

 

 

I fixed the generated source in line 81 of the class "SaintsServiceSoapBindingStub".

(by adding the java-prefix.)

 

Line before change:

 

qName = new javax.xml.namespace.QName("http://www.neutrasoft.de/saints/core", "de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel");

 

Line after change:

 

qName = new javax.xml.namespace.QName("http://www.neutrasoft.de/saints/core", "java:de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel");

 

After this little change, the TextCase runs ok, with an empty Instance of the Value-Object.

 

value = binding.createGeraetWechsel(new CreateGeraetWechsel());

 

But:

 

With the following Value-Object, I have a Problem:

 

CreateGeraetWechsel createGeraeteWechsel = new CreateGeraetWechsel();

 

 GeraetAusbau geraeteAusbau = new GeraetAusbau();

 

  createGeraeteWechsel.setGeraetAusbau(geraeteAusbau);

        

  value = binding.createGeraetWechsel(createGeraeteWechsel);

 

The only difference is, that the CreateGeraetWechsel cobtains an empty instance of GeraetAusbau.

 

StackTrace: (client-side)

 

AxisFault

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode: 

 faultString: org.xml.sax.SAXException: No deserializer for {http://interfaces.core.saints.neutrasoft.de}GeraetAusbau

 faultActor: 

 faultNode: 

 faultDetail: 

            {http://xml.apache.org/axis/}stackTrace: AxisFault

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode: 

 faultString: org.xml.sax.SAXException: No deserializer for {http://interfaces.core.saints.neutrasoft.de}GeraetAusbau

 faultActor: 

 faultNode: 

 faultDetail:

 

Thanks in advance!

 

Regards,

 

Oliver

 

 

 

 

 

-----Ursprüngliche Nachricht-----
Von: Gilles Devaux [mailto:gdevaux@webraska.com] 
Gesendet: Mittwoch, 13. April 2005 10:41
An: axis-user@ws.apache.org
Betreff: RE: No Valid WSDL?

 

That's strange, I have replaced your simpleType "ObjectNameType" with a complexType in order
to have a valid xml (I have also removed the java: prefix) and I can generate the client part
with the Axis 1.1 ant task.

 

I don't know what is going wrong on your side

 

  _____  

De : Bruns, Oliver [mailto:Oliver.Bruns@neutrasoft.de] 
Envoyé : mercredi 13 avril 2005 10:04
À : axis-user@ws.apache.org
Objet : AW: No Valid WSDL?

Devaus,

 

thanks.

 

I corrected it and XMLSpy says, that the XML is valid.

But WSDL2JAVA is not able to generate the TestCase.

 

Stacktrace:

 

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

        at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:522)

        at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:422)

        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:408)

        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:393)

        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)

        at java.lang.Thread.run(Unknown Source)

 

regards,

 

Oliver

 

-----Ursprüngliche Nachricht-----
Von: Gilles Devaux [mailto:gdevaux@webraska.com] 
Gesendet: Mittwoch, 13. April 2005 09:58
An: axis-user@ws.apache.org
Betreff: RE: No Valid WSDL?

 

<simpleType name="ObjectNameType"> 

                           <simpleContent>

                                 <extension base="xsd:string"/>

                           </simpleContent>

                    </simpleType>

 

 simpleContent can't be included in simpleType, only complexType

 

  _____  

De : Bruns, Oliver [mailto:Oliver.Bruns@neutrasoft.de] 
Envoyé : mercredi 13 avril 2005 09:44
À : axis-user@ws.apache.org
Objet : 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>

 

 

 


Mime
View raw message