BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-07-2009, 04:03 AM   #1
jacytan
Thumbs Must Hurt
 
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Posts: 52
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
Kory Lovre
New Member
 
Join Date: Aug 2009
Model: 8300
PIN: N/A
Carrier: none
Posts: 4
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


NEW Appion MGAVCT 1/4 Inches MegaFlow Vacuum-Rated Valve Core Removal Tool picture

NEW Appion MGAVCT 1/4 Inches MegaFlow Vacuum-Rated Valve Core Removal Tool

$55.00



550W Oilless Diaphragm Vacuum Pump Industrial Oil Free Vacuum Pump 2 Cylinders picture

550W Oilless Diaphragm Vacuum Pump Industrial Oil Free Vacuum Pump 2 Cylinders

$93.13



ProTeam Super Coach SCM-1282 Backpack Vacuum picture

ProTeam Super Coach SCM-1282 Backpack Vacuum

$299.00



BISSELL PowerForce Helix Turbo Pet Upright Vacuum 3332 picture

BISSELL PowerForce Helix Turbo Pet Upright Vacuum 3332

$46.00



Dental Dust Collector Vacuum Dust Cleaner Dust Removal Machine Lab 172m /h 800W picture

Dental Dust Collector Vacuum Dust Cleaner Dust Removal Machine Lab 172m /h 800W

$243.70



NEW Portable Heavy-Duty Suction Machine HIGH SUCTION VACUUM UNIT PUMP picture

NEW Portable Heavy-Duty Suction Machine HIGH SUCTION VACUUM UNIT PUMP

$139.99







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