Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 26213 invoked from network); 20 Apr 2006 08:29:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2006 08:29:36 -0000 Received: (qmail 77505 invoked by uid 500); 20 Apr 2006 08:29:27 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 77086 invoked by uid 500); 20 Apr 2006 08:29:25 -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 77067 invoked by uid 99); 20 Apr 2006 08:29:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 01:29:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of recepayaz@gmail.com designates 64.233.184.228 as permitted sender) Received: from [64.233.184.228] (HELO wproxy.gmail.com) (64.233.184.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 01:29:23 -0700 Received: by wproxy.gmail.com with SMTP id 71so50054wri for ; Thu, 20 Apr 2006 01:29:02 -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:references; b=Z/Lp3EXaS9rInGuXDr95wcVmd7WT01IszBRYvbL6plA6BUqHYhITD9iZaAPWEZWDsyQez+9MbcScKoBCI8Zn/tLEA3ApBJqBb0iJr+RhDbvfl+pvar+K89wzSwEGgMz/OhTGtIhxHdAZkwI1X88vexivBW7ZiTFNW3KbRt5NQEQ= Received: by 10.54.67.6 with SMTP id p6mr320375wra; Thu, 20 Apr 2006 01:29:01 -0700 (PDT) Received: by 10.54.100.13 with HTTP; Thu, 20 Apr 2006 01:29:01 -0700 (PDT) Message-ID: <8d249d1d0604200129y4599d64mdd67d3078452ec2@mail.gmail.com> Date: Thu, 20 Apr 2006 11:29:01 +0300 From: "Recep Ayaz" To: axis-user@ws.apache.org Subject: Re: string attribute problem In-Reply-To: <200604191512.23291.robertlazarski@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2849_21492639.1145521741720" References: <8d249d1d0604190829h60866ebaqa21ba043a4a22454@mail.gmail.com> <200604191512.23291.robertlazarski@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_2849_21492639.1145521741720 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Robert However i exceed that error. My web service working.I can its name on the axis list page also i axis generate wsdl file for that service. but in test step, i am sending a soap client but web service does not answe= r to me. I can see request soap message at SOAP Monitor but the response not exist.nothing. for testing i am using altova xmlspy program.I send this soap request message String ***************************************************************************= ********* and i the result : String ***************************************************************************= ********* these are my java class: /** * TextClass.java * * This file was auto-generated from WSDL * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter. */ package uygulama2; public class TextClass implements java.io.Serializable { private java.lang.String stringParameter; private java.lang.String stringParameter2; // attribute public TextClass() { } public TextClass( java.lang.String stringParameter, java.lang.String stringParameter2) { this.stringParameter =3D stringParameter; this.stringParameter2 =3D stringParameter2; } /** * Gets the stringParameter value for this TextClass. * * @return stringParameter */ public java.lang.String getStringParameter() { return stringParameter; } /** * Sets the stringParameter value for this TextClass. * * @param stringParameter */ public void setStringParameter(java.lang.String stringParameter) { this.stringParameter =3D stringParameter; } /** * Gets the stringParameter2 value for this TextClass. * * @return stringParameter2 */ public java.lang.String getStringParameter2() { return stringParameter2; } /** * Sets the stringParameter2 value for this TextClass. * * @param stringParameter2 */ public void setStringParameter2(java.lang.String stringParameter2) { this.stringParameter2 =3D stringParameter2; } private java.lang.Object __equalsCalc =3D null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof TextClass)) return false; TextClass other =3D (TextClass) obj; if (obj =3D=3D null) return false; if (this =3D=3D obj) return true; if (__equalsCalc !=3D null) { return (__equalsCalc =3D=3D obj); } __equalsCalc =3D obj; boolean _equals; _equals =3D true && ((this.stringParameter=3D=3Dnull && other.getStringParameter()= =3D=3Dnull) || (this.stringParameter!=3Dnull && this.stringParameter.equals(other.getStringParameter()))) && ((this.stringParameter2=3D=3Dnull && other.getStringParameter2(= )=3D=3Dnull) || (this.stringParameter2!=3Dnull && this.stringParameter2.equals(other.getStringParameter2()))); __equalsCalc =3D null; return _equals; } private boolean __hashCodeCalc =3D false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc =3D true; int _hashCode =3D 1; if (getStringParameter() !=3D null) { _hashCode +=3D getStringParameter().hashCode(); } if (getStringParameter2() !=3D null) { _hashCode +=3D getStringParameter2().hashCode(); } __hashCodeCalc =3D false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc =3D new org.apache.axis.description.TypeDesc(TextClass.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("", ">TextClass")); org.apache.axis.description.AttributeDesc attrField =3D new org.apache.axis.description.AttributeDesc(); attrField.setFieldName("stringParameter2"); attrField.setXmlName(new javax.xml.namespace.QName("", "StringParameter2")); attrField.setXmlType(new javax.xml.namespace.QName(" http://www.w3.org/2001/XMLSchema", "string")); typeDesc.addFieldDesc(attrField); org.apache.axis.description.ElementDesc elemField =3D new org.apache.axis.description.ElementDesc(); elemField.setFieldName("stringParameter"); elemField.setXmlName(new javax.xml.namespace.QName("", "StringParameter")); elemField.setXmlType(new javax.xml.namespace.QName(" http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } } ------------------------------------ package uygulama2; public class UY2Class { public UY2Class() { } public String uygulama2Method (TextClass TCS){ String ss =3D TCS.getStringParameter()+" "+TCS.getStringParameter2(); System.out.println(ss); return ss; } } ***************************************************************************= ********* this is my wsdd file: http://www.recepayaz.com/MyApp ***************************************************************************= ********* also this is my web service wsdl file ( axis generate ) ********************************************************************* Please help me i am really stuck. Thanks for interesting. Have nice day Recep Ayaz ------=_Part_2849_21492639.1145521741720 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Robert
 However i exceed that error.
 My web service w= orking.I can its name on the axis list page also i axis generate wsdl file = for that service.
but in test step, i am sending a soap client but web s= ervice does not answer to me.
I can see request soap message at SOAP  Monitor but the response n= ot exist.nothing.

for testing i am using altova xmlspy program.I sen= d this soap request message

<SOAP-ENV:Envelope xmlns:SOAP-ENV=3D&= quot; http://schemas.xmlsoa= p.org/soap/envelope/" xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/<= /a> " xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=3D"<= a href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchem= a ">
    <SOAP-ENV:Body>
   = ;     <m:TCS xmlns:m=3D"http://www.recepayaz.com/MyApp" StringParameter2=3D= "Deneme">
          = ;  <m:StringParameter>String</m:StringParameter>
        </m:TCS>
  &nb= sp; </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
***************= *********************************************************************
an= d i the result :

<SOAP-ENV:Envelope xmlns:SOAP-ENV=3D" http://schemas.xmlsoa= p.org/soap/envelope/" xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/<= /a> " xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=3D"<= a href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchem= a ">
    <SOAP-ENV:Body>
   = ;     <m:TCS xmlns:m=3D"http://www.recepayaz.com/MyApp" StringParameter2=3D= "Deneme">
          = ;  <m:StringParameter>String</m:StringParameter>
        </m:TCS>
  &nb= sp; </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
***************= *********************************************************************
th= ese are my java class:

/**
 * TextClass.java
 *
 * This file was auto-generated from WSDL
 * by= the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
&nbs= p;*/

package uygulama2;

public class TextClass  implemen= ts java.io.Serializable {
    private java.lang.String stringParameter;

&= nbsp;   private java.lang.String stringParameter2;  // attri= bute

    public TextClass() {
    }=

    public TextClass(
    &nb= sp;      java.lang.String stringParameter,
           java.lang.= String stringParameter2) {
       &nb= sp;   this.stringParameter =3D stringParameter;
  &n= bsp;        this.stringParameter2 =3D st= ringParameter2;
    }


    /**     * Gets the stringParameter value for this TextCl= ass.
     *
     * @return strin= gParameter
     */
    public java= .lang.String getStringParameter() {
      =   return stringParameter;
    }


 &nb= sp;  /**
     * Sets the stringParameter value = for this TextClass.
     *
     * @param string= Parameter
     */
    public void = setStringParameter(java.lang.String stringParameter) {
   = ;     this.stringParameter =3D stringParameter;
&nbs= p;   }


    /**
   &nb= sp; * Gets the stringParameter2 value for this TextClass.
     *
     * @return strin= gParameter2
     */
    public jav= a.lang.String getStringParameter2() {
     &nbs= p;  return stringParameter2;
    }


 =    /**
     * Sets the stringParameter2 va= lue for this TextClass.
     *
     * @param string= Parameter2
     */
    public void= setStringParameter2(java.lang.String stringParameter2) {
  &n= bsp;     this.stringParameter2 =3D stringParameter2;    }

    private java.lang.Object __equalsCalc =3D null;
    public synchronized boolean e= quals(java.lang.Object obj) {
       = if (!(obj instanceof TextClass)) return false;
    =     TextClass other =3D (TextClass) obj;
  &nbs= p;     if (obj =3D=3D null) return false;
        if (this =3D=3D obj) return = true;
        if (__equalsCalc !=3D n= ull) {
           = ; return (__equalsCalc =3D=3D obj);
      =   }
        __equalsCalc =3D obj= ;
        boolean _equals;
 &= nbsp;      _equals =3D true &&=20
            ((th= is.stringParameter=3D=3Dnull && other.getStringParameter()=3D=3Dnul= l) ||
           = ;  (this.stringParameter!=3Dnull &&
    = ;          this.stringParamete= r.equals(other.getStringParameter()))) &&
            ((th= is.stringParameter2=3D=3Dnull && other.getStringParameter2()=3D=3Dn= ull) ||
          &nb= sp;  (this.stringParameter2!=3Dnull &&
   &n= bsp;          this.stringParam= eter2.equals(other.getStringParameter2 ())));
        __equalsCalc =3D null;=
        return _equals;
 &nb= sp;  }

    private boolean __hashCodeCalc =3D fa= lse;
    public synchronized int hashCode() {
 &n= bsp;      if (__hashCodeCalc) {
  &nb= sp;         return 0;
        }
    = ;    __hashCodeCalc =3D true;
    &nb= sp;   int _hashCode =3D 1;
      = ;  if (getStringParameter() !=3D null) {
    &n= bsp;       _hashCode +=3D getStringParameter(= ).hashCode();
        }
 &nbs= p;      if (getStringParameter2() !=3D null) {
            _has= hCode +=3D getStringParameter2().hashCode();
    &nb= sp;   }
        __hashCodeC= alc =3D false;
        return _hashCo= de;
    }

    // Type metadata
&= nbsp;   private static org.apache.axis.description.TypeDesc typeDesc =3D
        new org.apache.= axis.description.TypeDesc(TextClass.class, true);

   = static {
        typeDesc.setXmlType= (new javax.xml.namespace.QName("", ">TextClass"));       =20 org.apache.axis.description.AttributeDesc attrField =3D new org.apache.axis= .description.AttributeDesc();
       = attrField.setFieldName("stringParameter2");
   = ;     attrField.setXmlName(new javax.xml.namespace.QNam= e ("", "StringParameter2"));
    &= nbsp;   attrField.setXmlType(new javax.xml.namespace.QName("= http://www.w3.org/2001/XMLSche= ma", "string"));
        typeDesc.addFieldDesc(attrFi= eld);
        org.apache.axis.descrip= tion.ElementDesc elemField =3D new org.apache.axis.description.ElementDesc(= );
        elemField.setFieldName(&qu= ot;stringParameter");
        elemField.setXmlName(new javax.x= ml.namespace.QName("", "StringParameter"));
 &n= bsp;      elemField.setXmlType(new javax.xml.names= pace.QName("http://www.w3= .org/2001/XMLSchema ", "string"));
      &n= bsp; elemField.setNillable(false);
      &= nbsp; typeDesc.addFieldDesc(elemField);
    }

&nbs= p;   /**
     * Return type metadata objec= t
     */
    public static org.ap= ache.axis.description.TypeDesc getTypeDesc() {
        return typeD= esc;
    }

    /**
  &= nbsp;  * Get Custom Serializer
     */
 = ;   public static org.apache.axis.encoding.Serializer getSerializ= er(
           java.la= ng.String mechType,=20
           java.lang.= Class _javaType, 
        =    javax.xml.namespace.QName _xmlType) {
   &nb= sp;    return
       =    new  org.apache.axis.encoding.ser.BeanSerializer(
&nbs= p;           _javaType, _= xmlType, typeDesc);
    }

    /**
   = ;  * Get Custom Deserializer
     */
 &= nbsp;  public static org.apache.axis.encoding.Deserializer getDeserial= izer(
           java.= lang.String mechType,
        &= nbsp;  java.lang.Class _javaType, =20
           javax.xml.= namespace.QName _xmlType) {
        r= eturn
          new  = org.apache.axis.encoding.ser.BeanDeserializer(
    &= nbsp;       _javaType, _xmlType, typeDesc);    }

}
------------------------------------
package uygulama2;

public class UY2Class  {
  publi= c UY2Class() {
  }
 
  public String uygulama2Meth= od (TextClass TCS){
    String ss =3D TCS.getStringParame= ter()+"  "+TCS.getStringParameter2();
    System.out.println(ss);
    return= ss;
  }
}
**************************************************= **********************************
this is my wsdd file:

<depl= oyment xmlns=3D" http://xml.apache.org/axis/wsdd/"
  xmlns:java=3D"http://xml.apache.= org/axis/wsdd/providers/java" xmlns:Deneme=3D" http://www.recepayaz.com/MyApp">
    <serv= ice name=3D"MyApp" provider=3D"java:RPC" style=3D"= document" use=3D"literal">   
 &n= bsp;      <namespace> http://www.recepayaz.com/MyApp</namespace>
   &= nbsp;    <parameter name=3D"className" value=3D= "uygulama2.UY2Class"/>
      =   <parameter name=3D"allowedMethods" value=3D"*"= ;/>
     <requestFlow>
    &nbs= p;<handler type=3D"soapmonitor"/>
   &nb= sp; </requestFlow>
     <responseFlow> =
       <handler type=3D"soapmonit= or"/>
    </responseFlow>   =        =20
    </service>      =  
    <beanMapping qname=3D"MyApp:TextClass= " languageSpecificType=3D"java:uygulama2.TextClass"/>&nbs= p;  
</deployment>

*****************************= *******************************************************
also this is my web service wsdl file ( axis generate )

<?xml= version=3D"1.0" encoding=3D"UTF-8"?>
<wsdl:de= finitions targetNamespace=3D"http://www.recepayaz.com/MyApp " xmlns:apachesoap=3D"http://xml.apache.org/xml-soap" xmlns:impl=3D"http://www.recepayaz.com/MyApp" xm= lns:intf=3D" http://www.recepayaz.com/MyApp" xmlns:wsdl=3D"ht= tp://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap=3D" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema&= quot;>
<!--WSDL created by Apache Axis version: 1.3
Built on Oc= t 05, 2005 (05:23:37 EDT)-->
 <wsdl:types>
  <schema elementFormDefault=3D&quo= t;qualified" targetNamespace=3D"http://www.recepayaz.com/MyApp" xmlns=3D" http://www.w3.org/2001/XMLSchema">
   <complexT= ype name=3D"TextClass">
    <sequence>=
     <element name=3D"StringParameter"= nillable=3D"true" type=3D"xsd:string"/>
    </sequence>
    <attribut= e name=3D"StringParameter2" type=3D"xsd:string"/>   </complexType>
   <element name=3D"= ;TCS" type=3D"impl:TextClass"/>
   <eleme= nt name=3D"uygulama2MethodReturn" type=3D"xsd:string"/&= gt;
  </schema>
 </wsdl:types>

  = <wsdl:message name=3D"uygulama2MethodResponse">

&nb= sp;     <wsdl:part element=3D"impl:uygulama2Met= hodReturn" name=3D"uygulama2MethodReturn"/>

   </wsdl:message>

   <wsdl:mes= sage name=3D"uygulama2MethodRequest">

   = ;   <wsdl:part element=3D"impl:TCS" name=3D"TCS= "/>

   </wsdl:message>

   <wsdl:portType name=3D"UY2Class">

&= nbsp;     <wsdl:operation name=3D"uygulama2Meth= od" parameterOrder=3D"TCS">

   &nbs= p;     <wsdl:input message=3D"impl:uygulama2Met= hodRequest" name=3D"uygulama2MethodRequest"/>

         <wsdl:output me= ssage=3D"impl:uygulama2MethodResponse" name=3D"uygulama2Meth= odResponse"/>

      </wsdl:opera= tion>

   </wsdl:portType>

   <= ;wsdl:binding name=3D"MyAppSoapBinding" type=3D"impl:UY2Clas= s">

      <wsdlsoap:binding style=3D"d= ocument" transport=3D"http://schemas.xmlsoap.org/soap/http"/>

 &nbs= p;    <wsdl:operation name=3D"uygulama2Method"&= gt;

         <wsdlsoap:opera= tion soapAction=3D""/>

     &n= bsp;   <wsdl:input name=3D"uygulama2MethodRequest"&g= t;

           = ; <wsdlsoap:body use=3D"literal"/>

   = ;      </wsdl:input>

         <wsdl:output na= me=3D"uygulama2MethodResponse">

    = ;        <wsdlsoap:body use=3D"l= iteral"/>

         &= lt;/wsdl:output>

      </wsdl:operati= on>

   </wsdl:binding>

   <wsdl:service= name=3D"UY2ClassService">

    &nbs= p; <wsdl:port binding=3D"impl:MyAppSoapBinding" name=3D"M= yApp">

         <= wsdlsoap:address location=3D" http://localhost:8080= /axis/services/MyApp"/>

      &= lt;/wsdl:port>

   </wsdl:service>

</wsd= l:definitions>
******************************************************= ***************

Please help me i am really stuck.

Thanks for interesting.Have nice day

Recep Ayaz
------=_Part_2849_21492639.1145521741720--