Return-Path: Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 74324 invoked by uid 500); 11 Jun 2003 12:47:03 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 74309 invoked from network); 11 Jun 2003 12:47:03 -0000 Message-ID: <005701c33017$687ba2e0$d4b6900c@TPX21> From: "Anne Thomas Manes" To: Subject: Fw: style="document" 1_1RC2 Date: Wed, 11 Jun 2003 08:45:50 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Is someone working on fixing the way java2wsdl generates doc/literal WSDL files? Anne ----- Original Message ----- From: To: Cc: <"mailt≯䀀洀愀渀攀猀⸀渀攀琀 Sent: Wednesday, June 11, 2003 8:29 AM Subject: RE: style="document" 1_1RC2 > Anne, > > Thanks for responding. Maybe I didn't make myself clear, but the service is > one that I created myself using a very simple Java class deployed in the > Axis server, hence the WSDL is generated by Axis, not me. > > Is it un-reasonable to expect Axis to be able to read its own WSDL? > > Regards, > > Adrian. > > > -----Original Message----- > From: Anne Thomas Manes [mailto:anne@manes.net] > Sent: 11 June 2003 13:24 > To: axis-user@ws.apache.org > Subject: Re: style="document" 1_1RC2 > > > I suggest you get hold of a WSDL tool, such as Omniopera, XMLSpy, or the > Cape Clear WSDL editor to help you write your WSDL documents. Your errors > are caused by invalid Qnames. > > You need to define a targetNamspace for the section. Otherwise you > have no way to reference the elements that you've defined. Your > section should look like this: > > > targetNamespace="http://cpwsdd.devenv1.bt.co.uk:63024/axis/services/SimpleDo > cument" > xmlns="http://www.w3.org/2001/XMLSchema"> > > > > > > Note: there is no reason to import the SOAP Encoding schema.And since the > XML Schema namespace is the default namespace, you don't need to prefix > "string" with "xsd:". > > Then, in your definitions, you must qualify your elements: > > > > > > > > > You also don't want to define the namespace attribute in your > element. (The SOAP engine should automatically specify the > targetNamespace of the definition of the message element. The namespace > attribute should be used only for encoded messages, in which case you have > no predefined namespace, since you aren't using a literal schema.) So your > elements should look like this: > > > > Best regards, > Anne > > ----- Original Message ----- > From: > To: > Sent: Wednesday, June 11, 2003 5:48 AM > Subject: style="document" 1_1RC2 > > > > > I have deployed a very simple service using style="document". The WSDL > > > looks like this: > > > > > > > > > > > > targetNamespace="http://cpwsdd.devenv1.bt.co.uk:63024/axis/services/Simple > > > Document" xmlns="http://schemas.xmlsoap.org/wsdl/" > > > xmlns:apachesoap="http://xml.apache.org/xml-soap" > > > > xmlns:impl="http://cpwsdd.devenv1.bt.co.uk:63024/axis/services/SimpleDocum > > > ent" > > > > xmlns:intf="http://cpwsdd.devenv1.bt.co.uk:63024/axis/services/SimpleDocum > > > ent" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > > > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > targetNamespace="" xmlns="http://www.w3.org/2001/XMLSchema"> > > namespace="http://schemas.xmlsoap.org/soap/encoding/"/> name="in" > > > type="xsd:string"/> > > type="xsd:string"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="reverseResponse"/> > > > > > > > > > > > > > > transport="http://schemas.xmlsoap.org/soap/http"/> > > > > > > > > > > > > > > > namespace="http://cpwsdd.devenv1.bt.co.uk:63024/axis/services/SimpleDocume > > > nt" use="literal"/> > > > > > > > > > > > > namespace="http://cpwsdd.devenv1.bt.co.uk:63024/axis/services/SimpleDocume > > > nt" use="literal"/> > > > > > > > > > > > > > > > > > name="SimpleDocument"> > > > > > > location="http://cpwsdd.devenv1.bt.co.uk:63024/axis/services/SimpleDocumen > > > t"/> > > > > > > > > > > > > > > > When I try and generate client stubs for it using > > > org.apache.axis.wsdl.WSDL2Java I get > > > > > > Parsing XML file: > > > http://cpwsdd.devenv1.bt.co.uk:63024/axis/services/SimpleDocument?wsdl > > > java.io.IOException: Element > > > {http://schemas.xmlsoap.org/wsdl/}reverseReturn is referenced but not > > > defined. > > > at > > > > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable > > > .java:527) > > > 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(Thread.java:484) > > > > > > Is this a bug, or am I doing something wrong ? > > > > > > TIA > > > > > > Adrian > > >