Empty response in SOAP request
am 01.11.2007 21:28:03 von apaezp
Hi:
I am trying to access a WebService using the PHP 5.2.2 Soap
Extension. Everything seems to work fine, but after connecting to the
service and sending a request I get a NULL response. I know for a
fact that the service does send some data in document/literal style,
because the response can be seen with soapUI. However, no matter what
options I try with my SoapClient call, I only get a NULL response.
I have no problems with RPC WebServices, could it be that the problem
is because it is a document/literal service? If so, does anyone have
an example of the correct syntax to use in those cases?
Thanks.
Re: Empty response in SOAP request
am 02.11.2007 10:58:32 von shimmyshack
On Nov 1, 8:28 pm, apaezp wrote:
> Hi:
> I am trying to access a WebService using the PHP 5.2.2 Soap
> Extension. Everything seems to work fine, but after connecting to the
> service and sending a request I get a NULL response. I know for a
> fact that the service does send some data in document/literal style,
> because the response can be seen with soapUI. However, no matter what
> options I try with my SoapClient call, I only get a NULL response.
>
> I have no problems with RPC WebServices, could it be that the problem
> is because it is a document/literal service? If so, does anyone have
> an example of the correct syntax to use in those cases?
> Thanks.
i know its not the answer but you /could/ proxy your soap request via
your home server running paros or fiddlertool (if your test server is
not at home) and check the headers etc... Its the sure fire way to
detect differences and narrow down your issues.
Re: Empty response in SOAP request
am 09.11.2007 17:41:09 von ould.zoubeir
On 2 nov, 10:58, shimmyshack wrote:
> On Nov 1, 8:28 pm, apaezp wrote:
>
> > Hi:
> > I am trying to access a WebService using the PHP 5.2.2 Soap
> > Extension. Everything seems to work fine, but after connecting to the
> > service and sending a request I get a NULL response. I know for a
> > fact that the service does send some data in document/literal style,
> > because the response can be seen with soapUI. However, no matter what
> > options I try with my SoapClient call, I only get a NULL response.
>
> > I have no problems with RPC WebServices, could it be that the problem
> > is because it is a document/literal service? If so, does anyone have
> > an example of the correct syntax to use in those cases?
> > Thanks.
>
> i know its not the answer but you /could/ proxy your soap request via
> your home server running paros or fiddlertool (if your test server is
> not at home) and check the headers etc... Its the sure fire way to
> detect differences and narrow down your issues.
Hi,
You have to send the founction's parameters in array, for example:
$client =new SoapClient("your wsdl file");
$client->YourFunction(array('param1' =>'Value1','param2'=>'value2'));