This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Error in my WSDL file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error in my WSDL file" Watch "Error in my WSDL file" New topic

Error in my WSDL file

Nageswar Kakolla
Ranch Hand

Joined: Jan 16, 2006
Posts: 71
Hi there,

I have an error in my following WSDL file

at output Message and Binding Port Type (I have put them in Bold and Italics)

any pointers will be great help,

<?xml version="1.0" encoding="UTF-8"?>
<wsdl efinitions
<schema xmlns=""
xmlns:impl =""
<xsd:element name="auditHistoryRequest">
<xsd:element name="applicationName"
nillable="false" type="xsd:int" />
<xsd:element name="category" type="xsd:string" />
<xsd:element name="fromDate" type="xsd ate" />
<xsd:element name="toDate" type="xsd ate" />
<xsd:element name="limit" type="xsd:int" />

<wsdl:message name="auditHistoryRequest">
<wsdl art name="auditHistoryInput" element="impl:auditHistoryRequest"/>

<wsdl:message name="auditHistoryResponse">
<wsdl art name="auditHistoryOutput" element="impl:auditHistoryResponse"/></wsdl:message>

<wsdl ortType name="AuditHistoryPortType"><wsdl peration name="retrieveAuditHistory">
<wsdl:input message="impl:auditHistoryRequest"/>
<wsdl utput message="impl:auditHistoryResponse" />
</wsdl peration>
</wsdl ortType>

<wsdl:binding name="AuditHistorySoapBinding" type="AuditHistoryPortType">
<wsdlsoap:binding style="document"
<wsdl peration name="retrieveAuditHistory">
<wsdl:input name="auditHistoryInput">
<wsdlsoap:body use="literal" />
<wsdl utput name="auditHistoryOutput">
<wsdlsoap:body use="literal" />
</wsdl utput>
</wsdl peration>

<wsdl:service name="AuditHistoryService">
<wsdl ort binding="impl:AuditHistorySoapBinding"
<wsdlsoap:address location="https://localhost:9080/webservices/AuditHistory" />
</wsdl ort>

</wsdl efinitions>
Peer Reynders

Joined: Aug 19, 2005
Posts: 2922
While your schema in the WSDL types section defines {}auditHistoryRequest, it fails to define {}auditHistoryResponse which is used in the message {}auditHistoryResponse.

Also to be on the safe side I would choose a different universal name on the message itself compared to the one used in the schema.

Have a look at this topic if you are looking for ideas.
I agree. Here's the link:
subject: Error in my WSDL file
Similar Threads
WSDL issues
Error: no SOAPAction header!
creating web services from wsdl on axis platforms using xmbeans
Axis and document-literal style
Methods other then getters and setters in object (java bean)in webservices