Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 36087 invoked from network); 13 Apr 2005 12:54:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2005 12:54:49 -0000 Received: (qmail 460 invoked by uid 500); 13 Apr 2005 12:54:17 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 411 invoked by uid 500); 13 Apr 2005 12:54:16 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 314 invoked by uid 99); 13 Apr 2005 12:54:13 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.neutrasoft.info (HELO w2k-mail01.neutrasoft.de) (217.6.136.218) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 13 Apr 2005 05:54:07 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C54027.DDAB7E76" Subject: AW: No Valid WSDL? Date: Wed, 13 Apr 2005 14:54:01 +0200 Message-ID: <3468763A5F08B34CAEB6B74D976B74C201BF89A4@w2k-mail01.neutrasoft.de> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: No Valid WSDL? Thread-Index: AcVAJ2cVH6q1xcDhQyuioaKgzfLNwwAAFP3w From: "Bruns, Oliver" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C54027.DDAB7E76 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Anne, of course!! ;-) -----Urspr=FCngliche Nachricht----- Von: Anne Thomas Manes [mailto:atmanes@gmail.com]=20 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 wrote: > =20 > =20 >=20 > Ok, thanks a lot for your trouble.=20 >=20 > The fact is, that the wsdl generated by axis is not valid.=20 >=20 > I tried the newest Jboss in the three-way-line 3.2.7.=20 >=20 > Differences:=20 >=20 > The "simpleContent" Problem I have had before (in 3.2.3) is fixed.=20 >=20 > =20 >=20 > But in 3.2.7, the java:-prefix-problem is still there.=20 >=20 > =20 >=20 > My question is, are that known bugs, my fault or new ones?=20 >=20 > =20 >=20 > The Value-Object hierarchy which I tested is simple:=20 >=20 > =20 >=20 > CreateGeraetWechsel=20 >=20 > |=20 >=20 > |=20 >=20 > ----- GeraetAusbau=20 >=20 > =20 >=20 > Ok, but after fixing the WSDL and the generated client, there is = somewhere > else a failure, but where?=20 >=20 > =20 >=20 > Again:=20 >=20 > =20 >=20 > A Value-Object with no reference to GeraetAusbau sended to Axis is ok. > Everything works fine.=20 >=20 > =20 >=20 > Perhaps another user has an idea?=20 >=20 > =20 >=20 > Thanks in advance!=20 >=20 > =20 >=20 > Regards,=20 >=20 > =20 >=20 > Oliver=20 >=20 > =20 >=20 > =20 >=20 > -----Urspr=FCngliche Nachricht----- > Von: Gilles Devaux [mailto:gdevaux@webraska.com]=20 > Gesendet: Mittwoch, 13. April 2005 13:38 > An: Bruns, Oliver > Betreff: RE: No Valid WSDL?=20 >=20 > =20 >=20 > 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.=20 >=20 > Sorry and good luck=20 >=20 > =20 > ________________________________ > =20 >=20 > De : Bruns, Oliver [mailto:Oliver.Bruns@neutrasoft.de]=20 > Envoy=E9 : mercredi 13 avril 2005 11:39 >=20 > =C0 : axis-user@ws.apache.org > Objet : AW: No Valid WSDL? > =20 >=20 > Sorry, we missunderstood.=20 >=20 > When I remove the "java:" prefix also, I can generate the TestCase.=20 >=20 > But: (that's the next step)=20 >=20 > =20 >=20 > When I start the generated TestCase a StackTrace appears: = (Client-side)=20 >=20 > =20 >=20 > AxisFault=20 >=20 > faultCode: > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException >=20 > faultSubcode:=20 >=20 > faultString: org.xml.sax.SAXException: Deserializing parameter > 'in0': could not find deserializer for type > = {http://www.neutrasoft.de/saints/core}de.neutrasoft.saints.core.interface= s.CreateGeraetWechsel >=20 > faultActor:=20 >=20 > faultNode:=20 >=20 > faultDetail:=20 >=20 > {http://xml.apache.org/axis/}stackTrace: > AxisFault=20 >=20 > faultCode: > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException >=20 > faultSubcode:=20 >=20 > 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.interface= s.CreateGeraetWechsel >=20 > faultActor:=20 >=20 > faultNode:=20 >=20 > faultDetail:=20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > I fixed the generated source in line 81 of the class > "SaintsServiceSoapBindingStub".=20 >=20 > (by adding the java-prefix.)=20 >=20 > =20 >=20 > Line before change:=20 >=20 > =20 >=20 > qName =3D new > javax.xml.namespace.QName("http://www.neutrasoft.de/saints/core", > "de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel"); >=20 > =20 >=20 > Line after change:=20 >=20 > =20 >=20 > qName =3D new > javax.xml.namespace.QName("http://www.neutrasoft.de/saints/core", > "java:de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel"); >=20 > =20 >=20 > After this little change, the TextCase runs ok, with an empty Instance = of > the Value-Object.=20 >=20 > =20 >=20 > value =3D binding.createGeraetWechsel(new CreateGeraetWechsel());=20 >=20 > =20 >=20 > But:=20 >=20 > =20 >=20 > With the following Value-Object, I have a Problem:=20 >=20 > =20 >=20 > CreateGeraetWechsel createGeraeteWechsel =3D new = CreateGeraetWechsel();=20 >=20 > =20 >=20 > GeraetAusbau geraeteAusbau =3D new GeraetAusbau();=20 >=20 > =20 >=20 > createGeraeteWechsel.setGeraetAusbau(geraeteAusbau);=20 >=20 > =20 >=20 > value =3D binding.createGeraetWechsel(createGeraeteWechsel);=20 >=20 > =20 >=20 > The only difference is, that the CreateGeraetWechsel cobtains an empty > instance of GeraetAusbau.=20 >=20 > =20 >=20 > StackTrace: (client-side)=20 >=20 > =20 >=20 > AxisFault=20 >=20 > faultCode: > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException >=20 > faultSubcode:=20 >=20 > faultString: org.xml.sax.SAXException: No deserializer for > {http://interfaces.core.saints.neutrasoft.de}GeraetAusbau=20 >=20 > faultActor:=20 >=20 > faultNode:=20 >=20 > faultDetail:=20 >=20 > {http://xml.apache.org/axis/}stackTrace: > AxisFault=20 >=20 > faultCode: > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException >=20 > faultSubcode:=20 >=20 > faultString: org.xml.sax.SAXException: No deserializer for > {http://interfaces.core.saints.neutrasoft.de}GeraetAusbau=20 >=20 > faultActor:=20 >=20 > faultNode:=20 >=20 > faultDetail:=20 >=20 > =20 >=20 > Thanks in advance!=20 >=20 > =20 >=20 > Regards,=20 >=20 > =20 >=20 > Oliver=20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > -----Urspr=FCngliche Nachricht----- > Von: Gilles Devaux [mailto:gdevaux@webraska.com]=20 > Gesendet: Mittwoch, 13. April 2005 10:41 > An: axis-user@ws.apache.org > Betreff: RE: No Valid WSDL?=20 >=20 > =20 >=20 > 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. = >=20 > =20 >=20 > I don't know what is going wrong on your side=20 >=20 > =20 > =20 > ________________________________ > =20 >=20 > De : Bruns, Oliver [mailto:Oliver.Bruns@neutrasoft.de]=20 > Envoy=E9 : mercredi 13 avril 2005 10:04 > =C0 : axis-user@ws.apache.org > Objet : AW: No Valid WSDL?=20 >=20 > Devaus,=20 >=20 > =20 >=20 > thanks.=20 >=20 > =20 >=20 > I corrected it and XMLSpy says, that the XML is valid.=20 >=20 > But WSDL2JAVA is not able to generate the TestCase.=20 >=20 > =20 >=20 > Stacktrace:=20 >=20 > =20 >=20 > java.io.IOException: Type > de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel is > referenced but not defined.=20 >=20 > at > = org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTabl= e.java:522) >=20 > at > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:422) >=20 > at > = org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:40= 8) >=20 > at > = org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:39= 3) >=20 > at > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245) >=20 > at java.lang.Thread.run(Unknown Source)=20 >=20 > =20 >=20 > regards,=20 >=20 > =20 >=20 > Oliver=20 >=20 > =20 >=20 > -----Urspr=FCngliche Nachricht----- > Von: Gilles Devaux [mailto:gdevaux@webraska.com]=20 > Gesendet: Mittwoch, 13. April 2005 09:58 > An: axis-user@ws.apache.org > Betreff: RE: No Valid WSDL?=20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > base=3D"xsd:string"/>=20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > simpleContent can't be included in simpleType, only complexType=20 >=20 > =20 > =20 > =20 > ________________________________ > =20 >=20 > De : Bruns, Oliver [mailto:Oliver.Bruns@neutrasoft.de]=20 > Envoy=E9 : mercredi 13 avril 2005 09:44 > =C0 : axis-user@ws.apache.org > Objet : No Valid WSDL?=20 >=20 > Hello,=20 >=20 > =20 >=20 > I'm using JBoss 3.2.3 (Axis is included)=20 >=20 > =20 >=20 > I think that the following wsdl is not valid. XMLSpy says, "unexpected = child > element 'simpleContent'". (section "ObjectNameType")=20 >=20 > But I think that the namespaces are not valid, too.=20 >=20 > WSDL2Java is not able to generate Sourcecode out of these WSDL.=20 >=20 > Is it my fault, or is it a bug?=20 >=20 > WSDL2JAVA errormessage:=20 >=20 > =20 >=20 > java.io.IOException: Type > de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel is > referenced but not defined.=20 >=20 > =20 >=20 > I removed the "java:" prefix in the line " = name=3D"java:de.neutrasoft.saints.core.interfaces.CreateGeraetWechsel">" >=20 > and of course in the type-line.=20 >=20 > = type=3D"tns1:java:de.neutrasoft.saints.core.interfaces.CreateGeraetWechse= l"/> >=20 > =20 >=20 > Then, WSDL2Java is able to generate a JunitTestCase.=20 >=20 > The generated TestCase is runnable runs ok. (with an argument "new > CreateGeraetWechsel()")=20 >=20 > But if there is an "GeraetEinbau" or "GeraetAusbau" in the Bean > "CreateGeraetWechsel" included, there comes an errormessage=20 >=20 > "no deserializer found for CreateGeraetWechsel".=20 >=20 > =20 >=20 > Has anybody an idea?=20 >=20 > =20 >=20 > Thanks,=20 >=20 > =20 >=20 > Oliver=20 >=20 > =20 >=20 > Original WSDL generated by Axis:=20 >=20 > =20 >=20 > =20 >=20 > = targetNamespace=3D"http://pcobruns:8080/jboss-net/services/SaintsService"= > xmlns=3D"http://schemas.xmlsoap.org/wsdl/" > xmlns:apachesoap=3D"http://xml.apache.org/xml-soap" > xmlns:impl=3D"http://pcobruns:8080/jboss-net/services/SaintsService" > xmlns:intf=3D"http://pcobruns:8080/jboss-net/services/SaintsService" > xmlns:soapenc=3D"http://schemas.xmlsoap.org/soap/encoding/" > xmlns:tns1=3D"http://www.neutrasoft.de/saints/core" > xmlns:tns2=3D"http://interfaces.core.saints.neutrasoft.de" > xmlns:tns3=3D"http://net.jboss.org/jmx" > xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/" > xmlns:wsdlsoap=3D"http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema">=20 >=20 > =20 >=20 > targetNamespace=3D"http://interfaces.core.saints.neutrasoft.de" > xmlns=3D"http://www.w3.org/2001/XMLSchema">=20 >=20 > namespace=3D"http://schemas.xmlsoap.org/soap/encoding/"/>=20 >=20 > =20 >=20 > =20 >=20 > nillable=3D"true" type=3D"xsd:boolean"/>=20 >=20 > nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > name=3D"ablesedatum" nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > name=3D"bewertungsangaben" nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > name=3D"measuredVariable" nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > name=3D"meterReading" nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > name=3D"zaehlwerkcode" nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > name=3D"newInstallationPlace" nillable=3D"true" type=3D"xsd:string"/>=20 >=20 > nillable=3D"true" type=3D"impl:ArrayOf_tns2_Zaehlwerk"/>=20 >=20 > =20 >=20 > =20 >=20 >