Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 20292 invoked from network); 8 Jul 2005 21:18:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jul 2005 21:18:07 -0000 Received: (qmail 36132 invoked by uid 500); 8 Jul 2005 21:17:55 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 36121 invoked by uid 500); 8 Jul 2005 21:17:55 -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 36107 invoked by uid 99); 8 Jul 2005 21:17:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 14:17:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [65.204.51.35] (HELO imssout1.pbworld.com) (65.204.51.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 14:17:53 -0700 Received: from nycmrmt1.corp.pbwan.net ([10.1.128.220]) by nycmims1.corp.pbwan.net with Microsoft SMTPSVC(5.0.2195.6713); Fri, 8 Jul 2005 17:17:52 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: RE: Passing an xml string as a parameter Date: Fri, 8 Jul 2005 17:17:51 -0400 Message-ID: <25D454F3DBD1AF46A718F761CB11ABE102F5C1A9@nycmrmt1.corp.pbwan.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Passing an xml string as a parameter Thread-Index: AcWD88xWl9gYwCb8TpK9x/q7te7r1gAAPqQAAANTzbA= From: "Miller, Janet" To: X-OriginalArrivalTime: 08 Jul 2005 21:17:52.0119 (UTC) FILETIME=[7FF06870:01C58402] X-imss-version: 2.028 X-imss-result: Passed X-imss-scanInfo: M:P L:E OPT:1,0,0,0,0 X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:3.5.1043(13827.000) X-imss-scores: Clean:99.90000 C:2 M:12 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Forgot to say that the wsdl that I'm using confirms that use=3D"literal" and style=3D"document". Jan -----Original Message----- From: Miller, Janet=20 Sent: Friday, July 08, 2005 5:16 PM To: 'axis-user@ws.apache.org' Subject: RE: Passing an xml string as a parameter I've already used wsdl2java to create a web service from a remote wsdl file that I've received. My web service is working and I have a client that is succesfully accessing it and retrieving data. But how would wsdl2java know my schema definition? It didn't generate a class that represents the data model. It just generated 6 java files: TZCService, TZCServiceLocator, TZCServiceSoap, TZCServiceSoapImpl, TZCServiceSoapSkeleton, and TZCServiceSoapStub. There is nothing that contains the xml return document elements. Do I need to put an xsd file somewhere? In my xml namespace or target namespace? If someone could provide some step-by-step process on how to do this, I would GREATLY appreciate it. Jan -----Original Message----- From: Jeff [mailto:jeff@cogentlogic.com]=20 Sent: Friday, July 08, 2005 3:33 AM To: axis-user@ws.apache.org Subject: Re: Passing an xml string as a parameter Don't feel foolish, we are not born knowing this stuff! Start with a WSDL document then the WSDL2Java tool (part of Axis) can be used to generate a data model in the form of classes with persistence methods (serialization/deserialization). Consequently, Axis is able to generate and parse the XML for you. Alternatively or additionally, if you like, you can handle the SOAP payload as a document. Documents have the advantage of being something more tangible than mere parameters. Originators can sign documents, for instance. Documents can be stored in a variety of places, e.g. a search engine or a database. Jeff ----- Original Message -----=20 From: "Miller, Janet" To: Sent: Friday, July 08, 2005 2:52 PM Subject: RE: Passing an xml string as a parameter Yup, I'm a newbie and feel foolish now, but I need to ask some more questions about this. I've looked at the Axis user guide and some other sites and I'm still confused about how to map the returned xml document to a Java object. How do you do this? Will Axis do this automatically for me or do I have to parse the returned xml string myself? Thanks for your help, Jan -----Original Message----- From: Jeff [mailto:jeff@cogentlogic.com] Sent: Friday, July 08, 2005 2:17 AM To: axis-user@ws.apache.org Subject: Re: Passing an xml string as a parameter Find out about document-literal, Jan. ----- Original Message -----=20 From: "Miller, Janet" To: Sent: Friday, July 08, 2005 2:14 PM Subject: Passing an xml string as a parameter I was just wondering if anyone had any thoughts on this. I am going to access another company's web service and the input parameter to the web service is an xml string that represents a query request for data. The response that I get back is also an xml string. So, instead of passing multiple parameters, we are just passing on xml string parameter. So I guess the soap packet would be xml within xml which seems kind of odd. I guess it will probably work, but is this an ok way to do things? Just curious about people's thoughts on something like this. Thanks, Jan