Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 70831 invoked from network); 17 Jan 2006 16:45:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jan 2006 16:45:34 -0000 Received: (qmail 31602 invoked by uid 500); 17 Jan 2006 16:45:23 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 31577 invoked by uid 500); 17 Jan 2006 16:45:22 -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: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 31554 invoked by uid 99); 17 Jan 2006 16:45:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 08:45:22 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of atmanes@gmail.com designates 64.233.184.205 as permitted sender) Received: from [64.233.184.205] (HELO wproxy.gmail.com) (64.233.184.205) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 08:45:20 -0800 Received: by wproxy.gmail.com with SMTP id i34so1308661wra for ; Tue, 17 Jan 2006 08:45:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=uRQphN5UvQ+XHjh89zE6KQ/4G0piY1MPOoh5MBqQe8u7LvMuZUiE+0Lj4AV1MNdfUENm5NHXhI2ac5pyU5vdAWjdJpJYo4UcuqAqzzTI2e+P/dmCEsOxnEciRZAg1RTChCrZduhwoIxX54qkA6xwTE1Z1aUsZhHfiZAtNGxGwWk= Received: by 10.54.113.17 with SMTP id l17mr8778457wrc; Tue, 17 Jan 2006 08:44:57 -0800 (PST) Received: by 10.54.100.1 with HTTP; Tue, 17 Jan 2006 08:44:56 -0800 (PST) Message-ID: Date: Tue, 17 Jan 2006 11:44:56 -0500 From: Anne Thomas Manes To: axis-user@ws.apache.org Subject: Re: WSDL2JAVA for message style interfaces.. In-Reply-To: <43CCBD78.3010400@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15331_31929100.1137516296503" References: <43CCBD78.3010400@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_15331_31929100.1137516296503 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yikes! Where did you get this schema? You absolutely should not have this type of information in the schema for a message style service. This schema is describing elements used to process XML, but all you want to describe is th= e XML that you will send back and forth. For example, you shouldn't be referencing things like parent and child node= s or attributes in your message description. You also shouldn't be using any soapenc types. Anne On 1/17/06, Alex.K wrote: > > > Hi, > > I'm trying to generate the service stubs for a message style interface > from a WSDL file but seems there are some namespace definitions such as: > xmlns:tns3=3D"http://dom.w3c.org" or xmlns:tns6=3D"http://sax.xml.org whi= ch > for them the namespaces have been imported but the schemaLocation is not > generated. There is no schema at the specified URI either then the > wsdl2java tool doesn't know how to process associated types; > "Attributes" and "Node". > > Does anybody know how to fix this problem and how to find/Where to > import proper naming schema and so ?? > > There is a thread in this mailing list for the same problem but doesn't > come with the final solution. > > > Cheers > > > Alex. > > > Parts of WSDL schema... > > . > . > . > > xmlns:apachesoap=3D"http://xml.apache.org/xml-soap" > xmlns:soapenc=3D"http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns2=3D= " > http://message.axis.apache.org" xmlns:tns3=3D"http://dom.w3c.org" > xmlns:tns4=3D"http://soap.xml.javax" xmlns:tns5=3D"http://util.java" > xmlns:tns6=3D"http://sax.xml.org" xmlns:tns7=3D" > http://encoding.axis.apache.org" xmlns:tns8=3D"http://soap.axis.apache.or= g" > xmlns:tns9=3D"http://schema.axis.apache.org" 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"> > > > http://www.w3.org/2001/XMLSchema"> > > > > > > > > > > > > > > > > > > > > > > > type=3D"apachesoap:Document"/> > > > > > > > > > > > > > > > > > > type=3D"impl:ArrayOf_xsd_anyType"/> > > > > type=3D"apachesoap:Document"/> > > > type=3D"tns5:Iterator"/> > type=3D"impl:ArrayOf_xsd_anyType"/> > type=3D"tns6:Attributes"/> > > type=3D"xsd:anyType"/> > > type=3D"soapenc:string"/> > > > type=3D"xsd:anyType"/> > > > > type=3D"tns5:Iterator"/> > > type=3D"tns2:MessageElement"/> > type=3D"tns2:SAX2EventRecorder"/> > > > > type=3D"tns5:Iterator"/> > type=3D"impl:ArrayOf_xsd_anyType"/> > > > > > > > > > > > > > . > . > . > ------=_Part_15331_31929100.1137516296503 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yikes!

