Asaf,
 
I'm not sure why, but you have the same portType in both wsdls...
 
The portType AsynchronousBusinessOperationsPortType is in there, however it is not bound to a binding and a port.....
 
I assume you are having issues because you have AsynchronousBusinessOperationsPortType defined in both PO.wsdl and AsynchronousBusinessOperationsInvocation.wsdl....And it is unreferenced in both files.....
 
We build structures and look for relationships in the wsdl....This has obviously confused it.  It may be a bug...
 
Can you remove the AsynchronousBusinessOperationsPortType from the PO.wsdl file and try to generate again..and sedn the results??
 
thx


From: Asaf Lahav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 7:33 AM
Cc: [email protected]; [email protected]
Subject: bug on WSDL2JAVA when importing custom schema?
Importance: High

I suspect there is a bug in the muse WSDL2JAVA utility.

I created a valid WSDL and imported it into a MUSE based web service WSDL.

 

PO.wsdl – the target service

AsynchronousBusinessOperationsInvocation.wsdl – is the WSDL I imported into PO.wsdl

 

The problem is that when I run the WSDL2JAVA utility provided by the MUSE project, I get the following output:

Buildfile: build.xml

 

init:

     [echo] Using webapp dir: C:\Tomcat/webapps/muse

    [mkdir] Created dir: C:\testServices\testAsync2\generated\.xmlbeans\lib

 

generate:

    [mkdir] Created dir: C:\Tomcat\webapps\muse\_tmp_

     [copy] Copying 1 file to C:\Tomcat\webapps\muse\_tmp_

[wsdl2Java] --> 06-04-06 17:00:02 DEBUG [main] ProjectResourceBundle: getBundle(org.apache.ws,org.apache.ws.util.i18n,resource,null,...)

[wsdl2Java] --> 06-04-06 17:00:02 DEBUG [main] ProjectResourceBundle: loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.ws.util.resource, locale iw_IL

[wsdl2Java] --> 06-04-06 17:00:02 DEBUG [main] ProjectResourceBundle: loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.ws.resource, locale iw_IL

[wsdl2Java] --> 06-04-06 17:00:02 DEBUG [main] ProjectResourceBundle: Created org.apache.ws.util.i18n.resource, linked to parent null

[wsdl2Java] --> 06-04-06 17:00:02 DEBUG [main] ProjectResourceBundle: getBundle(org.apache.ws.resource,org.apache.ws.resource.i18n,resource,null,...)

[wsdl2Java] --> 06-04-06 17:00:03 DEBUG [main] ProjectResourceBundle: loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.ws.resource.resource, locale iw_IL

[wsdl2Java] --> 06-04-06 17:00:03 DEBUG [main] ProjectResourceBundle: Root package not found, cross link to org.apache.ws.util.i18n.resource

[wsdl2Java] --> 06-04-06 17:00:03 DEBUG [main] ProjectResourceBundle: Created org.apache.ws.resource.i18n.resource, linked to parent org.apache.ws.util.i18n.resource

[wsdl2Java] --> 06-04-06 17:00:03 DEBUG [main] ProjectResourceBundle: org.apache.ws.resource.i18n.resource::handleGetObject(OPT_OUTPUT_DIR_FOR_GEN_SRC)

[wsdl2Java] --> 06-04-06 17:00:03 DEBUG [main] ProjectResourceBundle: org.apache.ws.resource.i18n.resource::handleGetObject(OPT_CLASSPATH_SENT_TO_XMLBEANS)

[wsdl2Java] --> 06-04-06 17:00:03 DEBUG [main] ProjectResourceBundle: org.apache.ws.resource.i18n.resource::handleGetObject(OPT_ENABLE_VERBOSE)

[wsdl2Java] Processing WSDL file "C:\Tomcat\webapps\muse\_tmp_\PO.wsdl"...

[wsdl2Java] Retrieving document at 'C:\Tomcat\webapps\muse\_tmp_\PO.wsdl'.

[wsdl2Java] Retrieving document at '../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/_tmp_/PO.wsdl'.

[wsdl2Java] Retrieving document at '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/_tmp_/PO.wsdl'.

[wsdl2Java] Retrieving document at '../spec/wsdm/MUWS-Part2-1_0.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/_tmp_/PO.wsdl'.

[wsdl2Java] Retrieving document at '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/_tmp_/PO.wsdl'.

[wsdl2Java] Retrieving document at '../spec/wsn/WS-BaseNotification-1_2-Draft_01.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/_tmp_/PO.wsdl'.

[wsdl2Java] Retrieving document at '../wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/spec/wsn/WS-BaseNotification-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving document at '../wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/spec/wsn/WS-BaseNotification-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving document at '../spec/boasync/AsynchronousBusinessOperationsInvocation.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/_tmp_/PO.wsdl'.

[wsdl2Java] Retrieving document at '../wsx/WS-MetadataExchange-2004_09.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/spec/boasync/AsynchronousBusinessOperationsInvocation.wsdl'.

[wsdl2Java] Retrieving document at '../wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/spec/boasync/AsynchronousBusinessOperationsInvocation.wsdl'.

[wsdl2Java] Retrieving document at '../wsdm/MUWS-Part2-1_0.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/spec/boasync/AsynchronousBusinessOperationsInvocation.wsdl'.

[wsdl2Java] Retrieving document at '../wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to 'file:/C:/Tomcat/webapps/muse/spec/boasync/AsynchronousBusinessOperationsInvocation.wsdl'.

[wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat\webapps\muse\_tmp_\PO.wsdl"...

[wsdl2Java] Found existing generated xmlbean jar in the classpath at location: C:\Tomcat\webapps\muse\WEB-INF\lib\PO-xbeans.jar ...This will be removed from the classpath sent to Scomp in order to regenerate all imports.

[wsdl2Java] Loading wsdl file C:\Tomcat\webapps\muse\_tmp_\PO.wsdl

[wsdl2Java] Processing 1 schema(s) in C:\Tomcat\webapps\muse\_tmp_\PO.wsdl

[wsdl2Java] Processing WSRF WSDL port "PO"...

[wsdl2Java]

[wsdl2Java]

[wsdl2Java] Unable to find a port type info for the implemented capability: {http://www.primagrid.com/specs/services/businessoperations/asynchronousinvocations}AsynchronousBusinessOperationsPortType!!!!!!

[wsdl2Java]

 

   [delete] Deleting directory C:\Tomcat\webapps\muse\_tmp_

 

BUILD SUCCESSFUL

Total time: 26 seconds

 

Apparently the build process ends successfully even though port type information could not be found by the utility.

I really need help on this.

Is that a bug or the by design behavior of the WSDL2Java utility?

 

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254

 

Reply via email to