Using JAXWS in NetBeans  i get an error stating that something is duplicated.
Using AXIS2 ( wsdl2java.sh) it finishes generation but building i get an
error stating some functions does not receive the params needed.

There is nothing wrong with the service, so im doing something wrong during
code-generation, ¿what could it be?

thanks


JAXWS output:

[WARNING] src-resolve.4.2: Error resolving component
'wsrf-bf:BaseFaultType'. It was detected that 'wsrf-bf:BaseFaultType' is in
namespace 'http://docs.oasis-open.org/wsrf/bf-2', but components from this
namespace are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema6'.
If this is the incorrect namespace, perhaps the prefix of
'wsrf-bf:BaseFaultType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema6'.
  line 908 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema6

[WARNING] src-resolve.4.2: Error resolving component
'wsa:EndpointReferenceType'. It was detected that
'wsa:EndpointReferenceType' is in namespace
'http://www.w3.org/2005/08/addressing', but components from this namespace
are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
If this is the incorrect namespace, perhaps the prefix of
'wsa:EndpointReferenceType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
  line 153 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2

[WARNING] src-resolve.4.2: Error resolving component 'xml:lang'. It was
detected that 'xml:lang' is in namespace
'http://www.w3.org/XML/1998/namespace', but components from this namespace
are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
If this is the incorrect namespace, perhaps the prefix of 'xml:lang' needs
to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
  line 168 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2

[WARNING] s4s-elt-invalid-content.1: The content of
'#AnonType_DescriptionBaseFaultType' is invalid.  Element 'attribute' is
invalid, misplaced, or occurs too often.
  line 168 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2

[WARNING] src-resolve.4.2: Error resolving component
'wsa:EndpointReferenceType'. It was detected that
'wsa:EndpointReferenceType' is in namespace
'http://www.w3.org/2005/08/addressing', but components from this namespace
are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
If this is the incorrect namespace, perhaps the prefix of
'wsa:EndpointReferenceType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
  line 357 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4

[WARNING] src-resolve.4.2: Error resolving component
'wsrf-bf:BaseFaultType'. It was detected that 'wsrf-bf:BaseFaultType' is in
namespace 'http://docs.oasis-open.org/wsrf/bf-2', but components from this
namespace are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
If this is the incorrect namespace, perhaps the prefix of
'wsrf-bf:BaseFaultType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
  line 471 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4

[WARNING] src-resolve.4.2: Error resolving component 'wstop:TopicSet'. It
was detected that 'wstop:TopicSet' is in namespace
'http://docs.oasis-open.org/wsn/t-1', but components from this namespace are
not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
If this is the incorrect namespace, perhaps the prefix of 'wstop:TopicSet'
needs to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
  line 351 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4

[WARNING] src-resolve.4.2: Error resolving component
'wsa:EndpointReferenceType'. It was detected that
'wsa:EndpointReferenceType' is in namespace
'http://www.w3.org/2005/08/addressing', but components from this namespace
are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
If this is the incorrect namespace, perhaps the prefix of
'wsa:EndpointReferenceType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
  line 200 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3

[WARNING] src-resolve.4.2: Error resolving component
'wsn-b:TopicExpressionType'. It was detected that
'wsn-b:TopicExpressionType' is in namespace
'http://docs.oasis-open.org/wsn/b-2', but components from this namespace are
not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
If this is the incorrect namespace, perhaps the prefix of
'wsn-b:TopicExpressionType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
  line 202 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3

[WARNING] src-resolve.4.2: Error resolving component
'wsrf-bf:BaseFaultType'. It was detected that 'wsrf-bf:BaseFaultType' is in
namespace 'http://docs.oasis-open.org/wsrf/bf-2', but components from this
namespace are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
If this is the incorrect namespace, perhaps the prefix of
'wsrf-bf:BaseFaultType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
  line 261 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3

[WARNING] src-resolve.4.2: Error resolving component 'wstop:TopicSet'. It
was detected that 'wstop:TopicSet' is in namespace
'http://docs.oasis-open.org/wsn/t-1', but components from this namespace are
not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
If this is the incorrect namespace, perhaps the prefix of 'wstop:TopicSet'
needs to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
  line 212 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3

[ERROR] A class/interface with the same name
"org.servicemix.wsnotification.QueryExpressionType" is already in use. Use a
class customization to resolve this conflict.
  line 770 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Relevant to above error) another "QueryExpressionType" is generated
from here.
  line 312 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 770 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Related to above error) This is the other declaration.   
  line 312 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 377 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Related to above error) This is the other declaration.   
  line 202 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 204 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Related to above error) This is the other declaration.   
  line 362 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 201 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Related to above error) This is the other declaration.   
  line 357 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl




ANT for AXIS2 output:
init:

pre.compile.test:
     [echo] Stax Availability= true
     [echo] Axis2 Availability= true

compile.src:
    [javac] Compiling 18 source files to
/home/canal/Desktop/WbrokerADB/build/classes
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/Client.java:23:
cannot find symbol
    [javac] symbol  : class NotifyRequest
    [javac] location: class org.servicemix.wsnotification.Client
    [javac]             NotifyRequest req = new NotifyRequest();
    [javac]             ^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/Client.java:23:
cannot find symbol
    [javac] symbol  : class NotifyRequest
    [javac] location: class org.servicemix.wsnotification.Client
    [javac]             NotifyRequest req = new NotifyRequest();
    [javac]                                     ^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:2937:
fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
cannot be applied to (java.lang.String,java.lang.String)
    [javac]                                                        
MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,namespaceuri));
    [javac]                                                                     
             
^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:2942:
fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
cannot be applied to (java.lang.String,java.lang.String)
    [javac]                                                        
MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,""));
    [javac]                                                                     
             
^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:31674:
fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
cannot be applied to (java.lang.String,java.lang.String)
    [javac]                                                        
MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,namespaceuri));
    [javac]                                                                     
             
^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:31679:
fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
cannot be applied to (java.lang.String,java.lang.String)
    [javac]                                                        
MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,""));
    [javac]                                                                     
             
^
    [javac] Note:
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note:
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java
uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 6 errors

BUILD FAILED
/home/canal/Desktop/WbrokerADB/build.xml:43: Compile failed; see the
compiler error output for details.


-- 
View this message in context: 
http://www.nabble.com/ServiceMix-WSN-Broker--access-from-MUSE-tf4639744s12049.html#a13292299
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to