BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-25-2008, 10:31 AM   #1
itahack
New Member
 
Join Date: Feb 2008
Model: 7100T
PIN: N/A
Carrier: stude
Posts: 7
Default KSoap Problem

Please Login to Remove!

public void doSOAP()
{
try
{

SoapObject rpc = new SoapObject ("http://10.1.2.39/Service1/Service1.asmx", "Login");
rpc.addProperty("sLogin","Ciro");
rpc.addProperty("sPassword","Ciro");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = rpc;
envelope.dotNet = true;
envelope.encodingStyle = SoapSerializationEnvelope.ENC;
HttpTransport ht = new HttpTransport ("http://10.1.2.39/Service1/Service1.asmx");
ht.call("http://tempuri.org/Login",envelope); // block here...
System.out.println("Res: " + envelope.toString());
System.out.println("Res: " + envelope.getResult());
}
catch (Exception e)
{
System.out.println("i am here in catch");
e.printStackTrace ();
}
}


This is a part of wsdl:
SOAP 1.1
POST /Service1/Service1.asmx HTTP/1.1
Host: 10.1.2.39
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/Login"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xmlnssd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Login xmlns="http://tempuri.org/">
<sLogin>string</sLogin>
<sPassword>string</sPassword>
</Login>
</soap:Body>
</soap:Envelope>

Simulator block on ht.call("http://tempuri.org/Login",envelope);
why??Please Help ME!!!!!!!!!!!!!
Offline  
Old 02-25-2008, 12:10 PM   #2
rock_win
Knows Where the Search Button Is
 
Join Date: Aug 2007
Model: 8100
PIN: N/A
Carrier: cingular
Posts: 33
Default

Any luck with it, i'm also facing problems with Webservices using KSoap, my service is using WSDL.
Offline  
Old 02-27-2008, 04:00 AM   #3
itahack
New Member
 
Join Date: Feb 2008
Model: 7100T
PIN: N/A
Carrier: stude
Posts: 7
Default NoOne can help me?

AnyOne can help me??It's important!
Offline  
Old 04-28-2008, 12:39 AM   #4
venkatravinder@85
New Member
 
Join Date: Apr 2008
Model: 8800
PIN: N/A
Carrier: Airtel
Posts: 3
Default

I hope u found the solution as its dated too old....if ever u havent...then
start the mds first and try to access google from the BB browser...if thats successful then run ur code ......as per syntax there is not defect.....try calling the http connection in new thread...as the bb doesnt allow the network connections and the application to run on same thread

Last edited by venkatravinder@85; 04-28-2008 at 12:41 AM..
Offline  
Old 04-28-2008, 09:24 AM   #5
goulamass
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
Default

I don't understand.


Your program block or throw en error??

If it blocks do what venkatravinder@85 suggest and check your web access. After check if your web service is running.

If it's throw an error post it here
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

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

Forum Jump


Vintage Simpson Multimeter ME 480/U picture

Vintage Simpson Multimeter ME 480/U

$64.00



Vintage Pierce M 103 Cast Iron Tractor Farm Implement Seat Antique picture

Vintage Pierce M 103 Cast Iron Tractor Farm Implement Seat Antique

$225.00



Leather Village Lined Paper Vintage Leather Journal 200 Antique Pages Notebook picture

Leather Village Lined Paper Vintage Leather Journal 200 Antique Pages Notebook

$59.99



Vintage Coil Mounting Bracket 1871821 fits Classic Cars 1950-1960's picture

Vintage Coil Mounting Bracket 1871821 fits Classic Cars 1950-1960's

$69.99



Vintage Leather Bound Journal Notebook with Handmade Antique Deckle Edges Paper picture

Vintage Leather Bound Journal Notebook with Handmade Antique Deckle Edges Paper

$59.99



A5 PU Leather Vintage Journal Notebook Lined Paper Diary Planner with Buckle picture

A5 PU Leather Vintage Journal Notebook Lined Paper Diary Planner with Buckle

$12.99







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