Invoking Web Service
Posted: Sun Mar 01, 2020 4:06 pm
Hello,
I downloaded and installed the latest version of OpenEmm 2019 (19.10.000.133) and I am testing the web services.
As specified in the manual, I have created one new web service user using the web gui and specifyied its username and password.
Now I am trying to invoke the web service (for example ListSubscribers).
How the user authentication parameters should be passed ?
I guess I should use an invocation like below, but even with the corrent username and password i've got the error: "com.sun.xml.wss.XWSSecurityException: Receiver Requirement for Digested Password has not been met; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSSecurityException: Receiver Requirement for Digested Password has not been met".
How the security header should be specified ?
Is available any example for use the web services ?
Thanks for the help.
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://agnitas.org/ws/schemas">
<soapenv:Header>
<wsse:Security >
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password>passoword</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<sch:ListSubscribersRequest>
</sch:ListSubscribersRequest>
</soapenv:Body>
</soapenv:Envelope>
I downloaded and installed the latest version of OpenEmm 2019 (19.10.000.133) and I am testing the web services.
As specified in the manual, I have created one new web service user using the web gui and specifyied its username and password.
Now I am trying to invoke the web service (for example ListSubscribers).
How the user authentication parameters should be passed ?
I guess I should use an invocation like below, but even with the corrent username and password i've got the error: "com.sun.xml.wss.XWSSecurityException: Receiver Requirement for Digested Password has not been met; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSSecurityException: Receiver Requirement for Digested Password has not been met".
How the security header should be specified ?
Is available any example for use the web services ?
Thanks for the help.
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://agnitas.org/ws/schemas">
<soapenv:Header>
<wsse:Security >
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password>passoword</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<sch:ListSubscribersRequest>
</sch:ListSubscribersRequest>
</soapenv:Body>
</soapenv:Envelope>