Hi,

I believe the problem is that your WSDL indicates SOAP12 but the 
annotation indicates SOAP11.

Your WSDL indicates a SOAP12 binding:
        ....
        xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
        ....
        <wsdl:binding name="BankSearchSOAP12Binding" 
type="axis2:BankSearchPortType">
          <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; 
style="document"/>

So your annotation also needs to indicate SOAP12.  The value for the 
annotaiton from the exception is: 
        annotation = http://schemas.xmlsoap.org/wsdl/soap/http

Which indicates a SOAP11 Binding.  Constants for the annotation values can 
be found in javax.xml.ws.soap.SOAPBinding
    public static final String SOAP11HTTP_BINDING = 
"http://schemas.xmlsoap.org/wsdl/soap/http";;
    public static final String SOAP12HTTP_BINDING = 
"http://www.w3.org/2003/05/soap/bindings/HTTP/";;
    public static final String SOAP11HTTP_MTOM_BINDING = 
"http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true";;
    public static final String SOAP12HTTP_MTOM_BINDING = 
"http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true";;


The exception message is confusing.  The value for the WSDL binding is not 
actually the WSDL value; it is a mapping of the WSDL value to the 
associated SOAP Binding value.  The SOAP12 WSDL value of
        http://schemas.xmlsoap.org/wsdl/soap12/
Was mapped to the SOAP12 Binding value of
        http://w        ww.w3.org/2003/05/soap/bindings/HTTP/

I'll look into making that exception more understandable.

Hope that helps.

Thanks,
Jeff

IBM Software Group - WebSphere Web Services Development
Phone: 512-838-4587 or Tie Line 678-4587
Internet e-mail and Sametime ID: [EMAIL PROTECTED]



<[EMAIL PROTECTED]> 
03/31/2008 10:13 AM
Please respond to
[email protected]


To
<[email protected]>
cc

Subject
Endpoint failed validation






Hi 
I am getting the following error and can not spot the mistake in my wsdl. 
Can anyone please help me ? 
attached is my wsd. 
thanks 
Tezcan <<bankSearchService.wsdl>> 
javax.xml.ws.WebServiceException: The ServiceDescription failed to 
validate due to the following errors: 
 :: Endpoint failed validation ::  :: Invalid binding; wsdl = 
http://www.w3.org/2003/05/soap/bindings/HTTP/, annotation = 
http://schemas.xmlsoap.org/wsdl/soap/http
        at 
org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:178)
 

        at 
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79)
 

        at 
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:125)
 

        at 
org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:216)
        at 
org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescriptionFromDBCMap(DescriptionFactory.java:135)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Attachment: bankSearchService.wsdl
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to