Results 1 to 5 of 5

Thread: Having difficulties communicating with USI v3.0 web service

  1. #1
    Junior Member
    Join Date
    Jan 2020
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reputation
    10

    Default Having difficulties communicating with USI v3.0 web service

    released a new version of their web service.

    To consume it what I did was:

    1) Grab a copy of the WSDL at
    2) Use Apache CXF to generate Java models from the WSDL
    3) Use Java's Metro framework to initialize a client and create a request against the web service.

    In the middle of the request, the a separate request is made against the VANguard Security Token Service, which succeeds.
    However, the actual request to the USI service fails with the message:
    Code:
    An error occurred when verifying security for the message
    I believe this is because USI 3.0 requires an RSA1.5-encrypted token but the STS returns an RSA-OAEP-encrypted token.

    A solution that was mentioned in the official documentation of the USI is:

    Code:
    ...changes the AlgorithmSuite on the STS binding to SecurityAlgorithmSuite.Basic256Sha256Rsa15
    But I have no idea how to do this on Metro.

    Does anyone have experience with this? Any help is appreciated.



Look Here ->
  • #2
    Administrator
    mtv's Avatar
    Join Date
    Jan 2008
    Posts
    19,885
    Thanks
    7,504
    Thanked 15,043 Times in 6,759 Posts
    Rep Power
    5636
    Reputation
    238845

    Default

    Contact the help centre, via the website you linked to.



    I have moved this thread to General Chat as it is not related to website design & development.

  • #3
    Junior Member
    Join Date
    Mar 2020
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Reputation
    30

    Default

    Hi ein,

    How did you go with your issue?

    I'm working on the same thing and was getting the same issue when I update our v1.2 STS/v2 USI code using the same wsdl you mentioned above. There doesn't seem to be much help for building the SOAP interface with Java compared to dot net. I got the same advice from USI that you found but there isn't anywhere I can find to control this is Metro which seems to start with the STS service endpoint and then do all the required binding internally each time a USI service is called. I did find the Metro libraries we were using were older than the recommended 3.2.1 and didn't support the sha2 encryption required for the v1.3 STS, so I'm thinking that maybe the wsdl is correct and the SOAP messages are not being SHA2 encrypted because the Metro library can't do it. However if I update to 3.2.1 then I get dependency issues because our SecurityHeader code uses the class javax.xml.stream.XMLStreamException which is no longer in the Metro library (it was in webservices-rt.jar). So I'm stuck at the moment trying to figure out how to bring that code up to date (this Java SOAP code is pretty new to me so on a steep learning curve at the moment). I'd be grateful if you had some further insights if you made it further or got it going in the end.

    Thanks.

  • #4
    Banned

    Join Date
    Jan 2017
    Location
    still above ground level
    Posts
    1,779
    Thanks
    5,562
    Thanked 1,964 Times in 714 Posts
    Rep Power
    0
    Reputation
    35657

    Default

    The SOAP dot net is easily created bu using liquid nitrogen on the processor then update v1.3.STS will work floorlessly for you thanks

  • #5
    Junior Member
    Join Date
    Mar 2020
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Reputation
    30

    Default

    Hi hinekadon,

    Unfortunately I'm looking for a Java solution, generating the interface code from a wsdl with Apache CXF and using Metro libraries to handle the messaging.

  • The Following User Says Thank You to alchemyD For This Useful Post:

    hinekadon (05-03-20)

  • Tags for this Thread

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •