libre-wsdl4j icon indicating copy to clipboard operation
libre-wsdl4j copied to clipboard

Exception while reading WSDL if <wsdl:portType><wsp:Policy> is found

Open tcarlson2000 opened this issue 5 years ago • 1 comments

Error thrown when wsdl:portTypewsp:Policy is found while reading WSDL

Caused by: 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) ... 53 more WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL: Encountered unexpected element '{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy'.:

... <wsdl:portType name="ImportDeclarationNotification_In"> wsdl:documentation <sapdoc:sapdoc xmlns:sapdoc="urn:sap:esi:documentation"> <sapdoc:docitem applicationComponent="SLL-LEG"/> </sapdoc:sapdoc> </wsdl:documentation> wsp:Policy <wsp:PolicyReference URI="#IF__ImportDeclarationNotification_In"/> </wsp:Policy> <wsdl:operation name="ImportDeclarationNotification_In"> wsp:Policy <wsp:PolicyReference URI="#OP__ImportDeclarationNotification_In"/> </wsp:Policy> <wsdl:input message="tns:ImportDeclarationNotification"/> </wsdl:operation> </wsdl:portType> ...

tcarlson2000 avatar Aug 13 '20 15:08 tcarlson2000

Thanks for reporting. Pull requests welcome!

andreasrosdal avatar Apr 25 '21 18:04 andreasrosdal