unable to get Response from HttpResponse when passing soap object (soap1.2) android?

后端 未结 1 1085
猫巷女王i
猫巷女王i 2020-12-10 21:56

Code :

            String response ;
            try {
                final String SOAP_ACTION = \"http://tempuri.org/myAction\";
                 


        
1条回答
  •  情话喂你
    2020-12-10 22:40

    as its wsHttpBinding WCF service Android

    So I Have Solved this using Following :

    String METHOD_NAME = "MyMethodName"; 
    String NAMESPACE = "http://tempuri.org/"; 
    String URL = "MyUr;";
    String SOAP_ACTION = "http://tempuri.org/MySoapAction"; 
    
    
    
    SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
    
    PropertyInfo req = new PropertyInfo();
    req.name = "xmlstring";
    req.namespace = NAMESPACE;
    req.type = String.class;
    req.setValue("........ MY Data.......");// without these `tags 

    0 讨论(0)
提交回复
热议问题