Link to home
Start Free TrialLog in
Avatar of Roba121
Roba121

asked on

Soap server error parsing wsdl ?

Hi I'm trying to interact with soap server and I keep getting the following issue.   it appears on the first line. The wsdl is below

Error:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: unexpected <restriction> in complexType in C:\wamp\www\osc_soap.php:4 Stack trace: #0 C:\wamp\www\osc_soap.php(4): SoapClient->SoapClient('http://www.pave...') #1 {main} thrown in C:\wamp\www\osc_soap.php on line 4

I'm connecting from localhost if that makes a difference

$client = new SoapClient($wsdl,);
Where $wsdl is the wsdl file

I just cant see whats wrong with the wsdl so. It seems that nusoap is a bit more tolerant.
<?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="http://paveon.com/soap/customerportal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://paveon.com/soap/customerportal">
<types><xsd:schema targetNamespace="http://paveon.com/soap/customerportal"
>
 <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
 <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
 <xsd:complexType name="tickets_list_array">
   <xsd:restriction base="Array">
   </xsd:restriction>
 </xsd:complexType>
 <xsd:complexType name="ticket_comments_array">
 
   <xsd:restriction base="Array">
   </xsd:restriction>
 </xsd:complexType>
 <xsd:complexType name="combo_values_array">
   <xsd:restriction base="Array">
   </xsd:restriction>
 </xsd:complexType>
 <xsd:complexType name="KBase_array">
  <xsd:complexContent>
 
   <xsd:restriction base="SOAP-ENC:Array">
    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:kbase_detail[]"/>
   </xsd:restriction>
  </xsd:complexContent>
 </xsd:complexType>
 <xsd:complexType name="kbase_detail">
   <xsd:restriction base="Array">
   </xsd:restriction>
 </xsd:complexType>
 
 <xsd:complexType name="ticket_update_comment_array">
   <xsd:restriction base="Array">
   </xsd:restriction>
 </xsd:complexType>
 <xsd:complexType name="user_array">
   <xsd:restriction base="Array">
   </xsd:restriction>
 </xsd:complexType>
 <xsd:complexType name="get_picklists_array">
 
   <xsd:restriction base="Array">
   </xsd:restriction>
 </xsd:complexType>
 <xsd:complexType name="get_ticket_attachments_array">
   <xsd:restriction base="Array">
   </xsd:restriction>
 </xsd:complexType>
 <xsd:complexType name="get_filecontent_array">
   <xsd:restriction base="Array">
 
   </xsd:restriction>
 </xsd:complexType>
 <xsd:complexType name="add_ticket_attachment_array">
   <xsd:restriction base="Array">
   </xsd:restriction>
 </xsd:complexType>
</xsd:schema>
</types>
<message name="authenticate_userRequest"><part name="user_name" type="xsd:string" /><part name="password" type="xsd:string" /></message>
<message name="authenticate_userResponse"><part name="return" type="tns:user_array" /></message>
<message name="change_passwordRequest"><part name="id" type="xsd:string" /><part name="user_name" type="xsd:string" /><part name="password" type="xsd:string" /></message>
 
<message name="change_passwordResponse"><part name="return" type="tns:user_array" /></message>
<message name="create_ticketRequest"><part name="title" type="xsd:string" /><part name="description" type="xsd:string" /><part name="priority" type="xsd:string" /><part name="severity" type="xsd:string" /><part name="category" type="xsd:string" /><part name="user_name" type="xsd:string" /><part name="parent_id" type="xsd:string" /><part name="product_id" type="xsd:string" /><part name="module" type="xsd:string" /></message>
<message name="create_ticketResponse"><part name="return" type="tns:tickets_list_array" /></message>
<message name="get_tickets_listRequest"><part name="user_name" type="xsd:string" /><part name="id" type="xsd:string" /><part name="where" type="xsd:string" /><part name="match" type="xsd:string" /></message>
<message name="get_tickets_listResponse"><part name="return" type="tns:tickets_list_array" /></message>
<message name="get_ticket_commentsRequest"><part name="id" type="xsd:string" /></message>
<message name="get_ticket_commentsResponse"><part name="return" type="tns:ticket_comments_array" /></message>
<message name="get_combo_valuesRequest"><part name="id" type="xsd:string" /></message>
<message name="get_combo_valuesResponse"><part name="return" type="tns:combo_values_array" /></message>
<message name="get_KBase_detailsRequest"><part name="id" type="xsd:string" /></message>
<message name="get_KBase_detailsResponse"><part name="return" type="tns:KBase_array" /></message>
<message name="save_faq_commentRequest"><part name="faqid" type="xsd:string" /><part name="comments" type="xsd:string" /></message>
<message name="save_faq_commentResponse"><part name="return" type="tns:KBase_array" /></message>
<message name="update_ticket_commentRequest"><part name="ticketid" type="xsd:string" /><part name="ownerid" type="xsd:string" /><part name="comments" type="xsd:string" /></message>
<message name="update_ticket_commentResponse"><part name="return" type="tns:ticket_update_comment_array" /></message>
<message name="close_current_ticketRequest"><part name="ticketid" type="xsd:string" /></message>
<message name="close_current_ticketResponse"><part name="return" type="xsd:string" /></message>
 
