Jump to content

jimath

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

Everything posted by jimath

  1. hi everyone! When i run web services applications i take always this message: Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document in C:\Program Files\Apache Group\Apache2\htdocs\WebServices\SOAP_EXTENSION\StockQuote\client3.php:3 Stack trace: #0 [internal function]: SoapClient->__call('getQuote', Array) #1 C:\Program Files\Apache Group\Apache2\htdocs\WebServices\SOAP_EXTENSION\StockQuote\client3.php(3): SoapClient->getQuote('ibm') #2 {main} thrown in C:\Program Files\Apache Group\Apache2\htdocs\WebServices\SOAP_EXTENSION\StockQuote\client3.php on line 3 Does anyone know anything about the problem? i have soap extension enabled, and have tried in PHP 5.0.5, 5.1.4. Thanks That's the code if helps: SERVER <?php $quotes = array( "ibm" => 98.42 ); function getQuote($symbol) { global $quotes; return $quotes[$symbol]; } ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache $server = new SoapServer("stockquote.wsdl"); $server->addFunction("getQuote"); $server->handle(); ?> CLIENT <?php $client = new SoapClient("stockquote.wsdl"); print($client->getQuote("ibm")); ?> WSDL FILE <?xml version ='1.0' encoding ='UTF-8' ?> <definitions name='StockQuote' targetNamespace='http://example.org/StockQuote' xmlns:tns=' http://example.org/StockQuote ' xmlns: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/'> <message name='getQuoteRequest'> <part name='symbol' type='xsd:string'/> </message> <message name='getQuoteResponse'> <part name='Result' type='xsd:float'/> </message> <portType name='StockQuotePortType'> <operation name='getQuote'> <input message='tns:getQuoteRequest'/> <output message='tns:getQuoteResponse'/> </operation> </portType> <binding name='StockQuoteBinding' type='tns:StockQuotePortType'> <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/> <operation name='getQuote'> <soap:operation soapAction='urn:xmethods-delayed-quotes#getQuote'/> <input> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </input> <output> <soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/> </output> </operation> </binding> <service name='StockQuoteService'> <port name='StockQuotePort' binding='StockQuoteBinding'> <soap:address location='http://localhost/WebServices/SOAP_EXTENSION/StockQuote/Server1.php'/> </port> </service> </definitions>
  2. hello everyone! i d llike to convert a php application into a service-oriented application with nuSOAP. I am new to web services and i d like to ask the following. I have some functionalities like addPatient, CreateRequest, addResponseToDB etc.. Should i use corresponding clients for each functionality, or should i use a seperate client for each functionality, that make requests to the server? Thanks
  3. for developing Service-oriented solutions with php and BPEL.. (SOA)
  4. I mean web services framework for building web services. Basically i wonder if i have to write all the code by hand if i use php. for example wsdl files.
  5. hello everyone! i d like to know if there are any tools for bulding web services using php. Thanks
  6. hello everyone! i 'd developed a php web application and i d like to develop it again using SOA. PHP is not so famous for this architecture as java and .NET. could you please tell me your opinion about using PHP and web services? Are there any difficulties i am going to face ? why it is prefferable to use java or .NET with WS? Any recources, books, tools would be appreciated!
  7. hi everyone! i d like to create a health workflow issue rad request -> issue rad report -> receive rad report. i d like to ask if i can use php language in websphere to create that. Thanks
  8. well, 1. i can't access my router although stop apache 2. the type of router is wireless 3. my router is LEVEL ONE WBR 3460 4. I have 2 notebooks. the first (new) access internet ok. i can access my router in address 192.168.0.1. the older is that i tell you about the problem with apache. I CANT ACCESS MY ROUTER FROM THIS NOTEBOOK. Although it is connected to my network, its connected only locally i cant access internet. Thanks!
  9. If it has been assigned the 192.168.0.1 ip of router, can i change that?
  10. level one i do not remember the model. can i see anywhere if apache has been assigned router IP? logically i know that it would have 127.0.0.1 Thanks anyway!!
  11. yes its the 192.168.0.1 IP of my router. when i type this in my browser apache page is displayed. i tried this address in other laptop that was not installed apache and all its ok. what can i do?
  12. hi everyone! i ve installed apache on my laptop and a problem is occured with my router. when i try to get in my router typing its address, the first page of apache is displayed. then i tried to stop apache, i uninstalled apache, but nothing. i cannot get in my router. Can you help me to solve the problem?
  13. what is the conversion table?
  14. hi everyone! i d like to ask if i can have installed both php4 and php5 in the same computer. in addition, Do scripts that are written in php4 run normally in php5? or i ll have any problems?
  15. Thank you very much for your info! my problem is that i cannot find a book satisfying my demands. i liked this http://www.amazon.co.uk/Professional-PHP-Programming-Programmer/dp/1861002963 but it is outdated. Basically i d like a book not introductory but intermediate and having code examples with icons and case studies. could you suggest me anything? Thanks!
  16. hello everyone! i d like to buy a php book but it is refered to php4. i have installed php 5 in my computer. are there many diferences between these two editions? do you think that i will have problems with the php examples of the book running them in php5? Thank you!
  17. for example i d like the user types printers and the site displays the page containing all printers. need i store the path of each page in a db in order to achieve such a searching?
  18. hello everyone! i d like to include a search engine in my site. i want to know how difficult could be if i write the code from scratch in php. i d also like to tell me if you know any good tutorials about this subject, and suggest me ready to use scripts written in php. what about the pros and the cons to use sth already implemented? Thank you very much!
  19. hello everyone! i ve deployed a php web application but it is lacking in designing. what technologies can i use in order to improve the design view? it seems very poor compared to similar application made by using jsp.
  20. OK NOW IT WORKS!! THANK YOU VERY MUCH HAKU!!! IT was ;default_charset = "iso-8859-1" and i changed it to: default_charset = "UTF-8" so i have to change the default_charset in php ini correspondingly to what charset i am using to my scripts? or using UTF-8 i am covered?
  21. yes i can. i opened php.ini and i saw the following: is anything relevant? ; http input encoding. ;mbstring.http_input = auto ; enable automatic encoding translation accoding to ; mbstring.internal_encoding setting. Input chars are ; converted to internal encoding by setting this to On. ; Note: Do _not_ use automatic encoding translation for ; portable libs/applications. ;mbstring.encoding_translation = Off ; automatic encoding detection order. ; auto means ;mbstring.detect_order = auto ; substitute_character used when character cannot be converted ; one from another ;mbstring.substitute_character = none;
  22. i do not see anything relevant to this (HTTP Headers Information => Accept-Charset) some relevant displayed are: HTTP_ACCEPT_LANGUAGE el HTTP_ACCEPT_ENCODING gzip, deflate _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
  23. yes. but at the beginning too(when i load the index.php page are the letters unreadable) . i change the encoding to utf in mozilla, letters are displayed ok, and when i click a link again unreadable.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.