Hello.
I have built a sucessful web services with this approach:
- New VS Project.
- Add Service Reference (WSDL) url.
- Deploy og Server and Client
- Add to AOT
All basic things and success.
I have wrote a code in X++ who expose this services and all that, the code is OK as far as it goes.
The Propblem:
In the manual from the service provider they handle security login using X509 Token and the Username Token (Visual Studio things).
As it is described in the manual:
"Each call to the service should include a UserNameToken in accordance with the OASIS WSS UsernameToken Profile 1.0. The token should include the Username and Password tags. The Password@Type attribute references by default the URI „...#PasswordText“ and the password should be sent as clear text."
And they give an example of a code (envelope):
<S11:Envelope xmlns:S11="..." xmlns:wsse="...">
<S11:Header>
...
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>MyUserName</wsse:Username>
<wsse:Password>My1ongA$ndDlff9ltP%$$phr$se</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
...
</S11:Header>
...
</S11:Envelope>
Obviously I need to get to the username and the password into AX user interface, either to store it there or to bring up as a dialog when user do some actions. But How can I do it?
I have seen several examples: One have used .NET 2.0 framework SDK (who is old version) and use wsdl.exe to create .NET Assembly and add that to Reference in the AOT.
Can anyone tell me what is the approach to implement it in AX so I can change the username and passw through AX UI?