Sending raw SOAP Message to specified port

Sending raw SOAP Message to specified port

am 01.09.2007 00:21:23 von ZAAN

Hi,

I'm developing an application in PHP5, which interacts with another
system written in Delphi (of another company). I've prepared the Web
Service - WSDL, Client and Server (only stub) side. Company
responsible for Delphi part hasn't preapred "real" soap server, but
instead of that they have made an application, which listens for SOAP
request on one port and send SOAP responses on another. In that case
the problem is I can't use default HTTP protocol and (I think) I need
to send raw SOAP messages. How can I do that using native PHP5
SoapClient? Is there any parameters in WSDL which says to SoapClient
to send raw SOAP request to one port and get response on another? Is
that possible? Any ohter solutions?

Thanks in advance.
Best Regards
ZAAN

Re: Sending raw SOAP Message to specified port

am 01.09.2007 13:42:11 von Paul Lautman

ZAAN wrote:
> Hi,
>
> I'm developing an application in PHP5, which interacts with another
> system written in Delphi (of another company). I've prepared the Web
> Service - WSDL, Client and Server (only stub) side. Company
> responsible for Delphi part hasn't preapred "real" soap server, but
> instead of that they have made an application, which listens for SOAP
> request on one port and send SOAP responses on another. In that case
> the problem is I can't use default HTTP protocol and (I think) I need
> to send raw SOAP messages. How can I do that using native PHP5
> SoapClient? Is there any parameters in WSDL which says to SoapClient
> to send raw SOAP request to one port and get response on another? Is
> that possible? Any ohter solutions?
>
> Thanks in advance.
> Best Regards
> ZAAN

You don't actually send on a port, you send to a port. They way they seem to
want to do this is to have your application setup as a soap server as well.
You then listen on the response port for a soap message from them.

Re: Sending raw SOAP Message to specified port

am 01.09.2007 23:16:38 von ZAAN

> You don't actually send on a port, you send to a port. They way they seem to
> want to do this is to have your application setup as a soap server as well.
> You then listen on the response port for a soap message from them.

There is some misunderstanding. Both port (for request and to send
response) are on their machine. They way they want to do that is to
get my raw (without HTTP header) soap request on one port (yes, I send
my soap request to that port) and send me response to that request on
another port (also in raw soap).

BR ZAAN

Re: Sending raw SOAP Message to specified port

am 02.09.2007 14:32:27 von ng4rrjanbiah

On Sep 1, 3:21 am, ZAAN wrote:
> Hi,
>
> I'm developing an application in PHP5, which interacts with another
> system written in Delphi (of another company). I've prepared the Web
> Service - WSDL, Client and Server (only stub) side. Company
> responsible for Delphi part hasn't preapred "real" soap server, but
> instead of that they have made an application, which listens for SOAP
> request on one port and send SOAP responses on another. In that case
> the problem is I can't use default HTTP protocol and (I think) I need
> to send raw SOAP messages. How can I do that using native PHP5
> SoapClient? Is there any parameters in WSDL which says to SoapClient
> to send raw SOAP request to one port and get response on another? Is
> that possible? Any ohter solutions?

I do not understand it clearly. However:
1. SOAP is actually through HTTP. That is the real use of SOAP.
2. Automatic creation of WSDL is not quite possible with PHP (because
of data types). But, I think, nuSOAP is doing some of it's sort.
3. PHP is the right choice for SOAP server implementation.
4. Delphi is the right choice for SOAP client. Just point to the WSDL
and the WSDL importer will all the good work for you.
5. For SOAP implementations, it's always better to use some tools
(instead of handcoding raw data)

--

Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/