-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
0Likes Given
-
2Questions
-
3Replies
URGENT WSDL Issues: Error: Failed to parse wsdl: type not specified for attribute:
--------- APOLOGIES FOR THE CROSS POSTING -------------
This post is potentially mre suitable to this discussion board
--------------------------------------------------------------------------------
Hi, I am new to the forums and am experiencing an issue with my WSDL in that it is producing errors when I try to generate APEX classes from it. It was originally throwing errors about name attributes missing so I then followed a previous boards example that I found and replaced the following code:
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/>
with
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]" name="salesforce"/>
However it then started to throw more errors:
Error: Failed to parse wsdl: type not specified for attribute: salesforce
I'm not sure why this is occurring as the type is clearly defined, or is it not?
Below you will see the original WSDL XML tree before I made any adjustments. I will post the newly updated code as a reply in a second.
<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="urn:EntryApi" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:EntryApi"> <types> <xsd:schema targetNamespace="urn:EntryApi"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/> <xsd:complexType name="Associative"> <xsd:all> <xsd:element name="key" type="xsd:string"/> <xsd:element name="value" type="xsd:string"/> </xsd:all> </xsd:complexType> <xsd:complexType name="AssociativeArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="ObjectList"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:AssociativeArray[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema> </types> <message name="create_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="search_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="search_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="create_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="create_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <portType name="EntryApiPortType"> <operation name="create_entry"> <documentation>Add a new entry</documentation> <input message="tns:create_entryRequest"/> <output message="tns:create_entryResponse"/> </operation> <operation name="read_entry"> <documentation>Select a entry</documentation> <input message="tns:read_entryRequest"/> <output message="tns:read_entryResponse"/> </operation> <operation name="update_entry"> <documentation>Update a entry</documentation> <input message="tns:update_entryRequest"/> <output message="tns:update_entryResponse"/> </operation> <operation name="delete_entry"> <documentation>Delete a entry</documentation> <input message="tns:delete_entryRequest"/> <output message="tns:delete_entryResponse"/> </operation> <operation name="search_entry"> <documentation>Search entry`s</documentation> <input message="tns:search_entryRequest"/> <output message="tns:search_entryResponse"/> </operation> <operation name="create_category"> <documentation>Add a new category</documentation> <input message="tns:create_categoryRequest"/> <output message="tns:create_categoryResponse"/> </operation> <operation name="read_category"> <documentation>Select a category</documentation> <input message="tns:read_categoryRequest"/> <output message="tns:read_categoryResponse"/> </operation> <operation name="update_category"> <documentation>Update a category</documentation> <input message="tns:update_categoryRequest"/> <output message="tns:update_categoryResponse"/> </operation> <operation name="delete_category"> <documentation>Delete a category</documentation> <input message="tns:delete_categoryRequest"/> <output message="tns:delete_categoryResponse"/> </operation> <operation name="create_category_group"> <documentation>Add a new category group</documentation> <input message="tns:create_category_groupRequest"/> <output message="tns:create_category_groupResponse"/> </operation> <operation name="read_category_group"> <documentation>Select a category group</documentation> <input message="tns:read_category_groupRequest"/> <output message="tns:read_category_groupResponse"/> </operation> <operation name="update_category_group"> <documentation>Update a category group</documentation> <input message="tns:update_category_groupRequest"/> <output message="tns:update_category_groupResponse"/> </operation> <operation name="delete_category_group"> <documentation>Delete a category group</documentation> <input message="tns:delete_category_groupRequest"/> <output message="tns:delete_category_groupResponse"/> </operation> </portType> <binding name="EntryApiBinding" type="tns:EntryApiPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="create_entry"> <soap:operation soapAction="urn:EntryApi#create_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_entry"> <soap:operation soapAction="urn:EntryApi#read_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_entry"> <soap:operation soapAction="urn:EntryApi#update_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_entry"> <soap:operation soapAction="urn:EntryApi#delete_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="search_entry"> <soap:operation soapAction="urn:EntryApi#search_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category"> <soap:operation soapAction="urn:EntryApi#create_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category"> <soap:operation soapAction="urn:EntryApi#read_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category"> <soap:operation soapAction="urn:EntryApi#update_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category"> <soap:operation soapAction="urn:EntryApi#delete_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category_group"> <soap:operation soapAction="urn:EntryApi#create_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category_group"> <soap:operation soapAction="urn:EntryApi#read_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category_group"> <soap:operation soapAction="urn:EntryApi#update_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category_group"> <soap:operation soapAction="urn:EntryApi#delete_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="EntryApi"> <port name="EntryApiPort" binding="tns:EntryApiBinding"> <soap:address location="http://referralmachine.co/entry_api/soap"/> </port> </service> </definitions>
I have a fast approaching deadline for this project so would greatly appreciate any assitance or explanation that the forum can offer.
Thank you in advance,
Conor
- conorhiggins
- December 19, 2012
- Like
- 0
URGENT WSDL Issues: Error: Failed to parse wsdl: type not specified for attribute:
Hi, I am new to the forums and am experiencing an issue with my WSDL in that it is producing errors when I try to generate APEX classes from it. It was originally throwing errors about name attributes missing so I then followed a previous boards example that I found and replaced the following code:
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/>
with
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]" name="salesforce"/>
However it then started to throw more errors:
Error: Failed to parse wsdl: type not specified for attribute: salesforce
I'm not sure why this is occurring as the type is clearly defined, or is it not?
Below you will see the original WSDL XML tree before I made any adjustments. I will post the newly updated code as a reply in a second.
<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="urn:EntryApi" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:EntryApi"> <types> <xsd:schema targetNamespace="urn:EntryApi"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/> <xsd:complexType name="Associative"> <xsd:all> <xsd:element name="key" type="xsd:string"/> <xsd:element name="value" type="xsd:string"/> </xsd:all> </xsd:complexType> <xsd:complexType name="AssociativeArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="ObjectList"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:AssociativeArray[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema> </types> <message name="create_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="search_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="search_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="create_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="create_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <portType name="EntryApiPortType"> <operation name="create_entry"> <documentation>Add a new entry</documentation> <input message="tns:create_entryRequest"/> <output message="tns:create_entryResponse"/> </operation> <operation name="read_entry"> <documentation>Select a entry</documentation> <input message="tns:read_entryRequest"/> <output message="tns:read_entryResponse"/> </operation> <operation name="update_entry"> <documentation>Update a entry</documentation> <input message="tns:update_entryRequest"/> <output message="tns:update_entryResponse"/> </operation> <operation name="delete_entry"> <documentation>Delete a entry</documentation> <input message="tns:delete_entryRequest"/> <output message="tns:delete_entryResponse"/> </operation> <operation name="search_entry"> <documentation>Search entry`s</documentation> <input message="tns:search_entryRequest"/> <output message="tns:search_entryResponse"/> </operation> <operation name="create_category"> <documentation>Add a new category</documentation> <input message="tns:create_categoryRequest"/> <output message="tns:create_categoryResponse"/> </operation> <operation name="read_category"> <documentation>Select a category</documentation> <input message="tns:read_categoryRequest"/> <output message="tns:read_categoryResponse"/> </operation> <operation name="update_category"> <documentation>Update a category</documentation> <input message="tns:update_categoryRequest"/> <output message="tns:update_categoryResponse"/> </operation> <operation name="delete_category"> <documentation>Delete a category</documentation> <input message="tns:delete_categoryRequest"/> <output message="tns:delete_categoryResponse"/> </operation> <operation name="create_category_group"> <documentation>Add a new category group</documentation> <input message="tns:create_category_groupRequest"/> <output message="tns:create_category_groupResponse"/> </operation> <operation name="read_category_group"> <documentation>Select a category group</documentation> <input message="tns:read_category_groupRequest"/> <output message="tns:read_category_groupResponse"/> </operation> <operation name="update_category_group"> <documentation>Update a category group</documentation> <input message="tns:update_category_groupRequest"/> <output message="tns:update_category_groupResponse"/> </operation> <operation name="delete_category_group"> <documentation>Delete a category group</documentation> <input message="tns:delete_category_groupRequest"/> <output message="tns:delete_category_groupResponse"/> </operation> </portType> <binding name="EntryApiBinding" type="tns:EntryApiPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="create_entry"> <soap:operation soapAction="urn:EntryApi#create_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_entry"> <soap:operation soapAction="urn:EntryApi#read_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_entry"> <soap:operation soapAction="urn:EntryApi#update_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_entry"> <soap:operation soapAction="urn:EntryApi#delete_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="search_entry"> <soap:operation soapAction="urn:EntryApi#search_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category"> <soap:operation soapAction="urn:EntryApi#create_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category"> <soap:operation soapAction="urn:EntryApi#read_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category"> <soap:operation soapAction="urn:EntryApi#update_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category"> <soap:operation soapAction="urn:EntryApi#delete_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category_group"> <soap:operation soapAction="urn:EntryApi#create_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category_group"> <soap:operation soapAction="urn:EntryApi#read_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category_group"> <soap:operation soapAction="urn:EntryApi#update_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category_group"> <soap:operation soapAction="urn:EntryApi#delete_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="EntryApi"> <port name="EntryApiPort" binding="tns:EntryApiBinding"> <soap:address location="http://referralmachine.co/entry_api/soap"/> </port> </service> </definitions>
I have a fast approaching deadline for this project so would greatly appreciate any assitance or explanation that the forum can offer.
Thank you in advance,
Conor
- conorhiggins
- December 19, 2012
- Like
- 1
URGENT WSDL Issues: Error: Failed to parse wsdl: type not specified for attribute:
Hi, I am new to the forums and am experiencing an issue with my WSDL in that it is producing errors when I try to generate APEX classes from it. It was originally throwing errors about name attributes missing so I then followed a previous boards example that I found and replaced the following code:
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/>
with
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]" name="salesforce"/>
However it then started to throw more errors:
Error: Failed to parse wsdl: type not specified for attribute: salesforce
I'm not sure why this is occurring as the type is clearly defined, or is it not?
Below you will see the original WSDL XML tree before I made any adjustments. I will post the newly updated code as a reply in a second.
<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="urn:EntryApi" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:EntryApi"> <types> <xsd:schema targetNamespace="urn:EntryApi"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/> <xsd:complexType name="Associative"> <xsd:all> <xsd:element name="key" type="xsd:string"/> <xsd:element name="value" type="xsd:string"/> </xsd:all> </xsd:complexType> <xsd:complexType name="AssociativeArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="ObjectList"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:AssociativeArray[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema> </types> <message name="create_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="search_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="search_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="create_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="create_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <portType name="EntryApiPortType"> <operation name="create_entry"> <documentation>Add a new entry</documentation> <input message="tns:create_entryRequest"/> <output message="tns:create_entryResponse"/> </operation> <operation name="read_entry"> <documentation>Select a entry</documentation> <input message="tns:read_entryRequest"/> <output message="tns:read_entryResponse"/> </operation> <operation name="update_entry"> <documentation>Update a entry</documentation> <input message="tns:update_entryRequest"/> <output message="tns:update_entryResponse"/> </operation> <operation name="delete_entry"> <documentation>Delete a entry</documentation> <input message="tns:delete_entryRequest"/> <output message="tns:delete_entryResponse"/> </operation> <operation name="search_entry"> <documentation>Search entry`s</documentation> <input message="tns:search_entryRequest"/> <output message="tns:search_entryResponse"/> </operation> <operation name="create_category"> <documentation>Add a new category</documentation> <input message="tns:create_categoryRequest"/> <output message="tns:create_categoryResponse"/> </operation> <operation name="read_category"> <documentation>Select a category</documentation> <input message="tns:read_categoryRequest"/> <output message="tns:read_categoryResponse"/> </operation> <operation name="update_category"> <documentation>Update a category</documentation> <input message="tns:update_categoryRequest"/> <output message="tns:update_categoryResponse"/> </operation> <operation name="delete_category"> <documentation>Delete a category</documentation> <input message="tns:delete_categoryRequest"/> <output message="tns:delete_categoryResponse"/> </operation> <operation name="create_category_group"> <documentation>Add a new category group</documentation> <input message="tns:create_category_groupRequest"/> <output message="tns:create_category_groupResponse"/> </operation> <operation name="read_category_group"> <documentation>Select a category group</documentation> <input message="tns:read_category_groupRequest"/> <output message="tns:read_category_groupResponse"/> </operation> <operation name="update_category_group"> <documentation>Update a category group</documentation> <input message="tns:update_category_groupRequest"/> <output message="tns:update_category_groupResponse"/> </operation> <operation name="delete_category_group"> <documentation>Delete a category group</documentation> <input message="tns:delete_category_groupRequest"/> <output message="tns:delete_category_groupResponse"/> </operation> </portType> <binding name="EntryApiBinding" type="tns:EntryApiPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="create_entry"> <soap:operation soapAction="urn:EntryApi#create_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_entry"> <soap:operation soapAction="urn:EntryApi#read_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_entry"> <soap:operation soapAction="urn:EntryApi#update_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_entry"> <soap:operation soapAction="urn:EntryApi#delete_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="search_entry"> <soap:operation soapAction="urn:EntryApi#search_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category"> <soap:operation soapAction="urn:EntryApi#create_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category"> <soap:operation soapAction="urn:EntryApi#read_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category"> <soap:operation soapAction="urn:EntryApi#update_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category"> <soap:operation soapAction="urn:EntryApi#delete_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category_group"> <soap:operation soapAction="urn:EntryApi#create_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category_group"> <soap:operation soapAction="urn:EntryApi#read_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category_group"> <soap:operation soapAction="urn:EntryApi#update_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category_group"> <soap:operation soapAction="urn:EntryApi#delete_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="EntryApi"> <port name="EntryApiPort" binding="tns:EntryApiBinding"> <soap:address location="http://referralmachine.co/entry_api/soap"/> </port> </service> </definitions>
I have a fast approaching deadline for this project so would greatly appreciate any assitance or explanation that the forum can offer.
Thank you in advance,
Conor
- conorhiggins
- December 19, 2012
- Like
- 1
URGENT WSDL Issues: Error: Failed to parse wsdl: type not specified for attribute:
--------- APOLOGIES FOR THE CROSS POSTING -------------
This post is potentially mre suitable to this discussion board
--------------------------------------------------------------------------------
Hi, I am new to the forums and am experiencing an issue with my WSDL in that it is producing errors when I try to generate APEX classes from it. It was originally throwing errors about name attributes missing so I then followed a previous boards example that I found and replaced the following code:
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/>
with
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]" name="salesforce"/>
However it then started to throw more errors:
Error: Failed to parse wsdl: type not specified for attribute: salesforce
I'm not sure why this is occurring as the type is clearly defined, or is it not?
Below you will see the original WSDL XML tree before I made any adjustments. I will post the newly updated code as a reply in a second.
<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="urn:EntryApi" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:EntryApi"> <types> <xsd:schema targetNamespace="urn:EntryApi"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/> <xsd:complexType name="Associative"> <xsd:all> <xsd:element name="key" type="xsd:string"/> <xsd:element name="value" type="xsd:string"/> </xsd:all> </xsd:complexType> <xsd:complexType name="AssociativeArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="ObjectList"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:AssociativeArray[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema> </types> <message name="create_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="search_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="search_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="create_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="create_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <portType name="EntryApiPortType"> <operation name="create_entry"> <documentation>Add a new entry</documentation> <input message="tns:create_entryRequest"/> <output message="tns:create_entryResponse"/> </operation> <operation name="read_entry"> <documentation>Select a entry</documentation> <input message="tns:read_entryRequest"/> <output message="tns:read_entryResponse"/> </operation> <operation name="update_entry"> <documentation>Update a entry</documentation> <input message="tns:update_entryRequest"/> <output message="tns:update_entryResponse"/> </operation> <operation name="delete_entry"> <documentation>Delete a entry</documentation> <input message="tns:delete_entryRequest"/> <output message="tns:delete_entryResponse"/> </operation> <operation name="search_entry"> <documentation>Search entry`s</documentation> <input message="tns:search_entryRequest"/> <output message="tns:search_entryResponse"/> </operation> <operation name="create_category"> <documentation>Add a new category</documentation> <input message="tns:create_categoryRequest"/> <output message="tns:create_categoryResponse"/> </operation> <operation name="read_category"> <documentation>Select a category</documentation> <input message="tns:read_categoryRequest"/> <output message="tns:read_categoryResponse"/> </operation> <operation name="update_category"> <documentation>Update a category</documentation> <input message="tns:update_categoryRequest"/> <output message="tns:update_categoryResponse"/> </operation> <operation name="delete_category"> <documentation>Delete a category</documentation> <input message="tns:delete_categoryRequest"/> <output message="tns:delete_categoryResponse"/> </operation> <operation name="create_category_group"> <documentation>Add a new category group</documentation> <input message="tns:create_category_groupRequest"/> <output message="tns:create_category_groupResponse"/> </operation> <operation name="read_category_group"> <documentation>Select a category group</documentation> <input message="tns:read_category_groupRequest"/> <output message="tns:read_category_groupResponse"/> </operation> <operation name="update_category_group"> <documentation>Update a category group</documentation> <input message="tns:update_category_groupRequest"/> <output message="tns:update_category_groupResponse"/> </operation> <operation name="delete_category_group"> <documentation>Delete a category group</documentation> <input message="tns:delete_category_groupRequest"/> <output message="tns:delete_category_groupResponse"/> </operation> </portType> <binding name="EntryApiBinding" type="tns:EntryApiPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="create_entry"> <soap:operation soapAction="urn:EntryApi#create_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_entry"> <soap:operation soapAction="urn:EntryApi#read_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_entry"> <soap:operation soapAction="urn:EntryApi#update_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_entry"> <soap:operation soapAction="urn:EntryApi#delete_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="search_entry"> <soap:operation soapAction="urn:EntryApi#search_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category"> <soap:operation soapAction="urn:EntryApi#create_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category"> <soap:operation soapAction="urn:EntryApi#read_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category"> <soap:operation soapAction="urn:EntryApi#update_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category"> <soap:operation soapAction="urn:EntryApi#delete_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category_group"> <soap:operation soapAction="urn:EntryApi#create_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category_group"> <soap:operation soapAction="urn:EntryApi#read_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category_group"> <soap:operation soapAction="urn:EntryApi#update_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category_group"> <soap:operation soapAction="urn:EntryApi#delete_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="EntryApi"> <port name="EntryApiPort" binding="tns:EntryApiBinding"> <soap:address location="http://referralmachine.co/entry_api/soap"/> </port> </service> </definitions>
I have a fast approaching deadline for this project so would greatly appreciate any assitance or explanation that the forum can offer.
Thank you in advance,
Conor
- conorhiggins
- December 19, 2012
- Like
- 0
URGENT WSDL Issues: Error: Failed to parse wsdl: type not specified for attribute:
Hi, I am new to the forums and am experiencing an issue with my WSDL in that it is producing errors when I try to generate APEX classes from it. It was originally throwing errors about name attributes missing so I then followed a previous boards example that I found and replaced the following code:
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/>
with
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]" name="salesforce"/>
However it then started to throw more errors:
Error: Failed to parse wsdl: type not specified for attribute: salesforce
I'm not sure why this is occurring as the type is clearly defined, or is it not?
Below you will see the original WSDL XML tree before I made any adjustments. I will post the newly updated code as a reply in a second.
<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="urn:EntryApi" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:EntryApi"> <types> <xsd:schema targetNamespace="urn:EntryApi"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/> <xsd:complexType name="Associative"> <xsd:all> <xsd:element name="key" type="xsd:string"/> <xsd:element name="value" type="xsd:string"/> </xsd:all> </xsd:complexType> <xsd:complexType name="AssociativeArray"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Associative[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="ObjectList"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:AssociativeArray[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema> </types> <message name="create_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="search_entryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="search_entryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="create_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_categoryRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_categoryResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="create_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="create_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="id" type="xsd:int"/> </message> <message name="read_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="read_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> <part name="data" type="tns:ObjectList"/> </message> <message name="update_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="update_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <message name="delete_category_groupRequest"> <part name="username" type="xsd:string"/> <part name="password" type="xsd:string"/> <part name="data" type="xsd:struct"/> </message> <message name="delete_category_groupResponse"> <part name="code" type="xsd:int"/> <part name="message" type="xsd:string"/> </message> <portType name="EntryApiPortType"> <operation name="create_entry"> <documentation>Add a new entry</documentation> <input message="tns:create_entryRequest"/> <output message="tns:create_entryResponse"/> </operation> <operation name="read_entry"> <documentation>Select a entry</documentation> <input message="tns:read_entryRequest"/> <output message="tns:read_entryResponse"/> </operation> <operation name="update_entry"> <documentation>Update a entry</documentation> <input message="tns:update_entryRequest"/> <output message="tns:update_entryResponse"/> </operation> <operation name="delete_entry"> <documentation>Delete a entry</documentation> <input message="tns:delete_entryRequest"/> <output message="tns:delete_entryResponse"/> </operation> <operation name="search_entry"> <documentation>Search entry`s</documentation> <input message="tns:search_entryRequest"/> <output message="tns:search_entryResponse"/> </operation> <operation name="create_category"> <documentation>Add a new category</documentation> <input message="tns:create_categoryRequest"/> <output message="tns:create_categoryResponse"/> </operation> <operation name="read_category"> <documentation>Select a category</documentation> <input message="tns:read_categoryRequest"/> <output message="tns:read_categoryResponse"/> </operation> <operation name="update_category"> <documentation>Update a category</documentation> <input message="tns:update_categoryRequest"/> <output message="tns:update_categoryResponse"/> </operation> <operation name="delete_category"> <documentation>Delete a category</documentation> <input message="tns:delete_categoryRequest"/> <output message="tns:delete_categoryResponse"/> </operation> <operation name="create_category_group"> <documentation>Add a new category group</documentation> <input message="tns:create_category_groupRequest"/> <output message="tns:create_category_groupResponse"/> </operation> <operation name="read_category_group"> <documentation>Select a category group</documentation> <input message="tns:read_category_groupRequest"/> <output message="tns:read_category_groupResponse"/> </operation> <operation name="update_category_group"> <documentation>Update a category group</documentation> <input message="tns:update_category_groupRequest"/> <output message="tns:update_category_groupResponse"/> </operation> <operation name="delete_category_group"> <documentation>Delete a category group</documentation> <input message="tns:delete_category_groupRequest"/> <output message="tns:delete_category_groupResponse"/> </operation> </portType> <binding name="EntryApiBinding" type="tns:EntryApiPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="create_entry"> <soap:operation soapAction="urn:EntryApi#create_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_entry"> <soap:operation soapAction="urn:EntryApi#read_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_entry"> <soap:operation soapAction="urn:EntryApi#update_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_entry"> <soap:operation soapAction="urn:EntryApi#delete_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="search_entry"> <soap:operation soapAction="urn:EntryApi#search_entry" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category"> <soap:operation soapAction="urn:EntryApi#create_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category"> <soap:operation soapAction="urn:EntryApi#read_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category"> <soap:operation soapAction="urn:EntryApi#update_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category"> <soap:operation soapAction="urn:EntryApi#delete_category" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="create_category_group"> <soap:operation soapAction="urn:EntryApi#create_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="read_category_group"> <soap:operation soapAction="urn:EntryApi#read_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="update_category_group"> <soap:operation soapAction="urn:EntryApi#update_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="delete_category_group"> <soap:operation soapAction="urn:EntryApi#delete_category_group" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:EntryApi" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="EntryApi"> <port name="EntryApiPort" binding="tns:EntryApiBinding"> <soap:address location="http://referralmachine.co/entry_api/soap"/> </port> </service> </definitions>
I have a fast approaching deadline for this project so would greatly appreciate any assitance or explanation that the forum can offer.
Thank you in advance,
Conor
- conorhiggins
- December 19, 2012
- Like
- 1