0

I need my header to look like this:

  <soap:Header>
    <ListAuthenticationHeader XmlAttribute="" xmlns="http://example.com/services">
      <ApiKey>1234567890</ApiKey>
    </ListAuthenticationHeader>
  </soap:Header>

I tried

List<HeaderProperty> headerPropertyList = new ArrayList<HeaderProperty>();
headerPropertyList.add(new HeaderProperty("ApiKey","1234567890"));
HttpTransportSE ht = new HttpTransportSE(URL);
ht.call(SOAP_ACTION, envelope, headerPropertyList);

but that doesn't work, server responds with access denied.

fweigl
  • 21,278
  • 20
  • 114
  • 205

0 Answers0