FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Trouble connecting to a PHP SoapServer module
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Trouble connecting to a PHP SoapServer module [message #184558] Fri, 10 January 2014 21:00 Go to previous message
KASmith is currently offline  KASmith
Messages: 2
Registered: January 2014
Karma:
Junior Member
I have developed a Soap server program, index.php, written in PHP,
using the PHP built-in SoapServer. I am running this on my development
laptop using Apache and the XAMPP stack. This program loads a
pre-defined WSDL file that defines the Soap locations as:

<wsdl:service name="CB_Server">
<wsdl:port name="CB_ServerSoap" binding="tns:CB_ServerSoap">
<soap:address location="http://localhost/CB_ServerSoap"/>
</wsdl:port>
</wsdl:service>

I am sending requests to it from SoapServer using the address as:
http://localhost/CB_Server/index.php I am also able to edit this
section of the WSDL and have tried quite a few variations on these
values, but always with the results described below.


Each time I try the request, SoapUI shows me the response as the HTML
that Apache sends when it does not recognize the file request. I get:
--other stuff--
<body>
<h1>Object not found!</h1>
<p>The requested URL was not found on this server.


It seems that I am not using the correct address for the Soap request.
I have tried many variations of the address above, as suggested by
various blog messages:
http://localhost/CB_Server/index.php
http://localhost/CB_Server/
http://localhost/CB_Server
http://localhost/index.php
http://localhost/index

I have also loaded this program into a remote server and repeated this
test. I also get the same results, that the server program sends back
a 404 type error," URL was not found on this server".


I wrote an extremely minimal test server and client program and got
the same results from this pair. This led me to concluded that the
problem is not related to using SoapUI. I am completely confused.


Can anyone suggest what the correct address should be?

Or, is there some other factor that could be producing this result?

Is theret a reason that testing using local-host and SoapUI would not
work?


Any insight would be greatly appreciated.


(I would be pleased to post any of these files, or email them to any
interested parties, if that would help in getting this resolved.)

Thanks for thinking about this.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Switch question
Next Topic: php.ini loading
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 10:23:11 GMT 2024

Total time taken to generate the page: 0.04530 seconds