1 Reply Latest reply: May 13, 2013 7:48 AM by Raju Gurusamy RSS

    Relationship containment complete in the JAX-WS client

    smuralee
      Hi All,

      I have created a JAX-WS client for the OPA-rulebase.
      The client is generated using the specific wsdl.

      The test case created in OPA, needs me to mark the containment as complete in the relationships, only then the required output is obtained.
      The soap request created by the client is not having such an option and hence no output is obtained.

      Can someone please provide details on how to create the relationships using JAX-WS client and also to mark the containment as complete in the JAX-WS.

      Thanks
        • 1. Re: Relationship containment complete in the JAX-WS client
          Raju Gurusamy
          For generic requests -

                    RelationshipType sampleRelation = new RelationshipType();
                    sampleRelation.setId("<public name of relationship>");
                    sampleRelation.setState("known");

          For specific requests -

          globalInstance.setList<EntityPublicName>(new <EntityPublicName>EntityListType());

          Instantiating an empty arraylist of child entity instances will automatically set relationship as known.