Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 63974 invoked from network); 17 Aug 2006 19:38:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2006 19:38:07 -0000 Received: (qmail 91336 invoked by uid 500); 17 Aug 2006 19:37:58 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 91326 invoked by uid 500); 17 Aug 2006 19:37:58 -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 91315 invoked by uid 99); 17 Aug 2006 19:37:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 12:37:58 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of atmanes@gmail.com designates 66.249.82.225 as permitted sender) Received: from [66.249.82.225] (HELO wx-out-0506.google.com) (66.249.82.225) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 12:37:57 -0700 Received: by wx-out-0506.google.com with SMTP id s19so526383wxc for ; Thu, 17 Aug 2006 12:37:37 -0700 (PDT) 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:content-transfer-encoding:content-disposition:references; b=mMB2/UEUh9NEEGmk4/DtA8aGCbsp6G48zxYRH91LsVEyH6ms8i0Z3i+en9OVu2iE39BZ3wqf721GQhEuf3BNE3WWFH8a1fRAfXlVedGGh0tVCFhPmGnDI+QSQf6mnbk75Tj1rnTqBf7RI+OGfQbFO+XDosbe5SSSXQsyjUz9qXw= Received: by 10.49.75.2 with SMTP id c2mr2906833nfl; Thu, 17 Aug 2006 12:37:36 -0700 (PDT) Received: by 10.78.71.3 with HTTP; Thu, 17 Aug 2006 12:37:36 -0700 (PDT) Message-ID: Date: Thu, 17 Aug 2006 15:37:36 -0400 From: "Anne Thomas Manes" To: axis-user@ws.apache.org Subject: Re: how to call php soap service in java soap client with axis? In-Reply-To: <20060817145529.78688.qmail@web57108.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060817145529.78688.qmail@web57108.mail.re3.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Can you capture a sample SOAP message generated by the Perl client? On 8/17/06, j g wrote: > > Hi Anne, > Thanks for your reply. > I donot have WSDL for the service. Could you please tell me what should b= e > the qualifying-namespace and operationName in my case. > > Here is my perl soap client: > #!/usr/bin/perl -w > use SOAP::Lite; > my $client =3D SOAP::Lite->new(); > $client->proxy('http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbqu= ery.php'); > my $query =3D "select top 10 * from DocText ; > my $som =3D $client->dbquery("server", "database","username", "password", > "$query") || die "Query failed $!"; # parameters (server, database, user, > password, query) > > > Looking forward to hearing from you > > > > Anne Thomas Manes wrote: > > You need to set some attributes in the call object. Take a look at the > Axis "getting started" documentation > (http://ws.apache.org/axis/java/user-guide.html#BasicsGettingStarted). > > At a minimum, you must set the target URL and the operation name, eg: > > call.setTargetEndpointAddress( new java.net.URL(url) ); > call.setOperationName(new QName("qualifying-namespace", > "operationName")); > > Do you have a WSDL for the service? That will tell you the appropriate > values to specify. If not, then do you have a sample message that > worked from the perl client? You can find the qualified name of the > operation from it -- it's the name of child element of the > . > > Anne > > > On 8/16/06, Larry Lemons wrote: > > > > > > So, I'm guessing nobody has any ideas on this one? Or is more informati= on > > needed to get an answer? I really do need some help. We are at at stand > > still and have no other ideas. > > > > > > > > > > Thank you, > > > > Larry M. Lemons > > > > (304) 726-4809 Ext. 4505 > > > > > > > > > > ________________________________ > > From: Larry Lemons [mailto:llemons@imcwv.com] > > Sent: Wednesday, August 16, 2006 10:58 AM > > > > To: axis-user@ws.apache.org > > Subject: RE: how to call php soap service in java soap client with axis= ? > > > > > > > > You need to make sure you have all the required jar files in your > classpath, > > i.e. all the jar files that came with AXIS. As for needing to install > > Tomcat, unless it is the soap client is running as a servlet or jsp, yo= u > > shouldn't need Tomcat. The client will connect to the php soap service. > > > > > > > > Thank you, > > > > Larry M. Lemons > > > > (304) 726-4809 Ext. 4505 > > > > > > > > > > ________________________________ > > From: j g [mailto:jg111gj@yahoo.com] > > Sent: Wednesday, August 16, 2006 10:10 AM > > To: axis-user@ws.apache.org > > Subject: how to call php soap service in java soap client with axis? > > > > > > > > Hi, > > I am new for the Axis. > > I had a php soap service to query our mssql database, I also have a per= l > > soap client to call the service by providing parameters like username, > > password etc. They both work fine. > > > > Now, I need to write a java soap client to call the php soap service > instead > > of the soap client written in perl. Since the service is writen with ph= p, > I > > did not install tomcat at my client computer(do I need it?) > > > > Here is my java code.. When I compile the code, there are errors like: > > package org.apache.axis does not exist > > > > package mysrc.testjavasoap; > > import java.util.*; > > import org.apache.axis.AxisEngine; > > import org.apache.axis.client.Call; > > import org.apache.axis.soap.SOAPConstants; > > public class javasoap { > > > > public void main () throws Exception{ > > String url =3D > > > "http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbquery.php"; > > String query=3D"select top 10 * from DocText"; > > Call call =3D new Call(url); > > Object[] params =3D new Object[] {"db3", "bionlp","username", > > "password", query}; > > String result =3D (String)call.invoke("", params); > > } > > } > > > > Hope somebody can help me! > > Thanks > > --jg > > > > > > ________________________________ > > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ > > countries) for 2=A2/min or less. > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org