WSDLParseException

Hi,
I am getting below error while generating client side static stub using weblogic8.1sp4 for webservice hosted on .NET using soap12.
[clientgen] weblogic.webservice.tools.wsdlp.WSDLParseException: ERROR[WSDL Parser]:There is no name attribute found for soap:fault in binding operation <wsdl:operation name="GetProductCodes">
Can you please help me to resolve this error or any pointers will be helpful.
thanks
BM

Hello -
Please try the following link, this might be helpful to you.
http://dev2dev.bea.com/pub/a/2004/04/soap_wlw_ws.html
As per the above url, we need to Add <fault> element to the <operation> element in <binding>
e.g.
"<soap:fault use="literal" name="CustomFaultException"/>"
Please go through the above url to completely understand what changes you may need to do. Anyway, it's going to be only addition of "soap:fault" at the proper location.
Hope it helps.
Thanks
neeraj

Similar Messages

  • JSP client not Working

    Hi all
    I have made a simple webservice which retrives some fileds of a remote pointbase
    database.i have published this webservice in the uddiexplorer and generated the
    wsdl file for this webservice.
    now i made the proxies need by the client from the test browser's overview page
    to invoke this webservice,and also wrote the following JSP code to invoke the
    service.
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@ page import="weblogic.jws.proxies.*"%>
    <%@ page import="WebServices.Users"%>
    <netui:html>
    <head>
    <title>
    Hello World Client Accessing HelloWorld Service
    </title>
    </head>
    <body>
    <p>
    <h2 align="center">Username's and associated Passwords stored in the Remote
    Database, at 10.3.8.254</h2>
    <br>
    <table align="center" border=1>
    <tr>
    <td>USERNAME</td>
    <td>PASSWORD</td>
    </tr>
    <%
    HelloWorld_Impl proxy = new
    HelloWorld_Impl("http://10.3.8.227:7001/SOAPappWeb/WebServices
    /HelloWorldContract.wsdl");
    HelloWorldSoap soapProxy = proxy.getHelloWorldSoap();
    org.openuri.www.Users[] result;
    result=soapProxy.uselect();
    for (int i=0; i< soapProxy.uselect().length; i++)
    %>
    <tr>
    <td align="center"><B><%out.print(
    result.getUSERNAME());%></B></td>
    <td align="center"><I><%out.println(
    result[i].getPASSWORD());%></I></td>
    </tr>
    <%}%>
    </p>
    </body>
    </netui:html>
    now when i run this code on the machine where server is running i get the correct
    result.but when i put the associated proxies and this JSP code on different machine
    and try t orun this JSP i m not able to run it.it sometimes keeps on loading the
    page or sometimes it shows me an error saying wsdl
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    D:/bea/user_projects/Webservice4/Webservice4Web/WebServices/HelloworldContract.
    wsdl. Please check the URL and make sure that it is a valid XML file [java.io.IOE
    xception: unable to find resource:D:/bea/user_projects/Webservice4/Webservice4We
    b/WebServices/HelloworldContract.xml]
    the path D:/bea/user_projects/Webservice4/Webservice4Web/WebServices/HelloworldContract.wsdl
    is the path where i have downloaded the wsdl in to my local machine i.e the machine
    where the client is.
    hope u get wat i m trying to say
    waiting for response..thanks for sparing time on my doubt
    kirtan

    Hello,
    Just a shot in the dark, but the _Impl needs a URL to the WSDL.  In the
    JSP, did you try something like (note the ?WSDL at the end):
         http://10.3.8.227:7001/SOAPappWeb/WebServices/HelloWorldContract?WSDL
    Can you point your browser at this location and get the WSDL? If you
    are doing a local WSDL file, you might try something like:
    blabla_Impl(new File("whatever.wsdl").toURL().toString());
    Some thoughts,
    Bruce
    kirtan patel wrote:
    >
    Hi all
    I have made a simple webservice which retrives some fileds of a remote pointbase
    database.i have published this webservice in the uddiexplorer and generated the
    wsdl file for this webservice.
    now i made the proxies need by the client from the test browser's overview page
    to invoke this webservice,and also wrote the following JSP code to invoke the
    service.
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@ page import="weblogic.jws.proxies.*"%>
    <%@ page import="WebServices.Users"%>
    <netui:html>
    <head>
    <title>
    Hello World Client Accessing HelloWorld Service
    </title>
    </head>
    <body>
    <p>
    <h2 align="center">Username's and associated Passwords stored in the Remote
    Database, at 10.3.8.254</h2>
    <br>
    <table align="center" border=1>
    <tr>
    <td>USERNAME</td>
    <td>PASSWORD</td>
    </tr>
    <%
    HelloWorld_Impl proxy = new
    HelloWorld_Impl("http://10.3.8.227:7001/SOAPappWeb/WebServices
    /HelloWorldContract.wsdl");
    HelloWorldSoap soapProxy = proxy.getHelloWorldSoap();
    org.openuri.www.Users[] result;
    result=soapProxy.uselect();
    for (int i=0; i< soapProxy.uselect().length; i++)
    %>
    <tr>
    <td align="center"><B><%out.print(
    result.getUSERNAME());%></B></td>
    <td align="center"><I><%out.println(
    result[i].getPASSWORD());%></I></td>
    </tr>
    <%}%>
    </p>
    </body>
    </netui:html>
    now when i run this code on the machine where server is running i get the correct
    result.but when i put the associated proxies and this JSP code on different machine
    and try t orun this JSP i m not able to run it.it sometimes keeps on loading the
    page or sometimes it shows me an error saying wsdl
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    D:/bea/user_projects/Webservice4/Webservice4Web/WebServices/HelloworldContract.
    wsdl. Please check the URL and make sure that it is a valid XML file [java.io.IOE
    xception: unable to find resource:D:/bea/user_projects/Webservice4/Webservice4We
    b/WebServices/HelloworldContract.xml]
    the path D:/bea/user_projects/Webservice4/Webservice4Web/WebServices/HelloworldContract.wsdl
    is the path where i have downloaded the wsdl in to my local machine i.e the machine
    where the client is.
    hope u get wat i m trying to say
    waiting for response..thanks for sparing time on my doubt
    kirtan

  • ERROR[WSDL Parser] Attribute 'name' not found at: wsdl:documentation

    Hello,
    I'm currently having a problem generating the Java source code from a WSDL, because the WSDL2Service ant class bundled with the WLS install (in the /server/lib/webservices.jar library) does not comply with the WSDL XSD.
    Check http://schemas.xmlsoap.org/wsdl/
    Especially if you add a <wsdl:documentation> in your <wsdl:portType> you end up with a WSDLParser error, while the file perfectly validates through Eclipse:
         <wsdl:portType name="ImportPortType">
              <wsdl:documentation>
                   Definitions of available operations through the webservice
              </wsdl:documentation>
              <wsdl:operation name="importData">
                   <wsdl:input message="tns:ImportInput" />
                   <wsdl:output message="tns:ImportOutput" />
              </wsdl:operation>
         </wsdl:portType> The error is:
    [wsdl2Service] Generating web service from wsdl C:\Java\Workspaces\MyWorkspace/WebServices/wsdl/Import.wsdl
    [wsdl2Service] weblogic.webservice.wsdl.WSDLParseException: ERROR[WSDL Parser] Attribute 'name' not found at:<wsdl:documentation>Definitions of available operations through the webservice
    [wsdl2Service]           </wsdl:documentation>
    [wsdl2Service]      at weblogic.webservice.wsdl.WSDLParser.getMustAttribute(WSDLParser.java:263)
    [wsdl2Service]      at weblogic.webservice.wsdl.WsdlPortType.parsePortType(WsdlPortType.java:29)
    [wsdl2Service]      at weblogic.webservice.wsdl.WsdlBinding.parseBinding(WsdlBinding.java:45)
    [wsdl2Service]      at weblogic.webservice.wsdl.WsdlPort.parsePort(WsdlPort.java:46)
    [wsdl2Service]      at weblogic.webservice.wsdl.WsdlService.parseService(WsdlService.java:37)
    [wsdl2Service]      at weblogic.webservice.wsdl.WsdlDefinitions.parseDefinition(WsdlDefinitions.java:38)
    [wsdl2Service]      at weblogic.webservice.wsdl.WSDLParser.visit(WSDLParser.java:71)
    [wsdl2Service]      at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:111)
    [wsdl2Service]      at weblogic.webservice.tools.build.internal.WSDL2JavaServiceImpl.runClassgen(WSDL2JavaServiceImpl.java:210)
    [wsdl2Service]      at weblogic.webservice.tools.build.internal.WSDL2JavaServiceImpl.run(WSDL2JavaServiceImpl.java:147)
    [wsdl2Service]      at weblogic.ant.taskdefs.webservices.wsdl2service.WSDL2Service.doWSDL2JavaService(WSDL2Service.java:211)
    [wsdl2Service]      at weblogic.ant.taskdefs.webservices.wsdl2service.WSDL2Service.execute(WSDL2Service.java:131)
    [wsdl2Service]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [wsdl2Service]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wsdl2Service]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [wsdl2Service]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wsdl2Service]      at java.lang.reflect.Method.invoke(Method.java:585)
    [wsdl2Service]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    [wsdl2Service]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [wsdl2Service]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [wsdl2Service]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [wsdl2Service]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    [wsdl2Service]      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [wsdl2Service]      at org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
    [wsdl2Service]      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    [wsdl2Service]      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    [wsdl2Service]      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [wsdl2Service]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [wsdl2Service]      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    [wsdl2Service]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wsdl2Service]      at java.lang.reflect.Method.invoke(Method.java:585)
    [wsdl2Service]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    [wsdl2Service]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [wsdl2Service]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [wsdl2Service]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [wsdl2Service]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    [wsdl2Service]      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [wsdl2Service]      at org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
    [wsdl2Service]      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    [wsdl2Service]      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    [wsdl2Service]      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [wsdl2Service]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [wsdl2Service]      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    [wsdl2Service]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wsdl2Service]      at java.lang.reflect.Method.invoke(Method.java:585)
    [wsdl2Service]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    [wsdl2Service]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [wsdl2Service]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [wsdl2Service]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [wsdl2Service]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    [wsdl2Service]      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    [wsdl2Service]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [wsdl2Service]      at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [wsdl2Service]      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    [wsdl2Service]      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [wsdl2Service]      at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    BUILD FAILED
    C:\Java\Workspaces\MyWorkspace\EAR\ant\build.xml:22: The following error occurred while executing this line:
    C:\Java\Workspaces\MyWorkspace\EAR\ant\build.xml:26: The following error occurred while executing this line:
    C:\Java\Workspaces\MyWorkspace\EAR\ant\build_config.xml:65: weblogic.webservice.tools.build.WSBuildException: weblogic.webservice.wsdl.WSDLParseException: ERROR[WSDL Parser] Attribute 'name' not found at:<wsdl:documentation>Definitions of available operations through the webservice
              </wsdl:documentation> Digging through the WSDLPortType class (package weblogic.webservice.wsdl ) decompiled code, I clearly saw this kind of parsing does not respect the WSDL XSD:
    public class WsdlPortType {
        public WsdlPortType() {
            operations = new ArrayList();
        void parsePortType(WSDLParser wsdlparser, XMLNode xmlnode, Port port) throws WSDLParseException {
            Iterator iterator = xmlnode.getChildren();
            do {
                if(!iterator.hasNext())
                    break;
                XMLNode xmlnode1 = (XMLNode)iterator.next(); // THE NEXT XML NODE IS NOT COMPULSORILY THE <wsdl:operation> ONE!!!
                String s = wsdlparser.getMustAttribute("name", xmlnode1);
                if(wsdlparser.canHandleMethod(xmlnode1)) {
                    weblogic.webservice.Operation operation = port.addOperation(s);
                    WsdlOperation wsdloperation = new WsdlOperation();
                    wsdloperation.parseOperation(wsdlparser, operation, xmlnode1);
                    operations.add(wsdloperation);
            } while(true);
        private ArrayList operations;
    } X-(
    Edited by maxxyme at 03/13/2008 10:34 AM

    I created a new project and tried to repeat the steps to import. Still getting the same error.
    This is my Message type definition if that helps
    <message name="Composite_Weather_ServiceRequestMessage">
              <part name="payload" type="tns1:NDFDgenRequest"/>
         </message>
         <message name="Composite_Weather_ServiceResponseMessage">
              <part name="payload" type="tns1:NDFDgenResponse"/>
         </message>

  • Got SSLKeyException:FATAL Alert:BAD_CERTIFICATE using weblogic ws test tool

    Hi,
    Iam trying to test the webservices using the WebLogic Webservice standard testing home page. The services work fine without SSL, but if the server is setup to use SSL, I get a BAD CERTIFICATE exception using the testing home page.
    Although, when I invoke the services through a different SOAP client they do work with SSL turned on provided I import the trusted ca (using my own certificate authority) to java cacerts file.
    I set up the custom trust and identity keystores and Iam using my own trusted authority. Configured the SSL as detailed in
    http://e-docs.bea.com/wls/docs81/secmanage/ssl.html
    Is this a bug related to WebLogic Webservice testing home page or am I missing something. Any help will be greatly appreciated.
    Thanks
    Veena.
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from https://raiders.fgm.com:7002/searchservice/SearchService?WSDL. Please check the URL and make sure that it is a valid XML file [javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable certificate was received.] at weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(Ljava.lang.String;)Lweblogic.xml.xmlnode.XMLNode;(DefinitionFactory.java:151) at weblogic.webservice.tools.wsdlp.WSDLParser.(Ljava.lang.String;)V(WSDLParser.java:76) at weblogic.webservice.WebServiceFactory.createFromWSDL(Ljava.lang.String;Ljava.lang.String;Ljavax.xml.rpc.encoding.TypeMappingRegistry;)Lweblogic.webservice.WebService;(WebServiceFactory.java:108) at weblogic.webservice.WebServiceFactory.createFromWSDL(Ljava.lang.String;Ljavax.xml.rpc.encoding.TypeMappingRegistry;)Lweblogic.webservice.WebService;(WebServiceFactory.java:84) at weblogic.webservice.server.servlet.ServletBase.invokeOperation(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Ljavax.xml.rpc.encoding.TypeMappingRegistry;Lweblogic.webservice.Operation;)V(ServletBase.java:295) at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Ljavax.xml.rpc.encoding.TypeMappingRegistry;Lweblogic.webservice.Operation;)V(WebServiceServlet.java:343) at weblogic.webservice.server.servlet.ServletBase.handleGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lweblogic.webservice.WebService;)V(ServletBase.java:266) at weblogic.webservice.server.servlet.ServletBase.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ServletBase.java:158) at weblogic.webservice.server.servlet.WebServiceServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(WebServiceServlet.java:254) at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6452) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661) at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630) at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)

    Thank You Prasanna for your response.
    I converted the trusted CA cert to PEM format and copied it to the domain directory and restarted the weblogic server after setting the following properties weblogic.webservice.client.ssl.strictcertchecking=false
    weblogic.security.SSL.ignoreHostnameVerification=true
    But, Iam still getting the BAD certificate exception.
    Thanks
    Veena.

  • SSL JDK 1.4 problem

    I have a java client (using jdk 1.3.1_03) talking to a web service deployed
    on Weblogic 7.0.1 (using JDK 1.4 instead of default 1.3.1_03) through ssl
    sucessfully. But If I swith client JDK also to JDK 1.4, I am getting a
    handshake failure. I know weblogic 7 is not certified for JDK 1.4. But I
    really need to use 1.4. Is there a work around? Here is the error log I am
    getting. Any response is appreciated.
    Thanks,
    Vish
    D:\dev\cie\client>set JAVA_HOME=D:\JBuilder8\jdk1.4
    D:\dev\cie\client>set WL_HOME=c:\bea\weblogic700
    D:\dev\cie\client>set
    ANTCLASSPATH=D:\JBuilder8\jdk1.4\lib\tools.jar;c:\bea\webl
    ogic700\server\lib\weblogic_sp.jar;c:\bea\weblogic700\server\lib\weblogic.ja
    r;c:
    \bea\weblogic700\server\lib\webservices.jar;
    D:\dev\cie\client>set
    PATH=c:\bea\weblogic700\server\bin;D:\JBuilder8\jdk1.4\jre
    \bin;D:\JBuilder8\jdk1.4\bin;
    D:\dev\cie\client>java -classpath
    D:\JBuilder8\jdk1.4\lib\tools.jar;c:\bea\weblo
    gic700\server\lib\weblogic_sp.jar;c:\bea\weblogic700\server\lib\weblogic.jar
    ;c:\
    bea\weblogic700\server\lib\webservices.jar; org.apache.tools.ant.Main runssl
    Buildfile: build.xml
    runssl:
    [java] [BaseWLSSLAdapter] : SSLAdapter verbose output enabled
    [java] [BaseWLSSLAdapter] : Strict cert checking disabled by default
    [java] [BaseWLSSLAdapter] : Trusted certificates will be loaded from
    c:\bea
    \user_projects\cip\trusted.crt
    [java] [BaseWLSSLAdapter] : Loaded local trusted certificates from
    java.io.
    FileInputStream@1e232b5
    [java] [BaseWLSSLAdapter] : Disabling strict checking on adapter
    weblogic.w
    ebservice.client.WLSSLAdapter@16f144c
    [java] [BaseWLSSLAdapter] : Set TrustManager to
    weblogic.webservice.client.
    BaseWLSSLAdapter$NullTrustManager@19da4fc
    [java] [WLSSLAdapter] : Set HostnameVerifier to
    weblogic.webservice.client.
    WLSSLAdapter$NullVerifier@f6ac0b
    [java] [BaseWLSSLAdapter] : Got new socketfactory
    javax.net.ssl.impl.SSLSoc
    ketFactoryImpl@1938039
    [java] [WLSSLAdapter] :
    openConnection(https://teilhard.darwin.nasa.gov:802
    1/time-service/TimeService?WSDL) returning
    weblogic.webservice.client.https.Http
    sURLConnection:https://teilhard.darwin.nasa.gov:8021/time-service/TimeServic
    e?WS
    DL
    [java] [WLSSLAdapter] : -- using HostnameVerifier
    weblogic.webservice.clien
    t.WLSSLAdapter$NullVerifier@f6ac0b
    [java] [WLSSLAdapter] : -- loaded certs from
    c:\bea\user_projects\cip\trust
    ed.crt
    [java] java.io.IOException: Write Channel Closed, possible SSL
    handshaking
    or trust failure
    [java] at com.certicom.tls.record.WriteHandler.write(Unknown
    Source)
    [java] at
    com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSen
    t(Unknown Source)
    [java] at
    com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(
    Unknown Source)
    [java] at
    com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(
    Unknown Source)
    [java] at
    com.certicom.tls.record.handshake.HandshakeHandler.handleHand
    shakeMessage(Unknown Source)
    [java] at
    com.certicom.tls.record.handshake.HandshakeHandler.handleHand
    shakeMessages(Unknown Source)
    [java] at
    com.certicom.tls.record.ReadHandler.interpretContent(Unknown
    Source)
    [java] at com.certicom.tls.record.ReadHandler.readRecord(Unknown
    Source
    [java] at
    com.certicom.tls.record.ReadHandler.readUntilHandshakeComplet
    e(Unknown Source)
    [java] at
    com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHand
    shake(Unknown Source)
    [java] at com.certicom.tls.record.WriteHandler.write(Unknown
    Source)
    [java] at com.certicom.net.ssl.HttpsClient.doHandshake(Unknown
    Source)
    [java] at
    com.certicom.net.ssl.internal.HttpURLConnection.getInputStrea
    m(Unknown Source)
    [java] at
    weblogic.webservice.client.https.HttpsURLConnection.getInputS
    tream(HttpsURLConnection.java:216)
    [java] at
    weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefin
    ition(DefinitionFactory.java:71)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.
    java:63)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:108)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:84)
    [java] at
    weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.j
    ava:73)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeService_Impl.<
    init>(TimeService_Impl.java:23)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeServiceClient.
    testTimeSvc(TimeServiceClient.java:69)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeServiceClient.
    main(TimeServiceClient.java:55)
    [java] weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to
    retrie
    ve WSDL from
    https://teilhard.darwin.nasa.gov:8021/time-service/TimeService?WSDL
    . Please check the URL and make sure that it is a valid XML file
    [java.io.IOExce
    ption: Write Channel Closed, possible SSL handshaking or trust failure]
    [java] at
    weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefin
    ition(DefinitionFactory.java:86)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.
    java:63)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:108)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:84)
    [java] at
    weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.j
    ava:73)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeService_Impl.<
    init>(TimeService_Impl.java:23)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeServiceClient.
    testTimeSvc(TimeServiceClient.java:69)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeServiceClient.
    main(TimeServiceClient.java:55)

    On the client side, try removing the the jsse.jar from the j2sdk1.4.1\jre\lib.
    "Vish Magapu" <vm> wrote:
    I have a java client (using jdk 1.3.1_03) talking to a web service deployed
    on Weblogic 7.0.1 (using JDK 1.4 instead of default 1.3.1_03) through
    ssl
    sucessfully. But If I swith client JDK also to JDK 1.4, I am getting
    a
    handshake failure. I know weblogic 7 is not certified for JDK 1.4. But
    I
    really need to use 1.4. Is there a work around? Here is the error log
    I am
    getting. Any response is appreciated.
    Thanks,
    Vish
    D:\dev\cie\client>set JAVA_HOME=D:\JBuilder8\jdk1.4
    D:\dev\cie\client>set WL_HOME=c:\bea\weblogic700
    D:\dev\cie\client>set
    ANTCLASSPATH=D:\JBuilder8\jdk1.4\lib\tools.jar;c:\bea\webl
    ogic700\server\lib\weblogic_sp.jar;c:\bea\weblogic700\server\lib\weblogic.ja
    r;c:
    \bea\weblogic700\server\lib\webservices.jar;
    D:\dev\cie\client>set
    PATH=c:\bea\weblogic700\server\bin;D:\JBuilder8\jdk1.4\jre
    \bin;D:\JBuilder8\jdk1.4\bin;
    D:\dev\cie\client>java -classpath
    D:\JBuilder8\jdk1.4\lib\tools.jar;c:\bea\weblo
    gic700\server\lib\weblogic_sp.jar;c:\bea\weblogic700\server\lib\weblogic.jar
    ;c:\
    bea\weblogic700\server\lib\webservices.jar; org.apache.tools.ant.Main
    runssl
    Buildfile: build.xml
    runssl:
    [java] [BaseWLSSLAdapter] : SSLAdapter verbose output enabled
    [java] [BaseWLSSLAdapter] : Strict cert checking disabled by default
    [java] [BaseWLSSLAdapter] : Trusted certificates will be loaded
    from
    c:\bea
    \user_projects\cip\trusted.crt
    [java] [BaseWLSSLAdapter] : Loaded local trusted certificates from
    java.io.
    FileInputStream@1e232b5
    [java] [BaseWLSSLAdapter] : Disabling strict checking on adapter
    weblogic.w
    ebservice.client.WLSSLAdapter@16f144c
    [java] [BaseWLSSLAdapter] : Set TrustManager to
    weblogic.webservice.client.
    BaseWLSSLAdapter$NullTrustManager@19da4fc
    [java] [WLSSLAdapter] : Set HostnameVerifier to
    weblogic.webservice.client.
    WLSSLAdapter$NullVerifier@f6ac0b
    [java] [BaseWLSSLAdapter] : Got new socketfactory
    javax.net.ssl.impl.SSLSoc
    ketFactoryImpl@1938039
    [java] [WLSSLAdapter] :
    openConnection(https://teilhard.darwin.nasa.gov:802
    1/time-service/TimeService?WSDL) returning
    weblogic.webservice.client.https.Http
    sURLConnection:https://teilhard.darwin.nasa.gov:8021/time-service/TimeServic
    e?WS
    DL
    [java] [WLSSLAdapter] : -- using HostnameVerifier
    weblogic.webservice.clien
    t.WLSSLAdapter$NullVerifier@f6ac0b
    [java] [WLSSLAdapter] : -- loaded certs from
    c:\bea\user_projects\cip\trust
    ed.crt
    [java] java.io.IOException: Write Channel Closed, possible SSL
    handshaking
    or trust failure
    [java] at com.certicom.tls.record.WriteHandler.write(Unknown
    Source)
    [java] at
    com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSen
    t(Unknown Source)
    [java] at
    com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(
    Unknown Source)
    [java] at
    com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(
    Unknown Source)
    [java] at
    com.certicom.tls.record.handshake.HandshakeHandler.handleHand
    shakeMessage(Unknown Source)
    [java] at
    com.certicom.tls.record.handshake.HandshakeHandler.handleHand
    shakeMessages(Unknown Source)
    [java] at
    com.certicom.tls.record.ReadHandler.interpretContent(Unknown
    Source)
    [java] at com.certicom.tls.record.ReadHandler.readRecord(Unknown
    Source
    [java] at
    com.certicom.tls.record.ReadHandler.readUntilHandshakeComplet
    e(Unknown Source)
    [java] at
    com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHand
    shake(Unknown Source)
    [java] at com.certicom.tls.record.WriteHandler.write(Unknown
    Source)
    [java] at com.certicom.net.ssl.HttpsClient.doHandshake(Unknown
    Source)
    [java] at
    com.certicom.net.ssl.internal.HttpURLConnection.getInputStrea
    m(Unknown Source)
    [java] at
    weblogic.webservice.client.https.HttpsURLConnection.getInputS
    tream(HttpsURLConnection.java:216)
    [java] at
    weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefin
    ition(DefinitionFactory.java:71)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.
    java:63)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:108)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:84)
    [java] at
    weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.j
    ava:73)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeService_Impl.<
    init>(TimeService_Impl.java:23)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeServiceClient.
    testTimeSvc(TimeServiceClient.java:69)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeServiceClient.
    main(TimeServiceClient.java:55)
    [java] weblogic.webservice.tools.wsdlp.WSDLParseException: Failed
    to
    retrie
    ve WSDL from
    https://teilhard.darwin.nasa.gov:8021/time-service/TimeService?WSDL
    .. Please check the URL and make sure that it is a valid XML file
    [java.io.IOExce
    ption: Write Channel Closed, possible SSL handshaking or trust failure]
    [java] at
    weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefin
    ition(DefinitionFactory.java:86)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.
    java:63)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:108)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:84)
    [java] at
    weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.j
    ava:73)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeService_Impl.<
    init>(TimeService_Impl.java:23)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeServiceClient.
    testTimeSvc(TimeServiceClient.java:69)
    [java] at
    gov.nasa.darwin.cip.middleware.time.client.TimeServiceClient.
    main(TimeServiceClient.java:55)

  • Clientgen for password protected WSDL

    Hi,
    I am trying to invoke an SAP web service. But I am not able to run the clientgen ANT task since the WSDL is password protected. This used to run earlier without any problem when it was public. Please help. Here is the error:
    [clientgen] <Aug 8, 2006 2:17:48 PM EDT> <Info> <WebService> <BEA-220094> <An IOException
    was thrown trying to access the WSDL at the given URL.>
    [clientgen] <Aug 8, 2006 2:17:49 PM EDT> <Info> <WebService> <BEA-220034> <A stack trace a
    ssociated with message 220094 follows:
    [clientgen] java.io.IOException: Server returned HTTP response code: 401 for URL: http://p
    rh458.pr.us.pri.com:8094/sap/bc/soap/wsdl11?services=ZELS_DOCUMENT_TRANSFER
    [clientgen] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    [clientgen] at weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(Definiti
    onFactory.java:113)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(
    ClientGenImpl.java:396)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.ja
    va:340)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(Clien
    tGenTask.java:351)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGen
    Task.java:208)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRun
    ner.java:423)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRu
    nner.java:137)
    [clientgen] >
    [clientgen] weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL fr
    om http://prh458.pr.us.pri.com:8094/sap/bc/soap/wsdl11?services=ZELS_DOCUMENT_TRANSF
    ER. Please check the URL and make sure that it is a valid XML file [java.io.IOException: S
    erver returned HTTP response code: 401 for URL: http://prh458.pr.us.pri.com:8094/sap
    /bc/soap/wsdl11?services=ZELS_DOCUMENT_TRANSFER]
    [clientgen] at weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(Definiti
    onFactory.java:153)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(
    ClientGenImpl.java:396)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.ja
    va:340)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(Clien
    tGenTask.java:351)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGen
    Task.java:208)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRun
    ner.java:423)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRu
    nner.java:137)

    You can try to open the documents with a password that is guaranteed to be wrong, i.e. a password that isn't used for any of the documents. If the document has no password, Word will open it without complaining - it only checks the password if the document
    is password-protected. If the document does have a password, error 5408 will occur, and you can trap this error with an error handler. For example, with a variable doc of type Document and a variable strPath of type String that contains the full path of a
    document:
    On Error Resume Next
    Set doc = Documents.Open(FileName:=strPath, PasswordDocument:="!@#$%")
    If Err = 0 Then ' no error occurred
    ' Process the document
    ' And close it
    doc.Close SaveChanges:=True ' or False
    End If
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • HTTPS and client invocation of web service - how to?

    Got some web services that are document and document wrapped. Have generated the
    client stubs using <clientgen> ANT task from BEA. Time to run a test against
    the web services, but they have to run on HTTPS. When I invoked my web service
    using the HTTPS://.... URL, I got this:
    [java] 5) testQuoteStubs(com.arrow.arrowsoap.client.QuoteServiceClientTest)
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    https://localhost:7002/QuoteService?WSDL. Please check the URL and make sure
    th
    at it is a valid XML file [javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIF
    ICATE - A corrupt or unuseable certificate was received.]
    Cool. So how do I assign a default CERT to the https client? This is on a developer
    instance of WL 8.1. I don't want to run the test on HTTP b/c I need to see how
    it works with HTTPS (need to simulate a bona fide downstream user). Any help
    is greatly appreciated.
    Thanks
    -Jake

    Hi Jacob,
    Take a look at the simple, one way SSL example [1] however it sounds
    like you want to have the client provide a cert back to the server,
    implying two-way SSL. You can find a two-way example here [2].
    Regards,
    Bruce
    [1]
    http://webservice.bea.com/simpleSSL.zip
    [2]
    http://webservice.bea.com/SSL2way.zip
    Jacob Anderson wrote:
    >
    Got some web services that are document and document wrapped. Have generated the
    client stubs using <clientgen> ANT task from BEA. Time to run a test against
    the web services, but they have to run on HTTPS. When I invoked my web service
    using the HTTPS://.... URL, I got this:
    [java] 5) testQuoteStubs(com.arrow.arrowsoap.client.QuoteServiceClientTest)
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    https://localhost:7002/QuoteService?WSDL. Please check the URL and make sure
    th
    at it is a valid XML file [javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIF
    ICATE - A corrupt or unuseable certificate was received.]
    Cool. So how do I assign a default CERT to the https client? This is on a developer
    instance of WL 8.1. I don't want to run the test on HTTP b/c I need to see how
    it works with HTTPS (need to simulate a bona fide downstream user). Any help
    is greatly appreciated.
    Thanks
    -Jake

  • Weblogic 8.1 Webservice Client Proxy Authentication not working

    We have a desktop console based Weblogic webservices client application that uses client stubs to establish the connection and communicate with the server where the WSDL was hosted.
    We are facing a problem in authenticating the Proxy user with valid credentials.
    We are using the following code to set the system properties and Authenticator class to authenticate the proxy user.
    //Code Segment #1
    Code:
    System.setProperty("http.proxyHost", proxyHost);System.setProperty("https.proxyHost", proxyHost);
    System.setProperty("weblogic.webservice.transport.http.proxy.host",proxyHost);
    System.setProperty("weblogic.webservice.transport.https.proxy.host",proxyHost);
    System.setProperty("http.proxyPort", proxyPort);
    System.setProperty("https.proxyPort", proxyPort);
    System.setProperty("weblogic.webservice.transport.http.proxy.port",proxyPort);
    System.setProperty("weblogic.webservice.transport.https.proxy.port",proxyPort);
    //System.setProperty("http.proxyType", "basic");
    //System.setProperty("https.proxyType", "basic");
    //System.setProperty("http.proxy.auth.type" ,"ntlm"); //This is not showing any impact
    System.setProperty("http.proxyUser", "bsil\\ashok.kumar");
    System.setProperty("https.proxyUser", "bsil\\ashok.kumar");
    System.setProperty("http.proxyPassword", " xyzddd");
    System.setProperty("https.proxyPassword", "xyzddd");
    Authenticator.setDefault(new MyAuthenticator());
    //Inner class
    public static class MyAuthenticator extends Authenticator {
    protected PasswordAuthentication getPasswordAuthentication() {
    String username = System.getProperty("http.proxyUser");
         String password = System.getProperty("http.proxyPassword");
         return new PasswordAuthentication(username, password.toCharArray());
    We are using following code initialize the stubs (Which internally opens a connection to the given endpoint base URL)
    //Code Segment #2
    Code:
    SessionService_Impl sessionService = new SessionService_Impl(getEndPointURL(SessionServicePort.class));
    port = sessionService.getSessionServicePort();
    return port;
    Using above code it always throws the following exception:
    Code:
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from https://apiclienttest.intralinks.com:443/webservices51/SessionService?WSDL. Please check the URL and make sure that it is a valid XML file [java.io.IOException: Proxy authenticator  failed: java.lang.ClassNotFoundException: ]
    if i replace the above code (Code Segment #2) to as bellow with Code Segment #3 then its working as expected. But we have been told that the Code Segment #2 is required as shwon above for the Weblogic ClientTimeout seconds feature so we cant replace the Code Segment #2 with Code Segment #3 since we don?t want to miss the ClientTimeout seconds feature for the application.
    //Code Segment #3
    Code:
    SessionService_Impl sessionService = new SessionService_Impl();
              SessionServicePort sessionServicePort = sessionService.getSessionServicePort();
              ((SessionServicePort_Stub) sessionServicePort)._setProperty("javax.xml.rpc.service.endpoint.address", endPointBaseURL+"SessionService");
    return sessionServicePort ;
    why the Proxy authentication is failing with the Code Segment #2 and why it is passing in case of Code Segment #3
    The endpoint base URL we are hitting is hosted on Weblogic server 9.0 (which is hosted at client side in US so it is behind our firewall).
    Is some thing more do we need to do in Authenticator class???
    Please help me if any one has worked on proxy server authenticator in java.

    We have a desktop console based Weblogic webservices client application that uses client stubs to establish the connection and communicate with the server where the WSDL was hosted.
    We are facing a problem in authenticating the Proxy user with valid credentials.
    We are using the following code to set the system properties and Authenticator class to authenticate the proxy user.
    //Code Segment #1
    Code:
    System.setProperty("http.proxyHost", proxyHost);System.setProperty("https.proxyHost", proxyHost);
    System.setProperty("weblogic.webservice.transport.http.proxy.host",proxyHost);
    System.setProperty("weblogic.webservice.transport.https.proxy.host",proxyHost);
    System.setProperty("http.proxyPort", proxyPort);
    System.setProperty("https.proxyPort", proxyPort);
    System.setProperty("weblogic.webservice.transport.http.proxy.port",proxyPort);
    System.setProperty("weblogic.webservice.transport.https.proxy.port",proxyPort);
    //System.setProperty("http.proxyType", "basic");
    //System.setProperty("https.proxyType", "basic");
    //System.setProperty("http.proxy.auth.type" ,"ntlm"); //This is not showing any impact
    System.setProperty("http.proxyUser", "bsil\\ashok.kumar");
    System.setProperty("https.proxyUser", "bsil\\ashok.kumar");
    System.setProperty("http.proxyPassword", " xyzddd");
    System.setProperty("https.proxyPassword", "xyzddd");
    Authenticator.setDefault(new MyAuthenticator());
    //Inner class
    public static class MyAuthenticator extends Authenticator {
    protected PasswordAuthentication getPasswordAuthentication() {
    String username = System.getProperty("http.proxyUser");
         String password = System.getProperty("http.proxyPassword");
         return new PasswordAuthentication(username, password.toCharArray());
    We are using following code initialize the stubs (Which internally opens a connection to the given endpoint base URL)
    //Code Segment #2
    Code:
    SessionService_Impl sessionService = new SessionService_Impl(getEndPointURL(SessionServicePort.class));
    port = sessionService.getSessionServicePort();
    return port;
    Using above code it always throws the following exception:
    Code:
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from https://apiclienttest.intralinks.com:443/webservices51/SessionService?WSDL. Please check the URL and make sure that it is a valid XML file [java.io.IOException: Proxy authenticator  failed: java.lang.ClassNotFoundException: ]
    if i replace the above code (Code Segment #2) to as bellow with Code Segment #3 then its working as expected. But we have been told that the Code Segment #2 is required as shwon above for the Weblogic ClientTimeout seconds feature so we cant replace the Code Segment #2 with Code Segment #3 since we don?t want to miss the ClientTimeout seconds feature for the application.
    //Code Segment #3
    Code:
    SessionService_Impl sessionService = new SessionService_Impl();
              SessionServicePort sessionServicePort = sessionService.getSessionServicePort();
              ((SessionServicePort_Stub) sessionServicePort)._setProperty("javax.xml.rpc.service.endpoint.address", endPointBaseURL+"SessionService");
    return sessionServicePort ;
    why the Proxy authentication is failing with the Code Segment #2 and why it is passing in case of Code Segment #3
    The endpoint base URL we are hitting is hosted on Weblogic server 9.0 (which is hosted at client side in US so it is behind our firewall).
    Is some thing more do we need to do in Authenticator class???
    Please help me if any one has worked on proxy server authenticator in java.

  • WLS 7.0 : How to call a webservice from a webservice, both running on a same server?

    Server settings :
    Two webservices running on a server.
    WEB-INF\lib contains the respective XXX_client.jar files.
    One webservice calls another one using service Port and gets the Exception NoClassDef...
    How to resolve?

    It seems that there is no answer to my problem stated below
    "Archana Padhye" <[email protected]> wrote:
    >
    Before putting the stack trace I should supply more information.
    There are two webservices viz. Trigger and Proxy
    Trigger needs the Proxy_client.jar in its classpath at the time of building
    the
    Trigger webservice.
    The server classpath doesn't have this particular jar.
    So the Exception is about not finding the class for the service.
    If that jar is added in the classpath, there is error at server startup
    since
    the method signatures mismatch.
    Having client jar in the classpath is not the way, I assume.
    "manoj cheenath" <[email protected]> wrote:
    Sure, you should be able to do this.
    Can you post the full stack trace?
    "Archana Padhye" <[email protected]> wrote in message =
    news:[email protected]..
    Server settings :=20
    Two webservices running on a server.
    WEB-INF\lib contains the respective XXX_client.jar files.
    One webservice calls another one using service Port and gets the =
    Exception NoClassDef...
    How to resolve?
    So I am trying for dynamic client using WSDL. My webservice is returning a complex
    data type. But the test client, which is a Java class, is giving exception which
    I am unable to dig.
    I attach the client java class and here is the stack trace of the exception
    Exception in thread "main" javax.xml.rpc.JAXRPCException: failed to read wsdl
    fi
    le:weblogic.webservice.tools.wsdlp.WSDLParseException: ERROR[WSDL Parser]:The
    ja
    va Class of an xml name cannot be null:['java:eVisharad.BEMEE.Client.Data']:CLIC
    oncept
    at weblogic.webservice.core.rpc.ServiceFactoryImpl.createService(Service
    FactoryImpl.java:33)
    at WebServiceClient_DII.main(WebServiceClient_DII.java:57)
    [WebServiceClient_DII.java]

  • WebLogic 7.0 SP 1 - Windows and Linux

    Does anyone know of any issues with Windows/Linux interoperating? If I
    run an application on Windows that generated it's stubs off a Linux
    server, it can connect to that linux server just fine. If, however, I
    generate stubs from a Windows server, then try to connect to a Linux
    server running the exact same services, I receive the following
    exception. Any thoughts would be helpful! Thanks!
    -Brasten
    [java] weblogic.webservice.tools.wsdlp.WSDLParseException:
    ERROR[WSDL Parse
    r]:The java Class of an xml name cannot be
    null:['java:language_builtins.util']:
    List
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.assert(WSDLParser.
    java:525)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parsePart(WSDLPars
    er.java:332)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseMessage(WSDLP
    arser.java:286)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseOperation(WSD
    LParser.java:272)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseBinding(WSDLP
    arser.java:222)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parsePort(WSDLPars
    er.java:187)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseService(WSDLP
    arser.java:149)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseDefinition(WS
    DLParser.java:99)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.visit(WSDLParser.j
    ava:83)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:108)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:82)
    [java] at
    weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.j
    ava:67)
    [java] at
    com.starcomsoft.pp.client.system.SystemService.<init>(Unknown
    Source)
    [java] at
    com.starcomsoft.pp.client.system.SecurityManager.login(Securi
    tyManager.java:74)
    [java] at
    com.starcomsoft.pp.client.LoginFrame$1.actionPerformed(LoginF
    rame.java:101)
    [java] at
    com.starcomsoft.pp.client.swing.ThreadActionListener$1.run(Th
    readActionListener.java:24)
    [java] at
    java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
    178)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
    [java] at
    com.starcomsoft.pp.client.swing.StarEventQueue.dispatchEvent(
    StarEventQueue.java:24)
    [java] at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
    spatchThread.java:197)
    [java] at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
    atchThread.java:150)
    [java] at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:144)
    [java] at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:136)
    [java] at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Dec 17, 2003 4:40:48 PM
    com.starcomsoft.pp.client.system.SecurityMan
    ager handleException
    [java] INFO: ERROR[WSDL Parser]:The java Class of an xml name
    cannot be nul
    l:['java:language_builtins.util']:List

    Hello,
    This should just work; however make sure both platforms are supported
    [1] and are running the exact same version (service packs and patches)
    of the software. Also, are you using the same build environment (server
    classpath)? Have you done a comparison on the WSDLs? Are they really
    the same?
    Thanks,
    Bruce
    [1]
    http://e-docs.bea.com/wls/certifications/index.html
    Brasten Sager wrote:
    >
    Does anyone know of any issues with Windows/Linux interoperating? If I
    run an application on Windows that generated it's stubs off a Linux
    server, it can connect to that linux server just fine. If, however, I
    generate stubs from a Windows server, then try to connect to a Linux
    server running the exact same services, I receive the following
    exception. Any thoughts would be helpful! Thanks!
    -Brasten
    [java] weblogic.webservice.tools.wsdlp.WSDLParseException:
    ERROR[WSDL Parse
    r]:The java Class of an xml name cannot be
    null:['java:language_builtins.util']:
    List
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.assert(WSDLParser.
    java:525)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parsePart(WSDLPars
    er.java:332)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseMessage(WSDLP
    arser.java:286)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseOperation(WSD
    LParser.java:272)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseBinding(WSDLP
    arser.java:222)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parsePort(WSDLPars
    er.java:187)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseService(WSDLP
    arser.java:149)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.parseDefinition(WS
    DLParser.java:99)
    [java] at
    weblogic.webservice.tools.wsdlp.WSDLParser.visit(WSDLParser.j
    ava:83)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:108)
    [java] at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServi
    ceFactory.java:82)
    [java] at
    weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.j
    ava:67)
    [java] at
    com.starcomsoft.pp.client.system.SystemService.<init>(Unknown
    Source)
    [java] at
    com.starcomsoft.pp.client.system.SecurityManager.login(Securi
    tyManager.java:74)
    [java] at
    com.starcomsoft.pp.client.LoginFrame$1.actionPerformed(LoginF
    rame.java:101)
    [java] at
    com.starcomsoft.pp.client.swing.ThreadActionListener$1.run(Th
    readActionListener.java:24)
    [java] at
    java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
    178)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
    [java] at
    com.starcomsoft.pp.client.swing.StarEventQueue.dispatchEvent(
    StarEventQueue.java:24)
    [java] at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
    spatchThread.java:197)
    [java] at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
    atchThread.java:150)
    [java] at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:144)
    [java] at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:136)
    [java] at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Dec 17, 2003 4:40:48 PM
    com.starcomsoft.pp.client.system.SecurityMan
    ager handleException
    [java] INFO: ERROR[WSDL Parser]:The java Class of an xml name
    cannot be nul
    l:['java:language_builtins.util']:List

  • Eclipse:package weblogic.webservice.tools.wsdlp does not exist

    Hi, everyone! I got an error While I was Compiling the Entire MedRec Project application on Eclipse3.1 with ant. However, when I used setEnv.cmd and ant command(), it's all Ok! The error message shows as below:
    banner:
    [echo] #### S T A R T C O M M O N W E B A P P ####
    [mkdir] Created dir: C:\medrec_tutorial\build\tmp
    build:
    [javac] Compiling 23 source files to C:\medrec_tutorial\build\tmp
    [javac] C:\medrec_tutorial\src\common\web\com\bea\medrec\utils\MedRecWebAppUtils.java:319: package weblogic.webservice.tools.wsdlp does not exist
    [javac] if (th instanceof weblogic.webservice.tools.wsdlp.WSDLParseException) {
    [javac] ^
    [javac] 1 error
    BUILD FAILED
    file:C:/medrec_tutorial/src/common/web/build.xml:29: Compile failed; see the compiler error output for details.

    Bruce Stephens <[email protected]> wrote:
    Hello,
    This looks like a bug that has already been reported and resolved. If
    you could provide your test case to our super support group [1], and
    reference CR127344, they should be able to sort out this issue.
    Thanks,Hi ,
    I also got the same error.If u find the solution please email me
    isuru [email protected]
    Thanx
    Bruce
    [1]
    http://support.bea.com
    [email protected]
    Franck wrote:
    Hello,
    when I try to build my webservice with a stateless bean and a complexdata type (byte[]), by using ANT and SERVICEGEN.
    I have the following exception (with WL 8.1, but it works witout problemwith WL 7.0.4).
    *** ERROR:
    -package weblogic.xml.schema.binding does not exist
    [servicegen] extends weblogic.xml.schema.binding.BeanCodecBase
    What has changed between the both version.
    can somebody help me
    Tank you
    Regards

  • Running USERCREATE Target Class = com.jnk.mdm.userProv.MDMUserOps weblogic.

    Hi ,
    The above mentioned error getting while creating user to the MDM application .We have JAVA code calling the function to create the user.The error throwing that it is not able to call the services which is "weblogic.webservice.wsdl.WSDLParseException: unable to find service "CM_IDAM_USERService" .
    Kindly give some solutions regarding this error
    "

    Hi ,
    The above mentioned error getting while creating user to the MDM application .We have JAVA code calling the function to create the user.The error throwing that it is not able to call the services which is "weblogic.webservice.wsdl.WSDLParseException: unable to find service "CM_IDAM_USERService" .
    Kindly give some solutions regarding this error
    "

  • Clientgen utility is failing

    I am running clientgen for consuming webservice http://www.richsolutions.com/RichPayments/RichCardValidator.asmx.
    But it's giving this error.
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    http://www.richsolutions.com/RichPayments/RichCardValidator.asmx?WSDL. Please
    check the URL and make sure that it is a valid XML file [java.net.SocketException:
    Network is unreachable: connect]
    i can able to open this WSDL from IE, so what should i do . i am behind the PROXY
    server, is there any option in clientgen where i can specify proxy server user
    name and password.

    Hello,
    Try using the username and password in the URL, like this:
    http://username:password@hostname:port/webservice.blabla
    or save the WSDL to a local file and use clientgen on that, for example:
    file://webservice.blabla.wsdl
    HTHs,
    Bruce
    akash wrote:
    >
    I am running clientgen for consuming webservice http://www.richsolutions.com/RichPayments/RichCardValidator.asmx.
    But it's giving this error.
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    http://www.richsolutions.com/RichPayments/RichCardValidator.asmx?WSDL. Please
    check the URL and make sure that it is a valid XML file [java.net.SocketException:
    Network is unreachable: connect]
    i can able to open this WSDL from IE, so what should i do . i am behind the PROXY
    server, is there any option in clientgen where i can specify proxy server user
    name and password.

  • Clientgen issues wihile generating clientjar from wsdl

    Hi,
    Iam trying to generate client stubs from the wsdl file using ant clientgen
    Iam getting the following error while building.
    <weblogic.webservice.tools.build.WSBuildException: unable to find any soap port:><service name="SomeWebServic
    e">
    <port name="SomeWebServicePort"
    binding="tns:PSIVzWebServicePort">
    <soap:address location=" http://localhost:7001/somewebservice/SomeWebService">
    </soap:address>
    </port>
    </service> - with nested exception:
    [weblogic.webservice.tools.wsdlp.WSDLParseException: unable to find any soap por
    t:<service name="SomeWebServic
    e">
    <port name="SomeWebServicePort"
    binding="tns:PSIVzWebServicePort">
    <soap:address location=" http://localhost:7001/somewebservice/SomeWebService">
    </soap:address>
    </port>
    </service>
    Does anybodu know what could be the reason. The service has user defined data types.
    Appriciated if anybody can send me the reply with the solution
    Regards
    Manikyala                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    This issue was resolved by compiling with the new wsdl. The old one has some formatiing issues.
    Regards
    Manikyala

  • Unable to access URL for a webservice in weblogic integration server

    Hi
    I have an application in which i deployed a webservice , however when i am trying to access it , it throws the exception weblogic.webservice.tools.wsdlp.WSDLParseException . "failed to retrieve WSDL from URL"

    Hi
    The error you typed is not enough. Can you please give us more information about error in log. (wls and application log)

Maybe you are looking for

  • ITUNES encountering problem and needs to close.....

    I have tried to install Itunes on my son's laptop today, I keep getting message saing it has encountered a problem ande needs to close, we are sorry for the inconvenience!!! I have not been able to open itunes at all. Have tried uninstalling it and r

  • Getting clean mesh overlay on 3d graph

    First let me say that the new 3d stuff is much better than the old cw graph stuff. One problem I'm having however is the mesh overlay on the 3d graph control when I turn on overlay lines. When I use the 3d surface that comes with the ni helper vi, it

  • " LogicPro has detected a possible conflict error "

    Hi All, I know this has been flagged before as a known issue but I cant see a specific answer based on my set up. Error message : " LogicPro has detected a possible conflict between one or more third party midi or audio drivers " Background : I have

  • HT1338 after recent update, I can not open Safari and Mail. Please help this out!

    error message:" The last time you opened Safari, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?" Same error message from mail. Thanks!

  • Interactive Report Subscriptions

    Apex Version: 4.1.1.00.23 Internet Explorer 7 Oracle Database Version 10.2 Server Linux I have not seen a viable solution to this issue of subscriptions being wiped out when exporting from a development environment to a production environment. I unde