BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-26-2011, 09:13 AM   #1 (permalink)
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 09:16 AM   #2 (permalink)
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Problems with Webservice Connection

Doesn't anybody have an idea?
Offline  
Old 04-27-2011, 09:22 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
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, 10:28 AM   #4 (permalink)
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 10:38 AM   #5 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
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, 11:02 AM   #6 (permalink)
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 08:40 PM   #7 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: Problems with Webservice Connection

Have you looked at the console output for clues?
Offline  
Old 04-28-2011, 07:07 AM   #8 (permalink)
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 06:29 AM   #9 (permalink)
New Member
 
Join Date: Apr 2011
Location: Munich, GE
Model: 9000
PIN: N/A
Carrier: T-Mobile/Vodafone.de
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


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

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 07: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 07:43 AM





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