Where did you get this schema? You absolutely should not have this type of information in the schema for a message style service. This schema is describing elements used to process XML, but all you want to describe is the XML that you will send back and forth.

For example, you shouldn't be referencing things like parent and child nodes or attributes in your message description. You also shouldn't be using any soapenc types.

Anne

On 1/17/06, Alex.K <alex1353@g= mail.com> wrote:

Hi,

I'm trying to generate the service stubs for a message style= interface
from a WSDL file but seems there are some namespace definitio= ns such as:
xmlns:tns3=3D"http://dom= .w3c.org " or xmlns:tns6=3D"http://sax.= xml.org which
for them the namespaces have been imported but the sch= emaLocation is not
generated. There is no schema at the specified URI ei= ther then the
wsdl2java tool doesn't know how to process associated types;
"A= ttributes" and "Node".

Does anybody know how to fix t= his problem and how to find/Where to
import proper naming schema and so = ??

There is a thread in this mailing list for the same problem but doe= sn't
come with the final solution.


Cheers


Alex.

Parts of WSDL schema...

.
.
.

xmlns:apachesoap= =3D" http://xml.apache.org/xml-soap"
xmlns:soapenc=3D"
http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns2=3D"http://messag= e.axis.apache.org" xmlns:tns3=3D"http://dom.w3c.org&qu= ot; xmlns:tns4=3D"http://soap.xml.ja= vax" xmlns:tns5=3D"http://util.java" = xmlns:tns6=3D"http://sax.xml.org&qu= ot; xmlns:tns7=3D"http://encod= ing.axis.apache.org" xmlns:tns8=3D"http://soap.axis.apache.org" xmlns:tns9=3D" http://schema.axis.apache.org" xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/" xml= ns:wsdlsoap=3D"http:= //schemas.xmlsoap.org/wsdl/soap/ " xmlns:xsd=3D"h= ttp://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apa= che Axis version: 1.2.1
Built on Jun 07, 2005 (10:11:43 EDT)-->
&= lt;wsdl:types>
  <schema targetNamespace=3D"http://message.axis.apache.org" xmlns=3D"<= a href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchem= a">
   <import namespace=3D"http://schema.axis.apache.org"/>
 &= nbsp; <import namespace=3D"http://encoding.axis.apache.org"/ >
   <import namespace=3D"http://soap.axis.apache.org"/>
&nb= sp;  <import namespace=3D"http://soap.xml.javax"/ >
   <import namespace=3D"http://util.java"/>
   <import n= amespace=3D"http://sax.xml.org&q= uot;/>
   <import namespace=3D" http://xml.apache.org/xml= -soap"/>
   <import namespace=3D"http://dom.w3c.org"/>
 &= nbsp; <import namespace=3D" http://schemas= .xmlsoap.org/soap/encoding/"/>
   <complexType = name=3D"NodeImpl">
    <sequence>=
     <element name=3D"attributes" nill= able=3D"true" type=3D"xsd:anyType"/>
     <element name=3D"childNodes" nill= able=3D"true" type=3D"xsd:anyType"/>
  =    <element name=3D"dirty" type=3D"xsd:boolean&= quot;/>
     <element name=3D"firstChild&= quot; nillable=3D"true" type=3D"xsd:anyType"/>
     <element name=3D"lastChild" nilla= ble=3D"true" type=3D"tns3:Node"/>
  &nb= sp;  <element name=3D"localName" nillable=3D"true&qu= ot; type=3D"soapenc:string"/>
     <= element name=3D"namespaceURI" nillable=3D"true" type=3D= "soapenc:string"/>
     <element name=3D"nextSibling" nil= lable=3D"true" type=3D"tns3:Node"/>
  &= nbsp;  <element name=3D"nodeName" nillable=3D"true&q= uot; type=3D"soapenc:string"/>
     <= ;element name=3D"nodeType" type=3D"xsd:short"/>
     <element name=3D"nodeValue" nilla= ble=3D"true" type=3D"soapenc:string"/>
 &nbs= p;   <element name=3D"ownerDocument" nillable=3D&quo= t;true" type=3D"apachesoap:Document"/>
     <element name=3D"parentElement" n= illable=3D"true" type=3D"xsd:anyType"/>
 &nb= sp;   <element name=3D"parentNode" nillable=3D"= true" type=3D"tns3:Node"/>
     <element name=3D"prefix" nillable=3D&= quot;true" type=3D"soapenc:string"/>
   = ;  <element name=3D"previousSibling" nillable=3D"tru= e" type=3D"tns3:Node"/>
     <e= lement name=3D"value" nillable=3D"true" type=3D"so= apenc:string"/>
    </sequence>
   </complexT= ype>
   <complexType name=3D"SAX2EventRecorder"= ;>
    <sequence>
   &nbs= p; <element name=3D"length" type=3D"xsd:int"/>    </sequence>
   </complexType>
   <complexType name= =3D"MessageElement">
    <complexCon= tent>
     <extension base=3D"tns2:NodeIm= pl">
      <sequence>
