NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Problem connecting to local server, and setting the proxy


Joined: 21 Jun 2007
Posts: 2
Reply with quote
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:

Code:

$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:
Code:

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:
Code:

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">&lt;credential&gt;&lt;namespace&gt;NAMESPACE_Novell&lt;/namespace&gt;&lt;username&gt;user_1234&lt;/username&gt;&lt;password&gt;pass_1234&lt;/password&gt;&lt;/credential&gt;</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:
Code:

$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!
View user's profileFind all posts by mayhemsanSend private message


Joined: 21 Jun 2007
Posts: 2
Reply with quote
also, i forgot, the request used in hava works fine
View user's profileFind all posts by mayhemsanSend private message
Problem connecting to local server, and setting the proxy
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic