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 12:54:01 GMT
Hello Anne,

of course!! ;-)


-----Ursprüngliche Nachricht-----
Von: Anne Thomas Manes [mailto:atmanes@gmail.com] 
Gesendet: Mittwoch, 13. April 2005 14:50
An: axis-user@ws.apache.org
Betreff: Re: No Valid WSDL?

Oliver,

Would you please repost your WSDL as an attachment? Or resend it in
the message as plain text? GMail is clipping the HTML.

Thanks,
Anne

On 4/13/05, Bruns, Oliver <Oliver.Bruns@neutrasoft.de> wrote:
>  
>  
> 
> Ok, thanks a lot for your trouble. 
> 
> The fact is, that the wsdl generated by axis is not valid. 
> 
> I tried the newest Jboss in the three-way-line 3.2.7. 
> 
> Differences: 
> 
> The "simpleContent" Problem I have had before (in 3.2.3) is fixed. 
> 
>   
> 
> But in 3.2.7, the java:-prefix-problem is still there. 
> 
>   
> 
> My question is, are that known bugs, my fault or new ones? 
> 
>   
> 
> The Value-Object hierarchy which I tested is simple: 
> 
>   
> 
> CreateGeraetWechsel 
> 
>             | 
> 
>             | 
> 
>             ----- GeraetAusbau 
> 
>   
> 
> Ok, but after fixing the WSDL and the generated client, there is somewhere
> else a failure, but where? 
> 
>   
> 
> Again: 
> 
>   
> 
> A Value-Object with no reference to GeraetAusbau sended to Axis is ok.
> Everything works fine. 
> 
>   
> 
> Perhaps another user has an idea? 
> 
>   
> 
> Thanks in advance! 
> 
>   
> 
> Regards, 
> 
>   
> 
> Oliver 
> 
>             
> 
>   
> 
> -----Ursprüngliche Nachricht-----
>  Von: Gilles Devaux [mailto:gdevaux@webraska.com] 
>  Gesendet: Mittwoch, 13. April 2005 13:38
>  An: Bruns, Oliver
>  Betreff: RE: No Valid WSDL? 
> 
>   
> 
> I can't really see what's going wrong. The fact is that I use the WS-I
> guidelines to write my WSDL and you use the soapenc: namespace that I do not
> know so I can't really help you more. 
> 
> Sorry and good luck 
> 
>   
>  ________________________________
>  
> 
> De : Bruns, Oliver [mailto:Oliver.Bruns@neutrasoft.de] 
>  Envoyé : mercredi 13 avril 2005 11:39
> 
>  À : axis-user@ws.apache.org
>  Objet : AW: No Valid WSDL?
>  
> 
> 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> 
> 
> <span l... [Message clipped]

Mime
View raw message