BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-07-2009, 04:03 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Posts: 52
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default JSR172 SAXParseException in the return SOAP message from the server.

Please Login to Remove!

Hello,

I am having problems in passing byte[] to a web service in created in .NET.
In the WSDL file, the byte[] data type is represented as base64binary. I created the stubs using the Java WTK.

First thing i did, i read a text file, and sent the byte[] data of the text file to the web service. It worked fine.

Now, i'm trying to read an image file and an msword document, pass the byte[] data of these files to the web service, but i receive a "SAXParseException in the return SOAP message from the server."

The text file data is larger than the image file and the msword document, so i'm quite sure it has nothing to do with the size limitation of JSR172. Can somebody point me to the right direction on what is happening to my application? I don't know what is causing this problem.

Please help! :(
Offline  
Old 09-25-2009, 11:21 AM   #2 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8300
PIN: N/A
Carrier: none
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default JSR172 SAXParseException in the return SOAP message from the server.

Hi Jacytan,

From other postings here or on BlackBerry's forum I found that J2ME does not support byte[] - you'll need to use String instead (that assumes you can change the Web Service) - note - I cannot post links yet so put www in front of these:

stackoverflow.com/questions/925756/passing-byte-array-from-blackberry-to-net-webservice]Passing Byte array from Blackberry to .NET Webservice - Stack Overflow

This posting might have a way around the byte[] issue but not clear:
blackberryforums.com/developer-forum/125296-send-byte-web-service.html

And this one may have a way around:
blackberryforums.com/developer-forum/198741-ksoap2-byte.html

I couldn't find the link on RIMs forum but there are a couple there as well.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Yaskawa Converter VS-656MR5
$600.0
Yaskawa Converter VS-656MR5 picturePEPPERL FUCHS KFA5-SR2-Ex1.W K-System Switch Amplifier P/n: 103371S Used
$27.0
PEPPERL FUCHS KFA5-SR2-Ex1.W K-System Switch Amplifier P/n: 103371S Used pictureSTK415 STEREO AMPLIFIER
$9.0
STK415 STEREO AMPLIFIER picture1394-SR36A ALLEN-BRADLEY DIGITAL SERVO CONTROLLER 1800W SHUNT MODULE SERIES B
$699.99
1394-SR36A ALLEN-BRADLEY  DIGITAL SERVO CONTROLLER 1800W SHUNT MODULE SERIES B picture8004213G1 Audio Amplifier & Compressor T64248
$130.0
8004213G1 Audio Amplifier & Compressor T64248  picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.