hi, i run with this problem...
im am using a service that's located in my intranet, it's reportnet's webservice
i am able to retrieve the wsdl file
and when sending back using "call method" just to login to the webservice, i get a response that indicates a fault:
"DPR-ERR-2008 The dispatcher is unable to process the request. The request is directed to an unknown service name: ."
here is the code i use:
$client = new soapclient('http://intranetserver/crn/cgi-bin/cognos.cgi?wsdl', 'wsdl'/**/);
$err = $client->getError();
if ($err)
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
$method = 'logon';
$credential = array('namespace' => 'NAMESPACE_Novell',
'username' => 'user_1234',
'password' => 'pass_1234');
$result = $client->call($method , array('credential' => $credential, 'roles'=>'') );
|
the variable $err, gives me this msg:
"wsdl error: HTTP ERROR: Couldn't open socket connection to server
http://schemas.xmlsoap.org/soap/encoding/, Error (111): Connection refused"
the xml generated by call is this:
POST /crn/cgi-bin/cognos.cgi?wsdl HTTP/1.0
Host: arba-24m
User-Agent: NuSOAP/0.7.2 (1.94)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: ""
Content-Length: 703
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns7869:logon xmlns:ns7869="http://developer.cognos.com/schemas/bibus/2/"><credential><namespace xsi:type="xsd:string">NAMESPACE_Novell</namespace><username xsi:type="xsd:string">user_1234</username><password xsi:type="xsd:string">pass_1234</password></credential><roles xsi:type="xsd:string"></roles></ns7869:logon></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
also, this xml below works for me, using it from java:
POST /crn/cgi-bin/cognos.cgi?wsdl HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: arba-24m
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://developer.cognos.com/schemas/bibus/2#contentManagerService"
Content-Length: 905
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:biBusHeader soapenv:mustUnderstand="0" xmlns:ns1="http://developer.cognos.com/schemas/bibus/2/"/>
</soapenv:Header>
<soapenv:Body>
<ns2:logon soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://developer.cognos.com/schemas/bibus/2/">
<credentials xsi:type="xsd:string"><credential><namespace>NAMESPACE_Novell</namespace><username>user_1234</username><password>pass_1234</password></credential></credentials>
<roles xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[0]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"/>
</ns2:logon>
</soapenv:Body>
</soapenv:Envelope>
|
trying to fix the error:
"wsdl error: HTTP ERROR: Couldn't open socket connection to server
http://schemas.xmlsoap.org/soap/encoding/, Error (111): Connection refused"
i tried setting up the proxy, since to access the www i need an autenticated proxy login, i used:
$client = new soapclient('http://intranetserver/crn/cgi-bin/cognos.cgi?wsdl', 'wsdl',
$proxyhost, $proxyport, $proxyusername, $proxypassword);
|
but then, it tries to find intranetserver in the proxy, so the proxy's response is that it cannot find resolve the ip address:
"The following error was encountered:
Unable to determine IP address from host name for
<I>intranetserver</I>"
i belive my problem is in being able to specify a list of intranet names, so that it doesn't use the proxy sever to resolve the ip address
does anybody run into this problem, or have wise advise to give?
i haven't got a lot of experience y soap so any hint would help
thanx!