Failed to retrieve WSDL 403 fobidden for url - weblogic.developer.interest.webservices.general(Archived)

Hello,
I have some issue to invoke a web service from a servlet running in WebLogic 9.2. The call to the service failed with the following error:
weblogic.webservice.wsdl.WSDLParseException: Failed to retrieve WSDL from http://xx.xxx.xx.xxx:8080/wsdllocation?wsdl. Please check the URL and make sure that it is a valid XML file [java.io.FileNotFoundException: Response:  '403: Forbidden' for url: 'http://xx.xxx.xx.xxx:8080/wsdllocation?wsdl']
The same wsdl was used to generate the web service client. And if I run the same code as a standalone application it will work.
Not sure what I am missing here. Does anybody have the similar issue before?
Thanks in advance. 

Sorry to answer my own question. But the issue was actually caused by an HttpClient library that was loaded during the initialization of another webapp. And the HttpClient uses a proxy. Somehow WebLogic uses the HttpClient for the web service call as well, meaning going through Proxy and the connection didn't work. Not sure why this happens but disabling the HttpClient through proxy fixed this.

Related

IOException: Server returned HTTP response code: 500 for URL:

Not sure if I'm on the right board for this issue, so my apologies if not.
Made a simple web service, which tests ok from its test page, etc.
Created a simple Java app that 'crafts' a simple SOAP message, based on the test page sample.
Invoking it results in the error message in the subject line. On the server side, all I see is this:
Got a Web Service Request at URL: '/TestWebService/1.0/webservice' for web service 'null'
Got a Web Service Request at URL: '/1.0/webservice' for web service 'TestWebService'
Both the app and the server are running from the same Eclipse instance.
Any advice is greatly appreciated. What other weblogic settings could I try to have the appserver tell me more?
Thanks,
Karoly

Failed to retrieve WSDL

Help!
I have a Web Service running on a Weblogic Integration server (on NT). I had no
problem accessing it from my Weblogic Portal server (on NT). But when I access
the same Web Services from the same UNIX portal server, it generates error:
______________________________________
weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
http://myserver:7001/myWebServices.jws?WSDL=. Please check the URL and make sure
that it is a valid XML file [java.io.FileNotFoundException: Response: '403: Forbidden'
for url: 'http://myserver:7001/myWebServices.jws?WSDL=']
______________________________________
The difference between the NT and the UNIX portal server is NT portal server is
clustered, but UNIX server is not. The source code of generating the WS proxy
is:
______________________________________
String wsdlURL ="http://myserver:7001/myWebServices.jws?WSDL=";
MyWSHelper_Impl proxy = new MyWSHelper_Impl(wsdlURL);
______________________________________
Any idea? Thanks!
are you sure the url is right?
I feel the trailing '=' symbol should not be there..
anyway please check wsdl url in browser. if it opens it is not a wsdl url problem.
"nina" <nina#yahoo.com> wrote:
>
Help!
I have a Web Service running on a Weblogic Integration server (on NT).
I had no
problem accessing it from my Weblogic Portal server (on NT). But when
I access
the same Web Services from the same UNIX portal server, it generates
error:
______________________________________
weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve
WSDL from
http://myserver:7001/myWebServices.jws?WSDL=. Please check the URL and
make sure
that it is a valid XML file [java.io.FileNotFoundException: Response:
'403: Forbidden'
for url: 'http://myserver:7001/myWebServices.jws?WSDL=']
______________________________________
The difference between the NT and the UNIX portal server is NT portal
server is
clustered, but UNIX server is not. The source code of generating the
WS proxy
is:
______________________________________
String wsdlURL ="http://myserver:7001/myWebServices.jws?WSDL=";
MyWSHelper_Impl proxy = new MyWSHelper_Impl(wsdlURL);
______________________________________
Any idea? Thanks!
The easiest was to figure this out, is to look in the proxy jar. There is a WSDL
in there, which you can examine to see what is assigned to the location attribute
of the <soap:address> element :-)
To get the "dynamic" WSDL, just append a ?WSDL to the end of that value.
Regards,
Mike Wooten
"nina" <nina#yahoo.com> wrote:
>
Help!
I have a Web Service running on a Weblogic Integration server (on NT).
I had no
problem accessing it from my Weblogic Portal server (on NT). But when
I access
the same Web Services from the same UNIX portal server, it generates
error:
______________________________________
weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve
WSDL from
http://myserver:7001/myWebServices.jws?WSDL=. Please check the URL and
make sure
that it is a valid XML file [java.io.FileNotFoundException: Response:
'403: Forbidden'
for url: 'http://myserver:7001/myWebServices.jws?WSDL=']
______________________________________
The difference between the NT and the UNIX portal server is NT portal
server is
clustered, but UNIX server is not. The source code of generating the
WS proxy
is:
______________________________________
String wsdlURL ="http://myserver:7001/myWebServices.jws?WSDL=";
MyWSHelper_Impl proxy = new MyWSHelper_Impl(wsdlURL);
______________________________________
Any idea? Thanks!

