BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-26-2011, 08:13 AM   #1
rolandr
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Default Problems with Webservice Connection

Please Login to Remove!

Hi,

I'm trying to connect to a Webservice within a BlackBerry Java App. For testing the Service I've used the software soapUI. So I found that the Webservice works fine. I've attached the request and the answer of the webservice in the archive.

When calling the webservice out of a java application I always get an error.
I think I didn't use the right parameters to call the webservice. Could you tell me, how to do it right? I didn't find something appropriate on the internet.

You can find the error message and the source code in the file attached.

Thanks in advance!

rolandr

PS: I wasn't able to add the Code directly in the post because it contains URLs and I don't have enough posts to add URLs.
Attached Files
File Type: zip webservice.zip (1.8 KB, 8 views)
Offline  
Old 04-27-2011, 08:16 AM   #2
rolandr
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Default Re: Problems with Webservice Connection

Doesn't anybody have an idea?
Offline  
Old 04-27-2011, 08:22 AM   #3
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: Problems with Webservice Connection

Not enough info.

Are you trying this on the device or the simulator?

Are you hitting the web service? Have you checked the server-side logs?

If on the simulator, are you running MDS? Are you adding connection parameters to the URL?

If on the device, what conneciton parameters are you adding to the URL? What network? Is the APN set?
Offline  
Old 04-27-2011, 09:28 AM   #4
rolandr
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Default Re: Problems with Webservice Connection

Hi,

@Dougsg38p

Thanks for your answer. When I look on the server it doesn't look like the service gets called by the app.
I'm running the app on the simulator and I've startet MDS. I do not add any further connection parameters.

Thanks again!

regards
rolandr
Offline  
Old 04-27-2011, 09:38 AM   #5
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: Problems with Webservice Connection

What URL are you using? Note that you cannot connect to localhost or 127.0.0.1 using MDS (not allowed).

Looking at your error, it seems like there must be a preceeding error regarding the connect. The error you are showing usually means that there was a return null buffer.
Offline  
Old 04-27-2011, 10:02 AM   #6
rolandr
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Default Re: Problems with Webservice Connection

I'm using the URL which is in "source.txt" in line 19. It is not localhost oder 127.0.0.1. It's a standalone server.

Meanwhile I've also tried to run the app on a device, but it also doesn't work. APN is set. Everything else on the device is also working well.
Offline  
Old 04-27-2011, 07:40 PM   #7
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: Problems with Webservice Connection

Have you looked at the console output for clues?
Offline  
Old 04-28-2011, 06:07 AM   #8
rolandr
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Default Re: Problems with Webservice Connection

Yes I've looked, but I didn't find anything on the console...

Would it help, if I post the WSDL File?
Offline  
Old 04-29-2011, 05:29 AM   #9
rolandr
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Default Re: Problems with Webservice Connection

Hi,

I've now change the source code. It added it in this post as a zip file. With the new code I get another error. But the service still doesn't get hit. Does anybody have an idea?

Thanks in advance!

regards
rolandr
Attached Files
File Type: zip webservice2.zip (2.4 KB, 9 views)
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

Similar Threads for: Problems with Webservice Connection
Thread Thread Starter Forum Replies Last Post
Local Database Connection Error ogaal BES Admin Corner 10 11-25-2009 02:05 AM
Remote Database Connection Pool kerseyr BES Admin Corner 10 03-25-2008 06:15 AM
Sprint PCS Connection problems >:( CrackberryLegend General Legacy Device Discussion 9 12-12-2006 01:03 PM
7520 Connection Problems Nomis RIM Software 0 01-29-2006 05:51 PM
Connection problems with IM and ways of their decission. Klaus General BlackBerry Discussion 0 07-18-2005 06:43 AM


HP 3488A HPIB Switch / Control Unit Mainframe picture

HP 3488A HPIB Switch / Control Unit Mainframe

$24.99



Tektronix TM503 3-Bay Test Equipment Mainframe Power Supply  picture

Tektronix TM503 3-Bay Test Equipment Mainframe Power Supply

$59.99



Fluke Networks Versiv Modular Mainframe AS IS picture

Fluke Networks Versiv Modular Mainframe AS IS

$1100.00



HP 3488A HPIB Switch / Control Unit Mainframe picture

HP 3488A HPIB Switch / Control Unit Mainframe

$35.00



Tektronix 7904 Oscilloscope Mainframe  w/ 2x 7A26 2x 7B92A Modules picture

Tektronix 7904 Oscilloscope Mainframe w/ 2x 7A26 2x 7B92A Modules

$399.97



Chroma 6312 DC Electronic Load Mainframe  picture

Chroma 6312 DC Electronic Load Mainframe

$239.96







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