P
Peter Bradley
Hi,
I have to interact with a Web Service exposed by a partner organisation.
This Web Service requires that I authenticate to it before I can
successfully call its methods.
The partner organisation has supplied the following to me:
Username
Password
Secret Answer
User Group
HEI User (Y/N)
HEI Course Web Service User
Contact email address
So far, I've tried authenticating using the username and password, like
this:
CourseServices service = new CourseServices();
service.Credentials = new NetworkCredential("xxxxxx", "yyyyyy");
qualificationsListResponse quals = service.getQualificationsList(
new qualificationsListRequest());
I've also tried putting, in turn, the 'Secret Answer', the 'User Group'
and the 'HEI Course Web Service User' values into the optional third
parameter to the NetworkCredentials constructor.
In every case I get a SOAP fault returned saying that I haven't supplied
the correct credentials:
"WSDoAllReceiver: Incoming message does not contain required Security
header"
I've never had to include code to authenticate to a Web Service before,
so I've obviously missed something. Can someone point me in the right
direction, please?
Thanks
Peter
I have to interact with a Web Service exposed by a partner organisation.
This Web Service requires that I authenticate to it before I can
successfully call its methods.
The partner organisation has supplied the following to me:
Username
Password
Secret Answer
User Group
HEI User (Y/N)
HEI Course Web Service User
Contact email address
So far, I've tried authenticating using the username and password, like
this:
CourseServices service = new CourseServices();
service.Credentials = new NetworkCredential("xxxxxx", "yyyyyy");
qualificationsListResponse quals = service.getQualificationsList(
new qualificationsListRequest());
I've also tried putting, in turn, the 'Secret Answer', the 'User Group'
and the 'HEI Course Web Service User' values into the optional third
parameter to the NetworkCredentials constructor.
In every case I get a SOAP fault returned saying that I haven't supplied
the correct credentials:
"WSDoAllReceiver: Incoming message does not contain required Security
header"
I've never had to include code to authenticate to a Web Service before,
so I've obviously missed something. Can someone point me in the right
direction, please?
Thanks
Peter