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

  • Home
  • SEARCH
  • 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 9179853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:54:16+00:00 2026-06-17T17:54:16+00:00

I cannot set preemptive authentication in groovyws. (ws provider required preemptive authentication.) I try

  • 0

I cannot set preemptive authentication in groovyws. (ws provider required preemptive authentication.)

I try to find out in groovyws document but no clue.

import groovyx.net.ws.WSClient

//def proxy = new WSClient("http://202.44.4.97/webservice/pttinfo.asmx?wsdl", this.class.classLoader)
def proxy = new WSClient("http://192.168.3.69/provider/myService", this.class.classLoader)
proxy.setBasicAuthentication('user', 'pass')

proxy.initialize()

below is an error.

Caused by: java.io.IOException: Server returned HTTP response code: 405 for URL: http://192.168.3.69/provider/myService
  • 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-06-17T17:54:17+00:00Added an answer on June 17, 2026 at 5:54 pm

    Have you tried groovy-wslite? It says in the documentation for GroovyWS that:

    Due to low availability the project is currently dormant, you might consider groovy-wslite as a replacement module

    So afaics, this should get close (I’m assuming you’re using SOAP):

    import wslite.soap.*
    def client = new SOAPClient('http://192.168.3.69/provider/myService')
    client.authorization = new HTTPBasicAuthorization( 'user', 'pass' )
    

    There are instructions for getting wslite working with Grails here.

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

Sidebar

Related Questions

I know that you cannot simply set DocumentRoot in htaccess but it's all I
I cannot figure out how to set an estimated maximum price for a collection
I cannot figure out how to set an array to one of two sets
I cannot for the life of me find where to set the delete rules
I cannot get IDataErrorInfo to validate reference properties that have [Required] attribute set to
No matter what I try, I cannot set the width and height of my
I am trying to export an HTML table to excel but I cannot set
I'm trying to make a game where apples fall but I cannot set intervals
Google Chrome is throwing Uncaught TypeError: Cannot set property 'isDown' of undefined but it
I'm trying to figure out how to set the User cannot change password attribute

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.