Package interop.wsifserviceWrapped

Examples of interop.wsifserviceWrapped.ComplexDocument_Type


      WSIFMessage inMsg = operation.createInputMessage();
      WSIFMessage outMsg = operation.createOutputMessage();
      WSIFMessage faultMsg = operation.createFaultMessage();

            ComplexDocument_ElemType cdtet = new ComplexDocument_ElemType();
            ComplexDocument_Type cdt = makeComplexDocument();
            checkComplexDocument(cdt);
            cdtet.setComplexDocument(cdt);

      inMsg.setObjectPart("parameters", cdtet);

      boolean ok =
        operation.executeRequestResponseOperation(
          inMsg,
          outMsg,
          faultMsg);

      assertTrue("operation returned false!!", ok);
            Object o = null;
            try {
          o = outMsg.getObjectPart("outputDoc");
          assertTrue("response is null!!!", o != null);
            } catch (WSIFException e) {
              assertTrue("response part 'outputDoc' not found in output message!!!", false);
            }
      assertTrue(
          "response part has wrong type: " + o.getClass(),
          ComplexDocumentResponse.class.isAssignableFrom(o.getClass()));

            ComplexDocumentResponse response = (ComplexDocumentResponse) o;
            ComplexDocument_Type cdtResponse = response.getComplexDocument();
      assertNotNull("response ComplexDocument is null!!!", cdtResponse);
         
      checkComplexDocument(cdtResponse);

    } catch (Exception ex) {
View Full Code Here


               ComplexDocumentResponse.class );

            Doc_TestPortType stub = (Doc_TestPortType) service.getStub(portName, Doc_TestPortType.class);

            ComplexDocument_ElemType cdtet = new ComplexDocument_ElemType();
            ComplexDocument_Type cdt = makeComplexDocument();
            checkComplexDocument(cdt);
            cdtet.setComplexDocument(cdt);
                       
            ComplexDocumentResponse response = stub.complexDocument(cdtet);
      assertNotNull("response is null!!!", response);

            ComplexDocument_Type cdtResponse = response.getComplexDocument();
      assertNotNull("response complexDocument is null!!!", cdtResponse);

      checkComplexDocument(cdtResponse);

    } catch (Exception ex) {
View Full Code Here

    }
  }

    private ComplexDocument_Type makeComplexDocument() {
     
        ComplexDocument_Type cdt = new ComplexDocument_Type();

        ArrayOfSimpleDocument asd = new ArrayOfSimpleDocument();
        SimpleDocument_Type[] adt = new SimpleDocument_Type[2];
        adt[0] = new SimpleDocument_Type("petra");
        adt[1] = new SimpleDocument_Type("ant");
        asd.setSimpleDocument(adt);
        cdt.setSimpleDoc(asd);
       
        ChildDocument cd = new ChildDocument();
        asd = new ArrayOfSimpleDocument();
        adt = new SimpleDocument_Type[1];
        adt[0] = new SimpleDocument_Type("sue");
        asd.setSimpleDocument(adt);
        cd.setChildSimpleDoc(asd);
        cdt.setChild(cd);
       
        cdt.setAnAttribute("together");   

      return cdt;
    }
View Full Code Here

TOP

Related Classes of interop.wsifserviceWrapped.ComplexDocument_Type

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.