// UsingAddressing wsdl:required=true
  public void testCreateDispatchSourceMSEPRNoPortQName() throws Exception {

    if (ClientServerTestUtil.useLocal()) {
      System.out.println("HTTP Transport Only Exiting");
      return;
    }

    RespectBindingFeature rbf = new RespectBindingFeature(true);
    WebServiceFeature[] wse = new WebServiceFeature[] {rbf};
    Service service = createServiceWithWSDL();

    MemberSubmissionEndpointReference msEPR = createMSEPRStubServiceWithWSDL(service);
    // MemberSubmissionEndpointReference.AttributedQName portTypeName = msEPR.portTypeName;
    // QName portQName = portTypeName.name;
    msEPR.portTypeName.name = null;
    MSEPRString = msEPR.toString();
    Dispatch<Source> dispatch =
        service.createDispatch(
            EndpointReference.readFrom(makeStreamSource(MSEPRString)),
            Source.class,
            Service.Mode.PAYLOAD,
            wse);
    Source result = dispatch.invoke(makeStreamSource(MSGSrc));
    JAXBElement<AddNumbersResponse> addNumberResponse =
        (JAXBElement<AddNumbersResponse>)
            createJAXBContext().createUnmarshaller().unmarshal(result);
    AddNumbersResponse response = addNumberResponse.getValue();
    assertEquals(response.getReturn(), 2 + 4);
  }
  public void testCreateDispatchJAXBMSEPRNoPortQName() throws Exception {

    if (ClientServerTestUtil.useLocal()) {
      System.out.println("HTTP Transport Only Exiting");
      return;
    }

    RespectBindingFeature rbf = new RespectBindingFeature(true);
    WebServiceFeature[] wse = new WebServiceFeature[] {rbf};
    Service service = createServiceWithWSDL();

    MemberSubmissionEndpointReference msEPR = createMSEPRStubServiceWithWSDL(service);
    msEPR.portTypeName.name = null;

    MSEPRString = msEPR.toString();
    Dispatch<Object> dispatch =
        service.createDispatch(
            EndpointReference.readFrom(makeStreamSource(MSEPRString)),
            createJAXBContext(),
            Service.Mode.PAYLOAD,
            wse);
    AddNumbers addNumbers = factory.createAddNumbers();
    addNumbers.setNumber1(2);
    addNumbers.setNumber2(4);
    JAXBElement<AddNumbers> num = factory.createAddNumbers(addNumbers);
    JAXBElement<AddNumbersResponse> addNumbersResponse =
        (JAXBElement<AddNumbersResponse>) dispatch.invoke(num);
    AddNumbersResponse response = addNumbersResponse.getValue();
    assertEquals(response.getReturn(), 2 + 4);
  }
  public void testCreateDispatchSMWsdlMSEPRNoPortQName() throws Exception {

    if (ClientServerTestUtil.useLocal()) {
      System.out.println("HTTP Transport Only Exiting");
      return;
    }

    RespectBindingFeature rbf = new RespectBindingFeature(false);
    WebServiceFeature[] wse = new WebServiceFeature[] {rbf};
    Service service = createServiceWithWSDL();
    MemberSubmissionEndpointReference msEPR = createMSEPRStubServiceWithWSDL(service);
    msEPR.portTypeName.name = null;
    MSEPRString = msEPR.toString();

    Dispatch<SOAPMessage> dispatch =
        service.createDispatch(
            EndpointReference.readFrom(makeStreamSource(MSEPRString)),
            SOAPMessage.class,
            Service.Mode.MESSAGE,
            wse);
    SOAPMessage sm = dispatch.invoke(getSOAPMessage(makeStreamSource(SMMsg)));
    sm.writeTo(System.out);

    // System.out.println("Adding numbers 2 and 4");
    // int result = dispatch.invoke(getSOAPMessage())
    // assert(result == 6);
    // System.out.println("Addinion of 2 and 4 successful");
  }