on 03-09-2010 3:48 AM
We are trying to create a proxy from the following wsdl file and getting an error message: illegal syntax: API:Parameter BINDING has initial value
The webservice that we are trying to consume is from TIBCO .
Can someone please help me to find out what's wrong with the wsdl.
<?xml version = "1.0" encoding = "UTF-8"?>
<!--Created by TIBCO WSDL-->
<wsdl:definitions name = "Untitled" targetNamespace = "http://xmlns.example.com/1268018884234/OperationImpl" xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns = "http://xmlns.example.com/1268018884234/OperationImpl" xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/" xmlns:xs = "http://www.w3.org/2001/XMLSchema">
<wsdl:types/>
<wsdl:service name = "TIBCO__ABAP">
<wsdl:port binding = "tns:SOAPEventSourceBinding" name = "SOAPEventSource">
<soap:address location = "http://192.168.9.58:10001/TIBCO_ABAP"/>
</wsdl:port>
</wsdl:service>
<wsdl:portType name = "PortType">
<wsdl:operation name = "Operation">
<wsdl:input message = "tns:Input"/>
<wsdl:output message = "tns:Output"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name = "SOAPEventSourceBinding" type = "tns:PortType">
<soap:binding style = "document" transport = "http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name = "Operation">
<soap:operation soapAction = "http://192.168.9.58:10001/TIBCO_ABAP" style = "document"/>
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:message name = "Input">
<wsdl:part name = "Param1" type = "xs:int"/>
<wsdl:part name = "Param2" type = "xs:int"/>
</wsdl:message>
<wsdl:message name = "Output">
<wsdl:part name = "Result" type = "xs:int"/>
</wsdl:message>
</wsdl:definitions>
Léon Hoeneveld's response works for me. You will need to download a tool that allows you to edit the WSDL and reorder the values.
I've used a freeware tool like notepad++ collapsed all the levels and opened up the <wsdl:definitions xmlns:wsdl... segment and reordered the subgroups beneath it accordingly.
1. types
2. message
3. portType
4. binding
5. service
Thanks again Léon!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've had the same problem and found the following error:
The order of content elements is incorrect for the element "/definitions("Untitled")": "types, service, portType, binding, message, message"Check the selected category
The order should be: types;message;portType, binding; service then you should have no problem.
Regards, Léon Hoeneveld
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.