0 Replies Latest reply: Sep 12, 2012 3:22 PM by 294331 RSS

    binding file for controlling package name

    294331
      I looked at the related links, tried a few examples, not much success...
      I realize this can be solved with more effort, but just trying the easy path, so ... ignore this if looks unreasonable, I know how busy developers feel...

      Is there a good example to conform to these requirements:

      Basically i would like binding file as a child element for wsdlc running in JAXWS mode that will follow package naming rules for JAXRPC... meaning:
      Java files generated from xsd will match package name with xsd name space, while for JWS classes control specific package name ...
      Most of my attempts failed due to xpath complaining for not finding any element for the node ...

      Binding attempt 1: make all classes serializable
      ============================
           <jaxws:bindings
                          xs:schemaLocation="Customer.xsd"
      node="/xs:schema">
      <jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <jxb:serializable/>
      </jxb:globalBindings>
      </jaxws:bindings>

      Binding attempt 2: keep same name for xsd classes
      ============================
      <schemaBindings>
      [ <package> com.myown.pack</package> ]
      [ <nameXmlTransform> http://xmlschema.my.xsd.com/CustomerCall </nameXmlTransform> ]*