hi all..

just wanted to make sure that i'm not doing anything wrong.

i create the soap client object and then do
$r = client->__doRequest($str, $url, $url, 1, 0);

where the $str is an xml file the "client" provided and the $url is the service address.

i'm supposed to get an xml file/string back. but i don't see anything back and there are no warnings or errors. before i start asking them i just wanted to make sure the doRequest function is being used correctly....

tried:

$r = client->__doRequest($str, $url, $url, 1, 0);

if (is_soap_fault($r)) {
    trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring: {$result->faultstring})", E_USER_ERROR);
}

but still nothing gets printed on the screen or the log.

is the __doRequest function used correctly here?

thanks...

    what would be the correct way to use the soap extension to do a soap request if i have been given the xml that needs to be sent over and it looks like this:

    <function_name>
    <first_name>joe</first_name>
    <last_name>bloe</last_name>
    <address>12 12th street</address>
    <etc...>.....</etc....>
    </function_name>
    

    where function_name is the one to call over the service and all the other tags contain values as in name/value pairs...

    i can't really figure this one out cause it's not really a real soap call i guess...

    any help will be appreciated....

    thanks....

      it's kinda urgent. i'd really like somebody to point me in the right direction. thanks.

        ok. here is a simpler question, i think:

        how do i see the final xml request that is being sent to the remote machine?

          thanks for all the replies... happy holidays to all...

            Write a Reply...