• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Webservice soap header
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Webservice soap header


  • Subject: Webservice soap header
  • From: AndrĂ© Rothe <email@hidden>
  • Date: Wed, 06 Dec 2017 23:09:17 +0100

Hi,

I have built a webservice, but I want some more security. The service has no session, so I have to send the user credentials on every request. My idea is, that I create a SOAP header node for username and password.

How I have to define both elements, that they are mandatory for the clients? I think, I can check the existence and the content of the nodes within a security delegate:

In Application.java:

WOWebServiceRegistrar.registerWebService("MyService", MyService.class,
     new String[] { "changePassword", "getData" }, true);
WOWebServiceRegistrar.setSecurityDelegate(new MyServiceSecurity());


In MyServiceSecurity.java:

void processServerRequest(org.apache.axis.MessageContext mc) throws org.apache.axis.AxisFault {
     NSLog.out.appendln("Security processServerRequest");
// get the content of username and password and compare both with the database values
}

But I don't see the NSLog output of the delegate class and the new header elements are not visible within the wsdl description for the client. So I think, that the SecurityDelegate has not been called, and is there another way to define the headers (to see it in the wsdl)?

Thank you.

Best regards
Andre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: WOInject and WOUnit co-operation
  • Next by Date: File update issues with Eclipse
  • Previous by thread: Re: WOInject and WOUnit co-operation
  • Next by thread: File update issues with Eclipse
  • Index(es):
    • Date
    • Thread