locked
WCF Service is not getting the parameter supplied from java application while calling it.. RRS feed

  • Question

  • User-1677278234 posted

    I have a WCF service deployed at a certain server.

    I need to call it through the JAVA application, when i am checking the parameter for this OperationContract is being passed correctly from java side but when i am logging the parameter value in WCF service, it seems not to be received here.

    We are using 'basicHttpBinding' only and the attributes set for the Service and OperationContracts are as follows :-

    [ServiceContract]
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [XmlSerializerFormat(Style = OperationFormatStyle.Rpc, Use = OperationFormatUse.Encoded)]
    public interface IMyService
    {
    [WebMethod]
    [OperationContract(Action = @"http://tempuri.org/GetString")]
    [WebInvoke(Method = "GET", BodyStyle = WebMessageBodyStyle.Wrapped)]
    string GetString(string strParameters);
    }



    Can any body check if this is correct or may suggest with all the steps so that a WCF can be accessed properly through JAVA application ?

    Monday, July 8, 2013 10:11 AM

Answers

  • User1424224880 posted

    Not a WCF guru here, but what I've done in the past to run down this stuff.

    I would try to call it from a javascript/.Net side of things using Chrome (or Firefox?).  Using that I would use Chrome's developer tools to see what the error (if any) is being returned.  

    You could also use Fiddler (fiddler2.com) to watch post/get request and what the service has for a response.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 8, 2013 10:35 AM