1 Reply Latest reply on Jan 7, 2010 10:15 AM by Nick Belaevski

    wsconsume help required

    Asif Ghafoor Newbie



      Im farily new to jboss and im trying to use the wsconsume utility to generate code using the attached wsdl and xsd file.


      Running the command


      c:\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\bin\wsconsume.bat -k -e -b pstc_spmlv2_dsml.xsd SpmlWebLogic.wsdl


      Works but the generated code is a little lacking. For the webservice defined, the incoming parameter is generated as an "object" which means im going to need a manual xml parse to get the object details. This is obviously because the in the wsdl the incoming object is defined as "anytype". Is there any way to associate the type used by the method defined in the wsdl with my xsd?


      I want the incoming object "sOAPElement" to be the type of xsd so i dont need ot do any nasty xml parsing/serialisation.


      I have a look into bindings but that doesnt seem to work here. Maybe im missing something?


      Any help would greatly appreciated.


      Thanks in advance