<message name="update_login_detailsRequest"><part name="id" type="xsd:string" /><part name="flag" type="xsd:string" /></message>
<message name="update_login_detailsResponse"><part name="return" type="tns:user_array" /></message>
<message name="send_mail_for_passwordRequest"><part name="email" type="xsd:string" /></message>
<message name="send_mail_for_passwordResponse"><part name="return" type="xsd:string" /></message>
<message name="get_ticket_creatorRequest"><part name="id" type="xsd:string" /></message>
<message name="get_ticket_creatorResponse"><part name="return" type="xsd:string" /></message>
<message name="get_picklistsRequest"><part name="id" type="xsd:string" /></message>
<message name="get_picklistsResponse"><part name="return" type="tns:get_picklists_array" /></message>
<message name="get_ticket_attachmentsRequest"><part name="id" type="xsd:string" /><part name="ticketid" type="xsd:string" /></message>
<message name="get_ticket_attachmentsResponse"><part name="return" type="tns:get_ticket_attachments_array" /></message>
<message name="get_filecontentRequest"><part name="id" type="xsd:string" /><part name="fileid" type="xsd:string" /><part name="filename" type="xsd:string" /></message>
<message name="get_filecontentResponse"><part name="return" type="tns:get_filecontent_array" /></message>
<message name="add_ticket_attachmentRequest"><part name="ticketid" type="xsd:string" /><part name="filename" type="xsd:string" /><part name="filetype" type="xsd:string" /><part name="filesize" type="xsd:string" /><part name="filecontents" type="xsd:string" /></message>
<message name="add_ticket_attachmentResponse"><part name="return" type="tns:add_ticket_attachment_array" /></message>
<portType name="customerportalPortType"><operation name="authenticate_user"><input message="tns:authenticate_userRequest"/><output message="tns:authenticate_userResponse"/></operation><operation name="change_password"><input message="tns:change_passwordRequest"/><output message="tns:change_passwordResponse"/></operation><operation name="create_ticket"><input message="tns:create_ticketRequest"/><output message="tns:create_ticketResponse"/></operation><operation name="get_tickets_list"><input message="tns:get_tickets_listRequest"/><output message="tns:get_tickets_listResponse"/></operation><operation name="get_ticket_comments"><input message="tns:get_ticket_commentsRequest"/><output message="tns:get_ticket_commentsResponse"/></operation><operation name="get_combo_values"><input message="tns:get_combo_valuesRequest"/><output message="tns:get_combo_valuesResponse"/></operation><operation name="get_KBase_details"><input message="tns:get_KBase_detailsRequest"/><output message="tns:get_KBase_detailsResponse"/></operation><operation name="save_faq_comment"><input message="tns:save_faq_commentRequest"/><output message="tns:save_faq_commentResponse"/></operation><operation name="update_ticket_comment"><input message="tns:update_ticket_commentRequest"/><output message="tns:update_ticket_commentResponse"/></operation><operation name="close_current_ticket"><input message="tns:close_current_ticketRequest"/><output message="tns:close_current_ticketResponse"/></operation><operation name="update_login_details"><input message="tns:update_login_detailsRequest"/><output message="tns:update_login_detailsResponse"/></operation><operation name="send_mail_for_password"><input message="tns:send_mail_for_passwordRequest"/><output message="tns:send_mail_for_passwordResponse"/></operation><operation name="get_ticket_creator"><input message="tns:get_ticket_creatorRequest"/><output message="tns:get_ticket_creatorResponse"/></operation><operation name="get_picklists"><input message="tns:get_picklistsRequest"/><output message="tns:get_picklistsResponse"/></operation><operation name="get_ticket_attachments"><input message="tns:get_ticket_attachmentsRequest"/><output message="tns:get_ticket_attachmentsResponse"/></operation><operation name="get_filecontent"><input message="tns:get_filecontentRequest"/><output message="tns:get_filecontentResponse"/></operation><operation name="add_ticket_attachment"><input message="tns:add_ticket_attachmentRequest"/><output message="tns:add_ticket_attachmentResponse"/></operation></portType>
<binding name="customerportalBinding" type="tns:customerportalPortType"><soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="authenticate_user"><soap:operation soapAction="http://example.com/vtigerservice.php/authenticate_user" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="change_password"><soap:operation soapAction="http://example.com/vtigerservice.php/change_password" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="create_ticket"><soap:operation soapAction="http://example.com/vtigerservice.php/create_ticket" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="get_tickets_list"><soap:operation soapAction="http://example.com/vtigerservice.php/get_tickets_list" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="get_ticket_comments"><soap:operation soapAction="http://example.com/vtigerservice.php/get_ticket_comments" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="get_combo_values"><soap:operation soapAction="http://example.com/vtigerservice.php/get_combo_values" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="get_KBase_details"><soap:operation soapAction="http://example.com/vtigerservice.php/get_KBase_details" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="save_faq_comment"><soap:operation soapAction="http://example.com/vtigerservice.php/save_faq_comment" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="update_ticket_comment"><soap:operation soapAction="http://example.com/vtigerservice.php/update_ticket_comment" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="close_current_ticket"><soap:operation soapAction="http://example.com/vtigerservice.php/close_current_ticket" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="update_login_details"><soap:operation soapAction="http://example.com/vtigerservice.php/update_login_details" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="send_mail_for_password"><soap:operation soapAction="http://example.com/vtigerservice.php/send_mail_for_password" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="get_ticket_creator"><soap:operation soapAction="http://example.com/vtigerservice.php/get_ticket_creator" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="get_picklists"><soap:operation soapAction="http://example.com/vtigerservice.php/get_picklists" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="get_ticket_attachments"><soap:operation soapAction="http://example.com/vtigerservice.php/get_ticket_attachments" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="get_filecontent"><soap:operation soapAction="http://example.com/vtigerservice.php/get_filecontent" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="add_ticket_attachment"><soap:operation soapAction="http://example.com/vtigerservice.php/add_ticket_attachment" style="rpc"/><input><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.vtiger.com/products/crm" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation></binding>
<service name="customerportal"><port name="customerportalPort" binding="tns:customerportalBinding"><soap:address location="http://example.com/vtigerservice.php"/></port></service>
 
</definitions>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Rurne
Rurne
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial