14 Replies Latest reply: Jul 31, 2013 9:37 PM by Jeffery Barton RSS

error creating a web service client from th WSDL document (soamanager)

Pierre-andre Jacquod
Currently Being Moderated

Hello everyone,




we have generate with the wizard a web-service using the function module BAPI_CONTROL_RECIPE_GET_LIST. Then we have generated with SOAMANAGER the end point. As test, we have used a web-service explorer of Eclispe and we can retrieve without problems the data.



Then we wanted to generate the web-servcie client with Eclipse Galileo (3.5.0) wiith the server GlassFish v2.1 Java EE 5 we first installed the WSIT jars, in order to support WS-RM protocol
We have started the generation based on the document obtainend within the soamanager under the "Open WSDL document for selected binding" link.



We have tried it several times and we always got the following error is:



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

faultCode=INVALID_WSDL: Encountered unexpected element 'Policy'.: <br>     WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL: Encountered unexpected element '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)




Do you know if we took the right document in order to generate the web-service client? Do we need to have some specifics settings in the configurations of th endpoint? (provider security, transport settings, etc...?)



If needed, or if someone would be nice enough to try to generate it on its side, I can post here the whole wsdl document, but due to its length, I first wait your comments.




Thanks a lot in advance for your feed-back

best regards
Pierre-André

-

-





addtions:

maybe this should have been better posted within the forum Service-Oriented Architecture than standards?



I forgot to mention the following threads, which seems to me to be somehow in this direction. But I do not get really how I could use them, or how is is releated.






 

 

Edited by: Pierre-andre Jacquod on Sep 23, 2009 4:02 PM

 

Actions