Re: Passing 2 byte arrays to web service is yielding strange results

2009-08-16 Thread Andreas Veithen
Could be the same issue as AXIS2-4308. Martin, are you looking into this?

Andreas

On Fri, Aug 14, 2009 at 22:17, Martin Gaintymgai...@hotmail.com wrote:
 cant access the aar ?
 any ability to put this on a http or ftp site or display the wsdl?

 Martin Gainty
 __
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
 dient lediglich dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
 destinataire prévu, nous te demandons avec bonté que pour satisfaire
 informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
 de ceci est interdite. Ce message sert à l'information seulement et n'aura
 pas n'importe quel effet légalement obligatoire. Étant donné que les email
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
 aucune responsabilité pour le contenu fourni.




 Date: Fri, 14 Aug 2009 12:27:42 -0700
 From: justin.fe...@gmail.com
 To: axis-user@ws.apache.org
 Subject: Re: Passing 2 byte arrays to web service is yielding strange
 results


 Attached is the AAR file (TestWS.aar) as well as a test client
 (TestClient.jar). The test client files were generated using WSDL2Java
 (ADB).

 -Justin
 http://www.nabble.com/file/p24977228/TestClient.jar TestClient.jar
 http://www.nabble.com/file/p24977228/TestWS.aar TestWS.aar

 Andreas Veithen-2 wrote:
 
  Justin,
 
  Can you package your service in an AAR file (or any other deployable
  artifact) and post a simple test client that reproduces the problem?
 
  Andreas
 
  On Fri, Aug 14, 2009 at 00:19, JFeistyjustin.fe...@gmail.com wrote:
 
  Axis newbie hereI have a very simple (pojo) web service and am
  serving it
  using Axis2 v1.5 in Tomcat 6.  I have one web method called test().  It
  takes as a parameter a 'Placeholder' object.  That 'Placeholder' object
  has
  two private byte array fields exposed with getters and setters.  Here
  is
  the
  server-side code:
 
  public class TestWS {
         public void test(Placeholder p) {
                 System.out.println(Placeholder.first size:  +
  p.getFirst().length);
                 System.out.println(Placeholder.second size:  +
  p.getSecond().length);
         }
 
 
  public class Placeholder {
         private byte[] first = null;
         private byte[] second = null;
 
         public byte[] getFirst() {
                 return first;
         }
 
         public void setFirst(byte[] first) {
                 this.first = first;
         }
 
         public byte[] getSecond() {
                 return second;
         }
 
         public void setSecond(byte[] second) {
                 this.second = second;
         }
  }
 
  I call this web method and set the Placeholder's 'first' property to a
  5-byte byte array and the 'second' property to a 2-byte byte array.
   The
  output is very surprising:
 
  Placeholder.first size: 5
  Placeholder.second size: 5
 
  What is going on here?  Why is the second byte array the same as the
  first?
 
  Thanks,
  Justin
  --
  View this message in context:
 
  http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24960357.html
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24977228.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 
 Windows Live™: Keep your life in sync. Check it out.


Re: Passing 2 byte arrays to web service is yielding strange results

2009-08-14 Thread Andreas Veithen
Justin,

Can you package your service in an AAR file (or any other deployable
artifact) and post a simple test client that reproduces the problem?

Andreas

On Fri, Aug 14, 2009 at 00:19, JFeistyjustin.fe...@gmail.com wrote:

 Axis newbie hereI have a very simple (pojo) web service and am serving it
 using Axis2 v1.5 in Tomcat 6.  I have one web method called test().  It
 takes as a parameter a 'Placeholder' object.  That 'Placeholder' object has
 two private byte array fields exposed with getters and setters.  Here is the
 server-side code:

 public class TestWS {
        public void test(Placeholder p) {
                System.out.println(Placeholder.first size:  + 
 p.getFirst().length);
                System.out.println(Placeholder.second size:  + 
 p.getSecond().length);
        }


 public class Placeholder {
        private byte[] first = null;
        private byte[] second = null;

        public byte[] getFirst() {
                return first;
        }

        public void setFirst(byte[] first) {
                this.first = first;
        }

        public byte[] getSecond() {
                return second;
        }

        public void setSecond(byte[] second) {
                this.second = second;
        }
 }

 I call this web method and set the Placeholder's 'first' property to a
 5-byte byte array and the 'second' property to a 2-byte byte array.  The
 output is very surprising:

 Placeholder.first size: 5
 Placeholder.second size: 5

 What is going on here?  Why is the second byte array the same as the first?

 Thanks,
 Justin
 --
 View this message in context: 
 http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24960357.html
 Sent from the Axis - User mailing list archive at Nabble.com.




Re: Passing 2 byte arrays to web service is yielding strange results

2009-08-14 Thread JFeisty

Attached is the AAR file (TestWS.aar) as well as a test client
(TestClient.jar).  The test client files were generated using WSDL2Java
(ADB).

-Justin
http://www.nabble.com/file/p24977228/TestClient.jar TestClient.jar 
http://www.nabble.com/file/p24977228/TestWS.aar TestWS.aar 

Andreas Veithen-2 wrote:
 
 Justin,
 
 Can you package your service in an AAR file (or any other deployable
 artifact) and post a simple test client that reproduces the problem?
 
 Andreas
 
 On Fri, Aug 14, 2009 at 00:19, JFeistyjustin.fe...@gmail.com wrote:

 Axis newbie hereI have a very simple (pojo) web service and am
 serving it
 using Axis2 v1.5 in Tomcat 6.  I have one web method called test().  It
 takes as a parameter a 'Placeholder' object.  That 'Placeholder' object
 has
 two private byte array fields exposed with getters and setters.  Here is
 the
 server-side code:

 public class TestWS {
        public void test(Placeholder p) {
                System.out.println(Placeholder.first size:  +
 p.getFirst().length);
                System.out.println(Placeholder.second size:  +
 p.getSecond().length);
        }


 public class Placeholder {
        private byte[] first = null;
        private byte[] second = null;

        public byte[] getFirst() {
                return first;
        }

        public void setFirst(byte[] first) {
                this.first = first;
        }

        public byte[] getSecond() {
                return second;
        }

        public void setSecond(byte[] second) {
                this.second = second;
        }
 }

 I call this web method and set the Placeholder's 'first' property to a
 5-byte byte array and the 'second' property to a 2-byte byte array.  The
 output is very surprising:

 Placeholder.first size: 5
 Placeholder.second size: 5

 What is going on here?  Why is the second byte array the same as the
 first?

 Thanks,
 Justin
 --
 View this message in context:
 http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24960357.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24977228.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: Passing 2 byte arrays to web service is yielding strange results

2009-08-14 Thread Martin Gainty

cant access the aar ?
any ability to put this on a http or ftp site or display the wsdl?

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Fri, 14 Aug 2009 12:27:42 -0700
 From: justin.fe...@gmail.com
 To: axis-user@ws.apache.org
 Subject: Re: Passing 2 byte arrays to web service is yielding strange results
 
 
 Attached is the AAR file (TestWS.aar) as well as a test client
 (TestClient.jar).  The test client files were generated using WSDL2Java
 (ADB).
 
 -Justin
 http://www.nabble.com/file/p24977228/TestClient.jar TestClient.jar 
 http://www.nabble.com/file/p24977228/TestWS.aar TestWS.aar 
 
 Andreas Veithen-2 wrote:
  
  Justin,
  
  Can you package your service in an AAR file (or any other deployable
  artifact) and post a simple test client that reproduces the problem?
  
  Andreas
  
  On Fri, Aug 14, 2009 at 00:19, JFeistyjustin.fe...@gmail.com wrote:
 
  Axis newbie hereI have a very simple (pojo) web service and am
  serving it
  using Axis2 v1.5 in Tomcat 6.  I have one web method called test().  It
  takes as a parameter a 'Placeholder' object.  That 'Placeholder' object
  has
  two private byte array fields exposed with getters and setters.  Here is
  the
  server-side code:
 
  public class TestWS {
 public void test(Placeholder p) {
 System.out.println(Placeholder.first size:  +
  p.getFirst().length);
 System.out.println(Placeholder.second size:  +
  p.getSecond().length);
 }
 
 
  public class Placeholder {
 private byte[] first = null;
 private byte[] second = null;
 
 public byte[] getFirst() {
 return first;
 }
 
 public void setFirst(byte[] first) {
 this.first = first;
 }
 
 public byte[] getSecond() {
 return second;
 }
 
 public void setSecond(byte[] second) {
 this.second = second;
 }
  }
 
  I call this web method and set the Placeholder's 'first' property to a
  5-byte byte array and the 'second' property to a 2-byte byte array.  The
  output is very surprising:
 
  Placeholder.first size: 5
  Placeholder.second size: 5
 
  What is going on here?  Why is the second byte array the same as the
  first?
 
  Thanks,
  Justin
  --
  View this message in context:
  http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24960357.html
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24977228.html
 Sent from the Axis - User mailing list archive at Nabble.com.
 

_
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009

RE: Passing 2 byte arrays to web service is yielding strange results

2009-08-14 Thread JFeisty

Sorry about that.  Hopefully hosting the files on MegaUpload is okay?  I
zipped up both files (.aar  .jar) so there's only one download.  Also, I
forgot to mention that in both the .aar and .jar, the source is included.

http://www.megaupload.com/?d=MXH0JOVG


mgainty wrote:
 
 
 cant access the aar ?
 any ability to put this on a http or ftp site or display the wsdl?
 
 Martin Gainty 
 __ 
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
  
 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
 dient lediglich dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
 destinataire prévu, nous te demandons avec bonté que pour satisfaire
 informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
 copie de ceci est interdite. Ce message sert à l'information seulement et
 n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
 les email peuvent facilement être sujets à la manipulation, nous ne
 pouvons accepter aucune responsabilité pour le contenu fourni.
 
 
 
 
 Date: Fri, 14 Aug 2009 12:27:42 -0700
 From: justin.fe...@gmail.com
 To: axis-user@ws.apache.org
 Subject: Re: Passing 2 byte arrays to web service is yielding strange
 results
 
 
 Attached is the AAR file (TestWS.aar) as well as a test client
 (TestClient.jar).  The test client files were generated using WSDL2Java
 (ADB).
 
 -Justin
 http://www.nabble.com/file/p24977228/TestClient.jar TestClient.jar 
 http://www.nabble.com/file/p24977228/TestWS.aar TestWS.aar 
 
 Andreas Veithen-2 wrote:
  
  Justin,
  
  Can you package your service in an AAR file (or any other deployable
  artifact) and post a simple test client that reproduces the problem?
  
  Andreas
  
  On Fri, Aug 14, 2009 at 00:19, JFeistyjustin.fe...@gmail.com wrote:
 
  Axis newbie hereI have a very simple (pojo) web service and am
  serving it
  using Axis2 v1.5 in Tomcat 6.  I have one web method called test(). 
 It
  takes as a parameter a 'Placeholder' object.  That 'Placeholder'
 object
  has
  two private byte array fields exposed with getters and setters.  Here
 is
  the
  server-side code:
 
  public class TestWS {
 public void test(Placeholder p) {
 System.out.println(Placeholder.first size:  +
  p.getFirst().length);
 System.out.println(Placeholder.second size:  +
  p.getSecond().length);
 }
 
 
  public class Placeholder {
 private byte[] first = null;
 private byte[] second = null;
 
 public byte[] getFirst() {
 return first;
 }
 
 public void setFirst(byte[] first) {
 this.first = first;
 }
 
 public byte[] getSecond() {
 return second;
 }
 
 public void setSecond(byte[] second) {
 this.second = second;
 }
  }
 
  I call this web method and set the Placeholder's 'first' property to a
  5-byte byte array and the 'second' property to a 2-byte byte array. 
 The
  output is very surprising:
 
  Placeholder.first size: 5
  Placeholder.second size: 5
 
  What is going on here?  Why is the second byte array the same as the
  first?
 
  Thanks,
  Justin
  --
  View this message in context:
 
 http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24960357.html
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24977228.html
 Sent from the Axis - User mailing list archive at Nabble.com.
 
 
 _
 Windows Live™: Keep your life in sync.
 http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009
 

-- 
View this message in context: 
http://www.nabble.com/Passing-2-byte-arrays-to-web-service-is-yielding-strange-results-tp24960357p24978090.html
Sent from the Axis - User mailing list archive at Nabble.com.