aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error in my WSDL file" Watch "Error in my WSDL file" New topic
Author

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
xmlns:impl="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:intf="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com">
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:impl ="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:intf="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="auditHistoryRequest">
<complexType>
<xsd:sequence>
<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" />
</xsd:sequence>
</complexType>
</xsd:element>
</schema>
</wsdl:types>

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

<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"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl peration name="retrieveAuditHistory">
<wsdl:input name="auditHistoryInput">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl utput name="auditHistoryOutput">
<wsdlsoap:body use="literal" />
</wsdl utput>
</wsdl peration>
</wsdl:binding>

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

</wsdl efinitions>
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
While your schema in the WSDL types section defines {http://audithistory.service.webservice.eah.cih.bmp.emdeon.com}auditHistoryRequest, it fails to define {http://audithistory.service.webservice.eah.cih.bmp.emdeon.com}auditHistoryResponse which is used in the message {http://audithistory.service.webservice.eah.cih.bmp.emdeon.com}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.
 
 
subject: Error in my WSDL file