This discussion is archived
3 Replies Latest reply: Aug 6, 2013 4:23 PM by frank.hampshire RSS

Namespace change

smuralee Newbie
Currently Being Moderated
Hi All,

The WSDL generated by OPA has the default namespace of http://oracle.com/determinations/server/10.4/rulebase/assess/types.
I needed to change the namespace to a custom value like http://<service_name>/<version_number>.

The velocity template uses ${service.getTargetNamespace()} as the method to get the namespace value.
The source code uses the interface NativeService.java which has the method getTargetNamespace() defined in it.

How can we override it, to use a custom namespace.

Thanks.
  • 1. Re: Namespace change
    frank.hampshire Expert
    Currently Being Moderated
    The namespace for an OPA Assess operation has specific meaning. There isn't an easy way to change it and you probably shouldn't.

    Why do you need to override the namespace of the assess request and response?
  • 2. Re: Namespace change
    smuralee Newbie
    Currently Being Moderated

    In order to have all the modules in the build to have the same namespace and as part of a convention, this requirement was provided.

  • 3. Re: Namespace change
    frank.hampshire Expert
    Currently Being Moderated

    Suraj,

     

    You could try changing the namespace in the OnReturnResultEventHandler but I would not recommend changing the namespace at all. As mentioned previously namespaces have very specific meanings and you probably should not do it.

     

    You could also just change the assess velocity template and replace ${service.getTargetNamespace()} with your specific namespace. Same warnings as above.


    Cheers

    Frank

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points