Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="ISO-8859-1"?>
<definitions 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/" xmlns:tns="https://kvikbase.kvik.com:44343/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="https://kvikbase.kvik.com:44343/">
<types><xsd:schema targetNamespace="https://kvikbase.kvik.com:44343/"
>
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
<xsd:complexType name="Store">
<xsd:all>
<xsd:element name="id" type="xsd:int"/>
<xsd:element name="storeName" type="xsd:string"/>
<?php
$client = new SoapClient('https://kvikbase.kvik.com:44343/webservices/KvikStores.php?wsdl');
$output = $client->get_employees_by_store( array('storeid'=>27, 'languageid'=>1));
var_dump($output);
---
Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in /Users/fangel/Sites/soap-test-riversen.php:4
Stack trace: