tag:help-archives.hannonhill.com,2010-02-09:/discussions/web-services/1646-soap-errorCascade CMS: Discussion 2016-08-16T17:02:00Ztag:help-archives.hannonhill.com,2010-02-09:Comment/405234212016-08-12T11:52:16Z2016-08-12T11:52:16ZSoap Error<div><p>Hi Matt,</p>
<p>Can you attach your script here so that we can help figuring out
what is wrong?</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/405234212016-08-15T16:42:43Z2016-08-15T16:42:46ZSoap Error<div><p>function __construct()<br>
{ try { use_soap_error_handler(true);
ini_set("soap.wsdl_cache_enabled", "0");</p>
<pre>
<code> $this->auth = array('username' => '******', 'password' => '******');
$soapURL = "******/ws/services/AssetOperationService?wsdl";
# soap service
$this->service = new SoapClient
(
$soapURL,
array ('trace' => 1, 'location' => str_replace('?wsdl', '', $soapURL))
);
// $test = file_get_contents("https://utah-healthcare.cascadeserver.com/ws/services/AssetOperationService?wsdl");
$fcs = $this->service->__getFunctions();
#authentication vars
}
catch(Exception $error)
{
echo 'Caught Exception: ' . $error->getMessage() . "\n";
}
}</code>
</pre></div>Matttag:help-archives.hannonhill.com,2010-02-09:Comment/405234212016-08-15T17:01:13Z2016-08-15T17:01:13ZSoap Error<div><p>Hi Matt,</p>
<p>I tried your code with our wsdl and did not see any error. I
suspect that it is related to your wsdl URL. Also try plugging in
the $soadURL without removing "?wsdl".</p>
<p>By the way, I assume that you know of my library, right? Here
you are building a class, wrapping up the soap client. But I have
already done that. Why reinventing the wheel?</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/405234212016-08-15T17:06:11Z2016-08-15T17:06:11ZSoap Error<div><p>Hi Wing -</p>
<p>I'm not familiar with your library. I am fairly new to this job
and I am working with some legacy code. Can you send me a link to
your library? I'll try hitting the url without removing the
"?wsdl". Thanks!</p></div>Matttag:help-archives.hannonhill.com,2010-02-09:Comment/405234212016-08-15T17:11:23Z2016-08-15T17:11:23ZSoap Error<div><p>See my last post on <a href="http://help.hannonhill.com/discussions/web-services/1633-question-on-reading-cascade-file-metadata-programmatically-in-c">
http://help.hannonhill.com/discussions/web-services/1633-question-o...</a></p>
<p>Also check out what we did last Friday (Web Services: Day 1):
<a href="http://www.upstate.edu/cascade-admin/web-services/courses/ws-online-tutorials.php">
http://www.upstate.edu/cascade-admin/web-services/courses/ws-online...</a></p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/405234212016-08-16T12:43:16Z2016-08-16T12:43:16ZSoap Error<div><p>Hi Matt,</p>
<p>The issue you are seeing is due to your instance using custom
authentication. What is happening is when you attempt to access
<a href="https://utah-healthcare.cascadeserver.com/ws/services/AssetOperationService?wsdl">
https://utah-healthcare.cascadeserver.com/ws/services/AssetOperatio...</a>
you are being redirected to your Shibeloth endpoint, not the
WSDL.</p>
<p>You have a couple of options:</p>
<ul>
<li>we can allow a certain IP range or domain to bypass the custom
authentication redirect and pass through to the WSDL</li>
<li>use the backdoor we provided to you at <a href="https://utah-healthcare-admin.cascadeserver.com/ws/services/AssetOperationService?wsdl">
https://utah-healthcare-admin.cascadeserver.com/ws/services/AssetOp...</a>.
Note: you will still need to use a local user to authenticate with
in your web services scripts.</li>
</ul>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/405234212016-08-16T16:49:29Z2016-08-16T16:49:30ZSoap Error<div><p>Thanks Ryan - the backdoor option seems to be working. I'm going
to give that a try for now.</p></div>Matttag:help-archives.hannonhill.com,2010-02-09:Comment/405234212016-08-16T17:01:58Z2016-08-16T17:01:58ZSoap Error<div><p>Not a problem at all, Matt.</p>
<p>Feel free to let us know if you would prefer the IP or domain
route and we'll work with you to set that up.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffith