Java Mailing List Archive

Home » »

Problem with service that is not found during WSDL parsing...

Mauro Brasil


Author LoginPost Reply
Hello there!

I'm experiencing some problems while parsing an especific WSDL to generate "C" code for a Visual C++ application.
I have already parsed another 4 WSDL regarding most of web services I need on my application, and everything works pretty fine with them.

Diferently of the others, this WSDL uses WS-Eventing and is generated for use on JBossWS and count with some import files.
In fact, I process the main WSDL (the one with our application namespace) that imports a separate WSDL (that points to namespace ""), and is on the last one that both "subscriber" and "manage" services get declared.

During the parsing, if I don't point the service name (through parameter "-sn") it just inform that no service was found on WSDL. (And I just found a ticket about this condition - service not found inside import files - on a ticket of 3 years ago).

But, if I use the "-sn" parameter informing the name of the service, it gives a more detailed message. Bellow is the error:

Retrieving document at 'http://<SERVER_IP:PORT>/<SERVER_CONTEXT>/subscribe?wsdl&resource=ws-eventing.wsdl', relative to 'fil
Retrieving schema at 'http://<SERVER_IP:PORT>/<SERVER_CONTEXT>/subscribe?wsdl&resource=ws-eventing.xsd', relative to 'file:<PATH_TO_WSDL_FILE>'.
Retrieving schema at 'http://<SERVER_IP:PORT>/<SERVER_CONTEXT>/subscribe?wsdl&resource=ws-addr.xsd', relative to 'http://192
Retrieving schema at '', relative to 'http://<SERVER_IP:PORT>/<SERVER_CONTEXT>/subscribe?wsdl&
Feb 11, 2010 12:11:42 PM org.apache.axis2.description.WSDL11ToAxisServiceBuilder populateService
SEVERE: org.apache.axis2.AxisFault: Service <OUR_APPLICATION_TARGET_NAME_SPACE>EventSourceService was not found in the WSDL
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
        at org.apache.axis2.wsdl.WSDL2Code.main(
        at org.apache.axis2.wsdl.WSDL2C.main(
Caused by: org.apache.axis2.AxisFault: Service <OUR_APPLICATION_TARGET_NAME_SPACE>EventSourceService was not f
ound in the WSDL; nested exception is:
        org.apache.axis2.AxisFault: Service <OUR_APPLICATION_TARGET_NAME_SPACE>EventSourceService was not foun
d in the WSDL
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
        ... 2 more
Caused by: org.apache.axis2.AxisFault: Service <OUR_APPLICATION_TARGET_NAME_SPACE>EventSourceService was not f
ound in the WSDL
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
        ... 3 more

"EventSourceService" is declared on file "ws-eventing.wsdl" imported by the root WSDL file that is being processed, and "ws-eventing.wsdl" file has a different "targetNamespace" attribute than the root WSDL file. What I think is the cause of all this.

I just can't find any reference of such problem on Internet besides the import issue solved at 2006.

Can someone give me a hand on this?

Thank's a lot and best regards,

©2008 - Jax Systems, LLC, U.S.A.