Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3481484
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:27:11+00:00 2026-05-18T10:27:11+00:00

I was trying to connect with groovy WSClient to Exchange server wsdl, but can’t

  • 0

I was trying to connect with groovy WSClient to Exchange server wsdl, but can’t because i receive an empty file (when i want to parse the wsdl).
I am using the following lines:

Map mapClient=[
                    "https.truststore":"/path/jssecacerts",
                    "https.truststore.pass":"changeit",
                    "https.keystore":"/path/cacerts",
                    "https.keystore.pass":"changeit"
    ]

    def proxy=new WSClient("https://mail.exchangeserver:443/ews/services.wsdl", this.class.classLoader)
    proxy.setSSLProperties(mapClient)
    proxy.setBasicAuthentication("user","password")
    proxy.initialize()

It basically fails at proxy.initialize() because of the xml parsing error on an empty file.
However when i use the browser, i have the complete wsdl file.

This is not the SSL handshake, because i have fought for hours to get it working. It was the first error i got…

I think this is the BasicAuthentication that is wrong for some reason. The reason i say that is: I can comment out the authentication line and i have the same result.

Any hints?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T10:27:12+00:00Added an answer on May 18, 2026 at 10:27 am

    Ok, from another forum, i got my answer.
    This is a known limitation of apache CXF (the backend of groovy WSClient) and it uses the credential only when using the webservice, not when fetching the wsdl!
    Workaround is to load the wsdl locally and build the WSClient using:

    new WSClient(this.class.classLoader.getResource("services.wsdl").toExternalForm(), 
                 this.class.classLoader)
    

    for those using exchange webservice, it is not finished! You need to fix some errors as well:

    • download the messages.xsd and types.xsd together with the services.wsdl
    • fix the types.xsd replacing the line

      <xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
      

    by

     <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
    

    and finally fix the services.wsdl adding a wsdl:service tag

      <wsdl:service name="ExchangeWebService">
         <wsdl:port name="ExchangeWebPort" binding="tns:ExchangeServiceBinding">
             <soap:address location="https://myserver/EWS/exchange.asmx" />
         </wsdl:port>
      </wsdl:service>
    

    That’s it, it should now initialize properly!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to connect to a SQL Server 2005 instance remotely but getting the following
Im trying to connect to a mysql database on my web server, but I
Im trying to connect to a server and than receive some data back in
I'm trying to connect from a Windows XP system to an SVN server but
I'm trying connect me to database MySQL server but the console show me ERROR
Im trying to connect to a POP3 server via imap_open imap_open('{mail.domain.com:995/pop3/tls}INBOX', 'user@domain.com', 'password'); But
I am trying to connect to MSSQL server 2008 on my localhost, but I
I am trying to connect a simple groovy script to the DB. Code: import
When I am trying to connect to my SVN repository on some remote server
I am trying to connect to a MySQL Server using JDBC tool in java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.