Richard,
Please try the following command "wsdl2java.bat -d xmlbeans -u -uri
bw-2.wsdl" to specify xmlbeans. Latest nightly works fine.

Anne,
XMLBeans db works fine. ADB fails.

thanks,
dims

On 7/3/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
Creiky! Why would the folks behind WSN have designed a schema for using in a
SOAP environment that includes the <xs:unique> constructor?

I thought that XMLBeans could handle a <unique>, but maybe not...

Anne


On 7/3/07, Lucente, Richard D <[EMAIL PROTECTED]> wrote:
> Axis2-1.2 wsdl2java is failing to generate compilable code for the
> NotificationConsumer port defined as part of the WS-BaseNotification 1.3
> standard.  Wsdl2java appears to have trouble with the definition of
> TopicType within the WS-Topics 1.3 schema.  I tried this with adb,
> xmlbeans, jibx, jaxme, and jaxbri and got similar results (sometimes
> wsdl2java choked on WS-Topics).  Any help appreciated.
>
> Specifically, I downloaded the wsdl file from
> http://docs.oasis-open.org/wsn/bw-2.wsdl and added the
following binding
> and service elements:
>
>         <wsdl:binding name="NotificationConsumerBinding"
>                 type="wsntw:NotificationConsumer">
>                 <soap:binding style="document"
>                         transport="
http://schemas.xmlsoap.org/soap/http";
> />
>                 <wsdl:operation name="Notify">
>                         <soap:operation
>
> soapAction=" http://docs.oasis-open.org/wsn/bw-2/Notify";
/>
>                         <wsdl:input>
>                                 <soap:body use="literal"
/>
>                         </wsdl:input>
>                 </wsdl:operation>
>         </wsdl:binding>
>         <wsdl:service name="NotificationConsumer">
>                 <wsdl:port name="NotificationConsumerPort"
>
binding="wsntw:NotificationConsumerBinding">
>                         <soap:address
>
> location="
http://localhost:8080/wsn-consumer/services/NotificationConsum
> er" />
>                 </wsdl:port>
>         </wsdl:service>
>
> I then ran the command:
>
>     wsdl2java -uri bw-2.wsdl -pn NotificationConsumer
>
> The code generator produced the following messages:
>
> Using AXIS2_HOME:   D:\pathfinder\axis2-1.2
> Using JAVA_HOME:    D:\Progra~1\Java\j2sdk1.4.2_12
> Retrieving document at '
http://docs.oasis-open.org/wsrf/rw-2.wsdl',
> relative to 'file:/D:/pathfinder/temp/'.
> Retrieving schema at '
http://docs.oasis-open.org/wsrf/r-2.xsd', relative
> to 'http://docs.oasis-open.org/wsrf/rw-2.wsdl'.
> Retrieving schema at '
http://docs.oasis-open.org/wsrf/bf-2.xsd',
> relative to 'http://docs.oasis-open.org/wsrf/r-2.xsd'.
> Retrieving schema at ' http://www.w3.org/2001/xml.xsd', relative to
> 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
> Retrieving schema at '
http://www.w3.org/2005/08/addressing/ws-addr.xsd',
> relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
> Retrieving schema at '
http://docs.oasis-open.org/wsn/b-2.xsd', relative
> to 'file:/D:/pathfinder/temp/'.
> Retrieving schema at
'http://docs.oasis-open.org/wsrf/bf-2.xsd ',
> relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
> Retrieving schema at
'http://docs.oasis-open.org/wsn/t-1.xsd ', relative
> to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
> Retrieving schema at
'http://www.w3.org/2005/08/addressing/ws-addr.xsd ',
> relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
> Retrieving document at
'http://docs.oasis-open.org/wsrf/rw-2.wsdl ',
> relative to 'file:/D:/pathfinder/temp/'.
> Retrieving schema at
'http://docs.oasis-open.org/wsrf/r-2.xsd', relative
> to ' http://docs.oasis-open.org/wsrf/rw-2.wsdl'.
> Retrieving schema at
'http://docs.oasis-open.org/wsrf/bf-2.xsd',
> relative to ' http://docs.oasis-open.org/wsrf/r-2.xsd'.
> Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
> ' http://docs.oasis-open.org/wsrf/bf-2.xsd'.
> Retrieving schema at
'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
> relative to ' http://docs.oasis-open.org/wsrf/bf-2.xsd'.
> Retrieving schema at
'http://docs.oasis-open.org/wsn/b-2.xsd', relative
> to 'file:/D:/pathfinder/temp/'.
> Retrieving schema at
'http://docs.oasis-open.org/wsrf/bf-2.xsd',
> relative to 'http://docs.oasis-open.org/wsn/b-2.xsd '.
> Retrieving schema at
'http://docs.oasis-open.org/wsn/t-1.xsd', relative
> to 'http://docs.oasis-open.org/wsn/b-2.xsd '.
> Retrieving schema at
'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
> relative to ' http://docs.oasis-open.org/wsn/b-2.xsd'.
>
> I then attempted to build with the generated build.xml file and
> apache-ant-1.7.0 by typing:
>
>     ant
>
> I received the following output:
>
> Buildfile: build.xml
>
> init:
>     [mkdir] Created dir: D:\pathfinder\temp\build
>     [mkdir] Created dir: D:\pathfinder\temp\build\classes
>     [mkdir] Created dir: D:\pathfinder\temp\build\lib
>     [mkdir] Created dir: D:\pathfinder\temp\test
>
> pre.compile.test:
>      [echo] Stax Availability= true
>      [echo] Axis2 Availability= true
>
> compile.src:
>     [javac] Compiling 2 source files to
D:\pathfinder\temp\build\classes
>     [javac]
>
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
> Stub.java:1832:
>
fromString(javax.xml.stream.XMLStreamReader,java.lang.Stri
> ng) in
>
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
> .Factory cannot be applied to (java.lang.String,java.lang.String )
>     [javac]
>
MessageTypes_type4.Factory.fromString(tempAttribmessageTypes,namespaceur
> i));
>     [javac]
> ^
>     [javac]
>
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
> Stub.java :1837:
>
fromString(javax.xml.stream.XMLStreamReader,java.lang.Stri
> ng) in
>
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
> .Factory cannot be applied to (java.lang.String,java.lang.String )
>     [javac]
>
MessageTypes_type4.Factory.fromString(tempAttribmessageTypes,""));
>     [javac]
> ^
>     [javac]
>
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
> Stub.java:30410:
> fromString(javax.xml.stream.XMLStreamReader,java.lang.Str
> ing) in
>
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
> .Factory cannot be applied to (java.lang.String,java.lang.String)
>     [javac]
>
MessageTypes_type4.Factory.fromString(tempAttribmessageTypes,namespaceur
> i));
>     [javac]
> ^
>     [javac]
>
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
> Stub.java:30415:
> fromString(javax.xml.stream.XMLStreamReader,java.lang.Str
> ing) in
>
org.oasis_open.docs.wsn.bw_2.NotificationConsumerStub.MessageTypes_type4
> .Factory cannot be applied to (java.lang.String,java.lang.String)
>     [javac]
>
MessageTypes_type4.Factory.fromString(tempAttribmessageTypes,""));
>     [javac]
> ^
>     [javac] Note:
>
D:\pathfinder\temp\src\org\oasis_open\docs\wsn\bw_2\NotificationConsumer
> Stub.java uses or overrides a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] 4 errors
>
> BUILD FAILED
> D:\pathfinder\temp\build.xml:43: Compile failed; see the
compiler error
> output for details.
>
> Total time: 3 seconds
>
> Thanks!
>
> Rich Lucente
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




--
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to