BlackBerry Forums Support Community

BlackBerry Forums Support Community (
-   Developer Forum (
-   -   SOAPFAULT: Server did not recognize the value of HTTP Header (

baran_khan 08-21-2008 07:00 AM

SOAPFAULT: Server did not recognize the value of HTTP Header

I am trying to communicate with this web service using ksoap2. So far I was having trouble in establishing the ksoap2 in the 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 ="";
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);
SoapObject bodySoap = new SoapObject(MethodNamespaceMethodName);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut bodySoap;
ht = new HttpTransport(url);
try {;
} catch (
IOException e) {
    / / 
TODO Auto-generated catch block
} catch (
XmlPullParserException e) {
// TODO Auto-generated catch block
try {
result = (SoapObjectenvelope.getResponse();
} catch (
SoapFault e) {
// TODO Auto-generated catch block

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?

All times are GMT -5. The time now is 02:20 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.