You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by j g <jg...@yahoo.com> on 2006/08/15 22:02:37 UTC

a question about axis

Hi,
  I have a php soap web service to query mssql database. I need to write a java client to call this service.Is Axis work for it and how? Will anybody give some example code?
  Thanks in advance
  --jg 

 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: a question about axis

Posted by Martin Gainty <mg...@hotmail.com>.
You need to publish your WSDL first
Afterwards you can do a WSDL2Java to create the necessary stubs-

M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  ----- Original Message ----- 
  From: Nicolas Guaneme 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, August 15, 2006 4:14 PM
  Subject: Re: a question about axis


  j g wrote: 
    Hi,
    I have a php soap web service to query mssql database. I need to write a java client to call this service.Is Axis work for it and how? Will anybody give some example code?
    Thanks in advance
    --jg 


----------------------------------------------------------------------------
    Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. 

----------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 15/08/2006


       
        Hello, with this ant-script you can generate the client:


        <project name="somthing">
            <property name="axis.home" value="C:/axis-1_3" />
            <property name="javamail.home" value="C:/javamail-1.4ea" />
            <property name="jaf.home" value="C:/jaf-1.0.2" />
            <path id="axis.classpath">    
                <fileset dir="axis/lib">
                        <include name="**/*.jar"/>
                </fileset>
                <fileset dir="C:/javamail-1.4ea/lib">
                        <include name="**/*.jar"/>
                </fileset>
                <fileset dir="C:/jaf-1.0.2">
                        <include name="**/*.jar"/>
                </fileset>
            </path>    
            <taskdef resource="axis-tasks.properties" classpathref="axis.classpath" />
            
            
            <target name="generate-client-stub">
                <axis-wsdl2java url="url-to-wsdl">
                    <mapping namespace="namespace"
                    package="packeage"/>
                </axis-wsdl2java>
            </target>


        </project>


        Nicolás G. Rico 
        Ing. Desarrollador.
        Avisortech Ltda.
        Teléfono: (571) 3 - 45 88 33
        nicolas.guaneme@avisortech.com 


------------------------------------------------------------------------
        Este mensaje y cualquier archivo anexo son confidenciales y para uso exclusivo de la persona(s) o entidad(es) a la(s) que va dirigido, en los términos de los acuerdos de confidencialidad previamente suscritos, si los hubiere. Su contenido está protegido por las normas que garantizan la inviolabilidad de la correspondencia y por las que tutelan el secreto industrial, secreto comercial, información sujeta a reserva bancaria o por cualquier otro tipo de secreto profesional o garantía similar, como la reserva entre abogado y cliente, según el caso. Por ello, si usted ha recibido este mensaje por error o equivocación, por favor bórrelo de su sistema inmediatamente, así como todas sus copias y notifique al remitente en forma inmediata. Bajo las leyes penales y civiles del país de origen de este correo, Usted no podrá usar, revelar, distribuir, imprimir o copiar ninguna de las partes de este mensaje sin el consentimiento del remitente. 

  --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org