Can't get an output while calling java web service using php -


i have create web service using java. used below code call web service using php.

$client = new soapclient("http://localhost:8080/imagecom/wsdl/compareimage.wsdl"); $stock = "http://localhost/pic/bluetshirts/b10.jpg"; $parameters= array("url"=>$stock); $values = $client->checksimilarity($parameters);        var_dump($values); 

when run code following output. doesn't display result

output: object(stdclass)#2 (0) { }

here wsdl

<wsdl:definitions xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://simalarity.imagecom" xmlns:intf="http://simalarity.imagecom" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/xmlschema" targetnamespace="http://simalarity.imagecom"> <!-- wsdl created apache axis version: 1.4 built on apr 22, 2006 (06:55:48 pdt) --> <wsdl:types> <schema xmlns="http://www.w3.org/2001/xmlschema" elementformdefault="qualified" targetnamespace="http://simalarity.imagecom"> <element name="checksimilarity"> <complextype> <sequence> <element name="url" type="xsd:string"/> </sequence> </complextype> </element> <element name="checksimilarityresponse"> <complextype/> </element> </schema> </wsdl:types> <wsdl:message name="checksimilarityrequest"> <wsdl:part element="impl:checksimilarity" name="parameters"></wsdl:part> </wsdl:message> <wsdl:message name="checksimilarityresponse"> <wsdl:part element="impl:checksimilarityresponse" name="parameters"></wsdl:part> </wsdl:message> <wsdl:porttype name="compareimage"> <wsdl:operation name="checksimilarity"> <wsdl:input message="impl:checksimilarityrequest" name="checksimilarityrequest"></wsdl:input> <wsdl:output message="impl:checksimilarityresponse" name="checksimilarityresponse"></wsdl:output> </wsdl:operation> </wsdl:porttype> <wsdl:binding name="compareimagesoapbinding" type="impl:compareimage"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="checksimilarity"> <wsdlsoap:operation soapaction=""/> <wsdl:input name="checksimilarityrequest"> <wsdlsoap:body use="literal"/> </wsdl:input> <wsdl:output name="checksimilarityresponse"> <wsdlsoap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="compareimageservice"> <wsdl:port binding="impl:compareimagesoapbinding" name="compareimage"> <wsdlsoap:address location="http://localhost:8080/imagecom/services/compareimage"/> </wsdl:port> </wsdl:service> </wsdl:definitions> 

what doing wrong? please me.

the thing getting standard class object array in return.

you have extract values accordingly

print_r($array) print array recursively.

you may loop on array of objects below,

foreach ($array $key => $object) { echo $object->object_property; } 

think of array collection of things. it's bag can store stuff , give them unique id (key) , access them.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -