logo       

Re: NuSOAP server description page: msg#00054

php.nusoap.general

Subject: Re: NuSOAP server description page

soap_server::webDescription spits out a bunch of HTML/JavaScript. I believe
the loop below displays SOAPAction and Endpoint (as well as other information
about each operation).

The scheme (http) in SOAPAction does not need to match the scheme (https) of
the request. SOAPAction is an abstract URI: it does not specify the location
of a physical resource. As such, the default construction that uses http is
fine. If you don't want that scheme, you can specify SOAPAction when you call
soap_server::register.

The endpoint of each operation is set to the "endpoint" for the wsdl instance
when wsdl::addOperation is called. The endpoint for the wsdl instance is set
in soap_server::configureWSDL.

foreach($this->wsdl->getOperations() as $op => $data){
$b .= "<li><a href='#' onclick=\"popup('$op')\">$op</a></li>";
// create hidden div
$b .= "<div id='$op' class='hidden'>
<a href='#' onclick='popout()'><font
color='#ffffff'>Close</font></a><br><br>";
foreach($data as $donnie => $marie){ // loop through opdata
if($donnie == 'input' || $donnie == 'output'){ // show input/output data
$b .= "<font color='white'>".ucfirst($donnie).':</font><br>';
foreach($marie as $captain => $tenille){ // loop through data
if($captain == 'parts'){ // loop thru parts
$b .= "&nbsp;&nbsp;$captain:<br>";
//if(is_array($tenille)){
foreach($tenille as $joanie => $chachi){
$b .= "&nbsp;&nbsp;&nbsp;&nbsp;$joanie: $chachi<br>";
}
//}
} else {
$b .= "&nbsp;&nbsp;$captain: $tenille<br>";
}
}
} else {
$b .= "<font color='white'>".ucfirst($donnie).":</font> $marie<br>";
}
}
$b .= '</div>';
}

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.

----- Original Message -----
From: "Larry Brown" <lbrown@xxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, April 14, 2004 4:10 PM
Subject: [Nusoap-general] NuSOAP server description page


I submitted a problem several weeks ago where my server is https only
and the wsdl was directing the client to attempt to connect on http. At
the time I hacked it and placed the static name of my web page in that
variable including the https. That worked and the functionality of the
server has been working fine.

I noticed today that if you go to the server from the browser and you
examine all of the functions, they describe the Endpoint and SoapAction
as going to http and not https. How can I circumvent that? I've
grepped all of the php class files without any hit on Endpoint so at
least the titles must be coming from some other location.

Suggestions?

Larry



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise