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

Crystal Eng. Ametek XP2i 0-1000 PSI Digital Test Gauge
$399.0
Crystal Eng. Ametek XP2i 0-1000 PSI Digital Test Gauge  picture3pcs 0.033uF 33nF 200V PIO CAPacitors USSR Crystal Sound K40-Y9 K40-U9
$3.14
3pcs 0.033uF  33nF  200V  PIO  CAPacitors  USSR  Crystal Sound  K40-Y9  K40-U9   picture0.033uF 33nF 200V Qty10 PIO CAPs USSR Crystal Sound K40-Y9 K40-U9 NOS
$5.45
0.033uF  33nF  200V  Qty10  PIO  CAPs  USSR  Crystal Sound  K40-Y9  K40-U9  NOS pictureCollectible Vintage 3M No. 590 Crystal Bay Transparent Tape NEW 1/2 x 1296 in.
$3.99
Collectible Vintage 3M No. 590 Crystal Bay Transparent Tape NEW 1/2 x 1296 in. pictureUltimate Geode Kit - Crack Open 20 Amazing Rocks and Find Crystals
$52.04
Ultimate Geode Kit - Crack Open 20 Amazing Rocks and Find Crystals picture






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