Ksoap2 Asynctask Propertyinfo Not Recevied To Webservice, Why?
Solution 1:
The problem solved, but how? it was due to tempori.org, used as default in my web service. I changed it to my web site url and it solved. It was really really silly error, because in many cases web service reply properly, just when you receive a DataSet, you face an error, not well known. Any way after one day full time try and error it solved.
blogs.msdn.com/b/endpoint/archive/2011/05/12/how-to-eliminate-tempuri-org-from-your-service-wsdl.aspx
How to eliminate tempuri.org from WCF Services WSDL Step 1: Declare a namespace on your service contract
The namespace can be anything. People typically use a URI of some form but it does not have to point to an actual web page. Often people will use a version identifier in the namsepace but there are no rules about what you should do.
// Eliminate tempuri.org from the contract
// If you don't want to us a constant, put the URI here
// [ServiceContract(Namespace = "http://contoso.com/services")]
[ServiceContract(Namespace = Constants.Namespace)]
public interface IService1
{
[OperationContract]
voidDoWork();
}
Step 2: Declare a namespace on your service
The service namespace is added with a ServiceBehavior attribute. Using the constant ensures that the namespace is the same for the contract and the service.
// If you don't want to us a constant, put the URI here
// [ServiceBehavior(Namespace = "http://contoso.com/services")]
[ServiceBehavior(Namespace = Constants.Namespace)]
public class Service1 : IService1
{
publicvoidDoWork()
{
}
}
Step 3: Set the binding namespace
<services><servicename="EliminateTempUri.Service1"><!-- Use a bindingNamespace to eliminate tempuri.org --><endpointaddress=""binding ="basicHttpBinding"bindingNamespace="http://contoso.com/services"contract="EliminateTempUri.IService1"
/></service></services><behaviors><serviceBehaviors><behaviorname=""><serviceMetadatahttpGetEnabled="true" /><serviceDebugincludeExceptionDetailInFaults="false" /></behavior></serviceBehaviors></behaviors><serviceHostingEnvironmentmultipleSiteBindingsEnabled="true" />
Post a Comment for "Ksoap2 Asynctask Propertyinfo Not Recevied To Webservice, Why?"