Hi,
I want to add the wsn-comsumer apability to the WS-ServiceGroupEntry.wsdl.
Just adding the needed elements and edit the muse.xml works,  but I want to
get the wsdl file "accepted" by the wsdl2java tool to stay compatible.

When I apply wsdl2java to the wsdl I get the following error:

#####

java.lang.NullPointerException
        at
org.apache.muse.util.ReflectUtils.getArrayClassFromClass(ReflectUtils.java:131)
        at
org.apache.muse.tools.inspector.ResourceInspector.getJavaType(ResourceInspector.java:509)
        at
org.apache.muse.tools.inspector.ResourceInspector.createJavaMethod(ResourceInspector.java:374)
        at
org.apache.muse.tools.inspector.ResourceInspector.getOperations(ResourceInspector.java:562)
        at
org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspector.java:880)
        at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(SimpleAnalyzer.java:403)
        at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(SimpleAnalyzer.java:342)
        at
org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:173)
        at
org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:265)

SEVERE: [ID = 'CodeGenFailed'] Code generation failed, see the exception
information below.

An exception was caught: null

######

I added the following imports and elements to the wsdl-file

##definitions
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2";

##import
<xsd:schema
     elementFormDefault="qualified"
      targetNamespace="http://docs.oasis-open.org/wsn/b-2";>
      <xsd:include schemaLocation="WS-BaseNotification-1_3.xsd" />
</xsd:schema>
##messages
<wsdl:message name="Notify">
      <wsdl:part name="Notify" element="wsnt:Notify"/>
</wsdl:message>

##portType
<wsdl:operation name="Notify">
      <wsdl:input
wsa:Action="http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest";

        message="tns:Notify"/>
</wsdl:operation>


Any ideas what's wrong?
Thanks,
Christian



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

Reply via email to