Skip to Content
0
Former Member
May 28, 2010 at 06:21 AM

Error creating Webservice Client in JAVA for ABAP Webservice(WSDL file)

295 Views

Hi all,

I have created a webservice from a funtion module in the backend.

Using soamanger I downloaded the wsdl file using "Open WSDL document for selected binding" link.

I tested this web service in backend and it is working fine.

Now I am trying to generate JAVA cilent for this webservice using Eclipse and Axis,but getting the following error

IWAB0399E Error in generating Java from WSDL:  WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): 

faultCode=INVALID_WSDL: Encountered unexpected element '{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy'.: 
    WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL: Encountered unexpected element 

'{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy'.:
    at com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
    at java.lang.Thread.run(Unknown Source)

Please let me know,wat needs to be done for this error to get resolved

Thanks

Santhosh