1 Reply Latest reply on Jul 16, 2007 12:47 PM by Eric Neilsen

    soap binding header

    Eric Neilsen Newbie

      I'm trying to create this in jbossWS


      I've tried doing the following but haven't had any luck
      StubExt soapStub = (StubExt)soapBinding;
      QName headerQ = new QName(service.getServiceName().getNamespaceURI(), "SessionHeader");
      QName sessionId = new QName(service.getServiceName().getNamespaceURI(), "SessionHeader", "sessionId");
      soapStub.addUnboundHeader(headerQ, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.IN);
      soapStub.setUnboundHeaderValue(sessionId, "QwWsHJyTPW.1pd0_jXlNKOSU");

      reference http://wiki.apexdevnet.com/index.php/Enterprise_Describe_Global

        • 1. Re: soap binding header
          Eric Neilsen Newbie

          I feel a little dead in the water, can I get a JBoss guy to reply to this thread? I need to figure out how to create the xml header snippet posted above using the JBossWS object model. The code snippet needs to be included on every call so it needs to be attached to the StubExt object.