Error in Create Web Service Reference

Hi ALL,
i am trying to create we service reference with wsdl url and i got the below error
1 error has occurred
* The WSDL document was unretrievable because either the URL you supplied was invalid, your environment requires a valid proxy server address for HTTP requests and you have not defined one for this application, or a wallet needs to be configured for this instance of Application Express for HTTPS requests.
Please through some light on this....
My Apex application server is SSL enabled.
Thanks in Advance,
Santhosh Tirunahari 
Have you made sure you can see the WDSL if you paste the url in the browser? 
Yes I can see the XML data in the browser.

Parse of wsdl failed due to weblogic.testclient.WsdlParseFailedException

Hi,
I am deploying a Web Service and testing it through the WebLogic Test Client and getting the below exception:
Parse of wsdl (http://10.23.83.12:7011/Service/newLevelPS?WSDL) failed due to weblogic.testclient.WsdlParseFailedException: weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from InputSource due to -- java.io.FileNotFoundException: Response: '401: Unauthorized' for url: 'http://10.23.83.12:7011/Service/newLevelPS?WSDL'.*
Common causes of errors include pointing to the web service instead of the wsdl or using 'localhost' for a server listening on an ip address.*
The confirguration/server that I am using:
OS: Solaris
Server: WebLogic Server 9.2.2
Browser: Internet Explorer 8
Amusingly, this problem never occurs on Windows XP OS. The only difference is that in Windows I have WebLogic Server 9.2.2 installed. I have successfully developed/tested the same Web Service on Windows Platform and I have no clue why it fails in Solaris environment.
I have also tried adding the below line in the config.xml of my WebLogic Server domain, in the security-configuration tag, but even it didn't work:
*+<enforce-valid-basic-auth-credentials>false</enforce-valid-basic-auth-credentials>+*
As for security, I have implemented Usernametokens* in Web Service and configured appropriate Users/Groups/Roles/Policies in WebLogic Server. These are working fine when you hit the Web Service URL, but the moment you click on the Test Client hyperlink, it fails with the above mentioned error.
Would appreciate if someone could help on it. I have been trying to resolve this for past 4 days.
Thanks for the help. 
are you able to access your WSDL file with the following URL:
http://10.23.83.12:7011/Service/newLevelPS?WSDL 
Yes Sandeep, I am able to access the Web Service using the below link
http://10.23.83.12:7011/Service/newLevelPS?WSDL 
Can you paste the snippet of access.log file of the weblogic server at the time when you are accessing the web service with the web service client.
This seems to be some issue with the configuration difference between your solaris and windows environment.
Are you using any kind of proxy to access the weblogic web service client or were you using it previously.
enabling the authentication debug flag for the server on which the web service has deployed and looking into the server log will help in debugging the issue why the server is throwing the authorization error.
Thanks,
Sandeep

WebService: don't work

Hi,
I have developped few WebService on StandAlone oc4j and it run.
But with the same ear file, I try to deploy it on 9IASWE and it don't work.
I have an error , I can't get WSDL :
"Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me."
Any Idea ??
From the error message, it seems as the SOAP Web Service is expecting the client application to use HTTP POST instead of HTTP GET that it is currently using.
Can you change your client to use HTTP POST instead?

Categories

Resources