Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 50655 invoked by uid 500); 28 Jun 2002 13:34:40 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 50646 invoked from network); 28 Jun 2002 13:34:39 -0000 Subject: Re: xsd:any as opposed to Element in Axis SOAP To: axis-dev@xml.apache.org X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000 Message-ID: From: scheu@us.ibm.com Date: Fri, 28 Jun 2002 08:34:39 -0500 X-MIMETrack: Serialize by Router on D04NM202/04/M/IBM(Build M13TT_06062002 Pre-release 2|June 06, 2002) at 06/28/2002 09:34:39 MIME-Version: 1.0 Content-type: multipart/related; Boundary="0__=0ABBE175DFD90CBD8f9e8a93df938690918c0ABBE175DFD90CBD" X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N --0__=0ABBE175DFD90CBD8f9e8a93df938690918c0ABBE175DFD90CBD Content-type: multipart/alternative; Boundary="1__=0ABBE175DFD90CBD8f9e8a93df938690918c0ABBE175DFD90CBD" --1__=0ABBE175DFD90CBD8f9e8a93df938690918c0ABBE175DFD90CBD Content-type: text/plain; charset=US-ASCII I think you want to user xsd:anyType. Let me know if you continue to have problems. Rich 'Shirley' Scheuerle IBM WebSphere & Axis Web Services Development 512-838-5115 (IBM TL 678-5115) "Bob Powell" net> cc: Subject: xsd:any as opposed to Element in Axis SOAP 06/28/2002 08:24 AM Please respond to axis-dev I need to create a web service with a parameter type of xsd:strng and a return type of xsd:any as opposed to tns1:element (where tns1 is xmlns:tns1 ="http://xml.apache.org/xml-soap") original WSDL element: desred WSDL element: wsdl:part name="sql" type="xsd:string" /> original WSDL element: desired WSDL element: When I use WSDL2Java to generate the service from my desired service description I get the error... java.io.IOException: Type http://www.w3.org/2001/XMLSchema:any is referenced but not defined. at org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(SymbolTable. java:405) at org.apache.axis.wsdl.toJava.SymbolTable.add(SymbolTable.java:331) at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:188) at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:155) at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java.java:725) at java.lang.Thread.run(Thread.java:484) TIA. Bob. Visit NetEdge Software to find out about the Web Service Enabler. Enable all your legacy VB6 applications to seamlessly connect to .NET web- services. http://www.netedgesoftware.com Need answers for your .NET questions? Why not buy my book C# and the .NET framework http://www.amazon.com/exec/obidos/ASIN/067232153X/bobpowelnet --1__=0ABBE175DFD90CBD8f9e8a93df938690918c0ABBE175DFD90CBD Content-type: text/html; charset=US-ASCII Content-Disposition: inline I think you want to user xsd:anyType. Let me know if you continue to have problems.

Rich 'Shirley' Scheuerle
IBM WebSphere & Axis Web Services Development
512-838-5115 (IBM TL 678-5115)
"Bob Powell" <bob@bobpowell.net>




          "Bob Powell" <bob@bobpowell.net>

          06/28/2002 08:24 AM
          Please respond to axis-dev



To: <axis-dev@xml.apache.org>
cc:
Subject: xsd:any as opposed to Element in Axis SOAP



I need to create a web service with a parameter type of xsd:strng and a return type of xsd:any as opposed to tns1:element (where tns1 is xmlns:tns1="http://xml.apache.org/xml-soap")

original WSDL element: <wsdl:part name="in0" type="tns1:Element" />
desred WSDL element: wsdl:part name="sql" type="xsd:string" />


original WSDL element: <wsdl:part name="return" type="tns1:Element" />
desired WSDL element: <wsdl:part name="return" type="xsd:any" />


When I use WSDL2Java to generate the service from my desired service description I get the error...

java.io.IOException: Type http://www.w3.org/2001/XMLSchema:any is referenced but not defined.
at org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(SymbolTable.java:405)
at org.apache.axis.wsdl.toJava.SymbolTable.add(SymbolTable.java:331)
at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:188)
at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:155)
at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java.java:725)
at java.lang.Thread.run(Thread.java:484)


TIA.

Bob.


Visit NetEdge Software to find out about the Web Service Enabler.
Enable all your legacy VB6 applications to seamlessly connect to .NET web-services.

http://www.netedgesoftware.com
Need answers for your .NET questions? Why not buy my book C# and the .NET framework
http://www.amazon.com/exec/obidos/ASIN/067232153X/bobpowelnet


--1__=0ABBE175DFD90CBD8f9e8a93df938690918c0ABBE175DFD90CBD-- --0__=0ABBE175DFD90CBD8f9e8a93df938690918c0ABBE175DFD90CBD Content-type: image/gif; name="graycol.gif" Content-Disposition: inline; filename="graycol.gif" Content-ID: <10__=0ABBE175DFD90CBD8f9e8a93df938@us.ibm.com> Content-transfer-encoding: base64 R0lGODlhEAAQAKECAMzMzAAAAP///wAAACH5BAEAAAIALAAAAAAQABAAAAIXlI+py+0PopwxUbpu ZRfKZ2zgSJbmSRYAIf4fT3B0aW1pemVkIGJ5IFVsZWFkIFNtYXJ0U2F2ZXIhAAA7 --0__=0ABBE175DFD90CBD8f9e8a93df938690918c0ABBE175DFD90CBD Content-type: image/gif; name="ecblank.gif" Content-Disposition: inline; filename="ecblank.gif" Content-ID: <20__=0ABBE175DFD90CBD8f9e8a93df938@us.ibm.com> Content-transfer-encoding: base64 R0lGODlhEAABAIAAAAAAAP///yH5BAEAAAEALAAAAAAQAAEAAAIEjI8ZBQA7 --0__=0ABBE175DFD90CBD8f9e8a93df938690918c0ABBE175DFD90CBD--