&nb= sp;      <element name=3D"ID" nillabl= e=3D"true" type=3D"soapenc:string"/>
       <element name=3D"NSMapping= s" nillable=3D"true" type=3D"impl:ArrayOf_xsd_anyType&q= uot;/>
       <element name=3D"= QName" nillable=3D"true" type=3D"xsd:QName"/>
       <element name=3D"allAttrib= utes" nillable=3D"true" type=3D"xsd:anyType"/><= br>       <element name=3D"asDOM"= ; nillable=3D"true" type=3D"apachesoap:Element"/>
       <element name=3D"asDocumen= t" nillable=3D"true" type=3D"apachesoap:Document"/= >
       <element name=3D"asStr= ing" nillable=3D"true" type=3D"soapenc:string"/>= ;
       <element name=3D"attribute= sEx" nillable=3D"true" type=3D"xsd:anyType"/>       <element name=3D"childElemen= ts" nillable=3D"true" type=3D"tns5:Iterator"/>
       <element name=3D"children&= quot; nillable=3D"true" type=3D"impl:ArrayOf_xsd_anyType&quo= t;/>
       <element name=3D"co= mpleteAttributes" nillable=3D"true" type=3D"tns6:Attrib= utes"/>
       <element name=3D"contentsI= ndex" type=3D"xsd:int"/>
     = ;  <element name=3D"deserializationContext" nillable=3D&q= uot;true" type=3D"xsd:anyType"/>
   &nb= sp;   <element name=3D"elementName" nillable=3D"= ;true" type=3D"xsd:anyType"/>
       <element name=3D"encodingS= tyle" nillable=3D"true" type=3D"soapenc:string"/&g= t;
       <element name=3D"endInde= x" type=3D"xsd:int"/>
     &n= bsp; <element name=3D"envelope" nillable=3D"true" ty= pe=3D"tns2:SOAPEnvelope"/>
       <element name=3D"fixupDese= rializer" nillable=3D"true" type=3D"xsd:anyType"/&= gt;
       <element name=3D"href&q= uot; nillable=3D"true" type=3D"soapenc:string"/>
       <element name=3D"length&qu= ot; type=3D"xsd:int"/>
      = <element name=3D"name" nillable=3D"true" type=3D&qu= ot;soapenc:string"/>
       <el= ement name=3D"namespacePrefixes" nillable=3D"true" type= =3D"tns5:Iterator"/>
       <element name=3D"objectVal= ue" nillable=3D"true" type=3D"xsd:anyType"/>       <element name=3D"realElement&= quot; nillable=3D"true" type=3D"tns2:MessageElement"/&g= t;
       <element name=3D"recorder&= quot; nillable=3D"true" type=3D"tns2:SAX2EventRecorder"= />
       <element name=3D"root= " type=3D"xsd:boolean"/>
     = ;  <element name=3D"tagName" nillable=3D"true" = type=3D"soapenc:string"/>
       <element name=3D"type"= ; nillable=3D"true" type=3D"xsd:QName"/>
 &n= bsp;     <element name=3D"visibleNamespacePrefi= xes" nillable=3D"true" type=3D"tns5:Iterator"/>
       <element name=3D"namespace= s" nillable=3D"true" type=3D"impl:ArrayOf_xsd_anyType&q= uot;/>
      </sequence>
 = ;    </extension>
    </comp= lexContent>
   </complexType>
   <complexType name=3D"SOAPBodyElement">
=     <complexContent>
     = <extension base=3D"tns2:MessageElement">
  &nb= sp;   <sequence/>
     </ext= ension>
    </complexContent>
   </complexType>

.
.
.

------=_Part_15331_31929100.1137516296503--