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

Omron C200HS-CPU01-E Sysmac Programmable Controller New in box
$589.73
Omron C200HS-CPU01-E Sysmac Programmable Controller New in box pictureCIRCUIT BOARD G7V300-P with Processor and Memory
$98.0
CIRCUIT BOARD G7V300-P with Processor and Memory  pictureMsa Suprema fire and gas warning systerm 10090520 processor
$2990.0
Msa Suprema fire and gas warning systerm  10090520 processor pictureAllen Bradley FlexLogix 5434 Processor Unit 1794-L34 Ser B %
$200.0
Allen Bradley FlexLogix 5434 Processor Unit 1794-L34 Ser B % pictureAPG RG-371-11A Standard CPU Garage with CPU Floor - Black
$50.98
APG RG-371-11A Standard CPU Garage with CPU Floor - Black picture






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