Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
can any body help me for getting web service respone..i am not getting wen service respone..?
here i getting response
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196

C#
var divToBeWorkedOn = '#AjaxPlaceHolder';
    var webMethod = 'http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS/getDestinationStationDashboard'
    var parameters = "{'crsCode':'AAP'}";

    $.ajax({
        type: "GET",
        url: webMethod,
        data: parameters,
        contentType: "application/xml; charset=utf-8",
        dataType: "xml",
        success: function(msg,xml) {
alert("Hi")
        var responseXML = xml.documentElement;
        alert(responseXML);
alert(msg.stationName);
            $(divToBeWorkedOn).html(msg.d);
        },
        error: function(e){
        alert("p")
        alert(e);
            $(divToBeWorkedOn).html("Unavailable");
        }
    });
}
Posted
Comments
fjdiewornncalwe 21-Sep-12 12:04pm    
It could be any number of things. Your "not getting web service response" isn't very descriptive to us on what is happening.
What happens when you paste your webMethod variable value into a browser to hit the service? If you can't hit the service that way, then your issue will be with this webMethod definition.
ravi1989h 21-Sep-12 12:07pm    
sir can you please check..this i am getting response
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196
ravi1989h 21-Sep-12 12:08pm    
HERE i am calling same web service but in differnt way
Zoltán Zörgő 21-Sep-12 12:14pm    
Is the service yours? If so, please post the class and the method definition. Please post only significant code including any attributes you have added to your class and method.
ravi1989h 21-Sep-12 12:18pm    
yes....method name :getDestinationStationDashboard
parameter :crsCode:AAP
URL: http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS/getDestinationStationDashboard?wsdl

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900