BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-21-2008, 07:00 AM   #1 (permalink)
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default SOAPFAULT: Server did not recognize the value of HTTP Header

Please Login to Remove!

Hi,

I am trying to communicate with this web service using ksoap2. So far I was having trouble in establishing the ksoap2 in the environment...now m stuck with this "could not recognize Http Header" thing.

The thing is I have this web service which is working fine and I have tested it with Http Connection as well .But now I need to do the same using ksoap2. When I try to communicate with it, I received this "could not recognize Http Header" exception.

My code is as below:
PHP Code:
String namespace ="http://tempuri.org";
String MethodNamespace=namespace+"/ValidatePassword";
String MethodName="ValidatePassword";
String url ="http://domain_name/service.asmx?wsdl";
HttpTransport ht null;
String MethodAction ="ValidatePassword";
    
SoapObject request = new SoapObject(nullnull);
SoapObject result = new SoapObject(nullnull);
request.addProperty("strUid""AROLED");
request.addProperty("strPassword""admin1!");
SoapObject bodySoap = new SoapObject(MethodNamespaceMethodName);
bodySoap.addProperty("request"request);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut bodySoap;
ht = new HttpTransport(url);
try {
    
ht.call(MethodActionenvelope);
} catch (
IOException e) {
    
Dialog.alert("1"+e.getMessage()+e.toString());
    / / 
TODO Auto-generated catch block
    e
.printStackTrace();
} catch (
XmlPullParserException e) {
    
Dialog.alert("2"+e.getMessage()+e.getDetail());
    
// TODO Auto-generated catch block
    
e.printStackTrace();
}
try {
    
result = (SoapObjectenvelope.getResponse();
} catch (
SoapFault e) {
    
Dialog.alert("3"+e.getMessage());
    
// TODO Auto-generated catch block
    
e.printStackTrace();

The text of the exception received is:

falutcode: 'soap:Client'
falugstring" 'Server did not recognize the value of HTTP Header'
SoapAction: 'validatePassword.'
falutactor: 'null'
Any Idea what this could be?
__________________
Smart People ask for Help!!!

Last edited by baran_khan : 08-21-2008 at 07:12 AM.
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

10000 X SAMSUNG CL05C3R3BB5ANNC Cap Ceramic 3.3pF 50V C0G 0.1pF SMD
$22.0
10000 X SAMSUNG CL05C3R3BB5ANNC Cap Ceramic 3.3pF 50V C0G 0.1pF SMD picture9792 X SAMSUNG RC1005J200CS Res Thick Film 0402 20 Ohm 5% 1/16W
$22.0
9792 X SAMSUNG RC1005J200CS Res Thick Film 0402 20 Ohm 5% 1/16W  picture7781 X SAMSUNG CL05C101JB5NNNC Cap Ceramic 100pF 50V C0G 5% SMD
$22.0
7781 X SAMSUNG CL05C101JB5NNNC Cap Ceramic 100pF 50V C0G 5% SMD  picture7520 X SAMSUNG CL21B103KBANNND Cap Ceramic 0.01uF 50VDC X7R 10%
$23.0
7520 X SAMSUNG CL21B103KBANNND Cap Ceramic 0.01uF 50VDC X7R 10% picture4823 X SAMSUNG RC2012J302CS Res Thick Film 0805 3K Ohm 5% 1/8W
$24.0
4823 X SAMSUNG RC2012J302CS Res Thick Film 0805 3K Ohm 5% 1/8W  picture






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