Acess php webservice from android app -


After the text

I. But this error`" hopes to try to access the php web service from my Android app: START_TAG {http : //schemas.xmlsoap.org/soap/envelope/} Envelope (Status: START_TAG @ 11.43 in Java io.inputStreamReader@4052d300) ". This is my wsdl file

  & lt ;? XML version = '1.0' encoding = 'UTF-8'? & Gt; Xmlns: TNS = 'vase: PHP_SOAP_RPC' xmlns:; & Lt Definitions = 'PRODUCT' targetNamespace = 'PHP_SOAP_RPC Colossus' Soap =' http: //schemas.xmlsoap.org/wsdl/soap/ 'xmlns: XSD =' http: //www.w3.org/2001/XMLSchema 'Xmlns: soapenc =' http: //schemas.xmlsoap.org/soap/encoding/ 'xmlns: wsdl =' http: //schemas.xmlsoap.org/wsdl/ 'Xmlns =' http: //schemas.xmlsoap. Org / wsdl / '& gt; & Lt; Message Name = 'gettestRequest' & gt; & Lt; Part name = 'id' type = 'xsd: string' / & gt; & Lt; / Messages & gt; & Lt; Message Name = 'gettestRespones' & gt; & Lt; Part name = 'id' type = 'xsd: string' / & gt; & Lt; / Messages & gt; & Lt; PortType name = 'productPortType' & gt; & Lt; Operation name = 'gettest' & gt; & Lt; Input message = 'TNS: gettestRequest' / & gt; & Lt; Output Message = 'TNS: GettestRespones' / & gt; & Lt; / Operation & gt; & Lt; / PortType & gt; & Lt; Binding name = 'productbinding' type = 'tns: productPortType' & gt; & Lt; Soap: binding style = 'rpc' transport = 'http: //schemas.xmlsoap.org/soap/http'/> & Lt; Operation name = 'gettest' & gt; & Lt; Soaps: operation soapaction = 'cache: xmethods-delayed-quotes #gettest' / & gt; & Lt; Input & gt; & Lt; Soaps: body use = 'encoded' name space = 'cache: xmethods delay-quotation' encodingStyle = 'http: //schemas.xmlsoap.org/soap/encoding/'/> & Lt; / Input & gt; & Lt; Production & gt; & Lt; Soaps: body use = 'encoded' name space = 'cache: xmethods delay-quotation' encodingStyle = 'http: //schemas.xmlsoap.org/soap/encoding/'/> & Lt; / Product & gt; & Lt; / Operation & gt; & Lt; / Binding & gt; & Lt; Service name = 'product' & gt; & Lt; Port name = 'product port type' binding = 'productbinding' & gt; & Lt; Soap: Address Space = 'http: //111.223.189.236/webservice/server1.php'/> & Lt; / Port & gt; & Lt; / Services & gt;  

and this is my Java file

  string METHOD_NAME = "gettest"; String NAME_SPACE = "vase: PHP_SOAP_RPC"; String SOAP_ACTION = NAME_SPACE + METHOD_NAME; String url = "http://111.223.189.236/webservice/shoppingcart.wsdl"; SoapObject request = new SOAP object (NAME_SPACE, METHOD_NAME); Request.addProperty ("userId", "userId"); Soap Certification Envelope SoapAnawel = New Soapoilization Anaph (Softenffe. Over 11); // soapEnvelop.dotNet = true; SoapEnvelop.setOutputSoapObject (request); HTTP TransportS AH = New HTTP TransportS (URL); Try {Aht.call (SOAP_ACTION, Sootaffeed); Soap Experimental String = (Soap Expert) SoapFeanel velop. Gatesresons (); Tv.setText (resultString.toString ()); } Hold (exception e) {tv.setText (e.toString ()); }  

this is my php file

   gt; color: // timer / res')); $ Server1- & gt; AddFunction ("gettest"); $ Server1- & gt; take care (); ? & Gt;  

Change your URL and then delete.wsdl also try it soapPrimitive resultString = ( SoapPrimitive) soapEnvelop.getResponse (); Use protein. Bodyin


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -