Webservices client exception

Our application has servlets talking to webservices. To communicate we place webservices client in WEB-INF directory in war files. The problem we are facing is that when we try to access one of our webservices , It throws following exception
java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLo
ader.java:476)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.
java:181)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClas
sLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.
java:223)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClas
sLoader.java:41)
at weblogic.xml.schema.binding.ClassLoadingUtils.loadNonArrayClass(ClassLoading
Utils.java:68)
at weblogic.xml.schema.binding.ClassLoadingUtils.loadClass(ClassLoadingUtils.ja
va:43)
at weblogic.xml.schema.binding.internal.TypeMappingBase.loadClass(TypeMappingBa
se.java:627)
at weblogic.xml.schema.binding.internal.TypeMappingBase.newInstance(TypeMapping
Base.java:611)
at weblogic.xml.schema.binding.internal.TypeMappingBase.addTypeMapping(TypeMapp
ingBase.java:587)
at weblogic.xml.schema.binding.internal.TypeMappingBase.readXML(TypeMappingBase
.java:771)
at weblogic.xml.schema.binding.internal.TypeMappingBase.readXML(TypeMappingBase
.java:550)
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegistry.jav
a:73)
at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:78)
at com.telverse.soap.admin.user.provisioning.process.Provisioning_Impl.<init>(Provisioning_Impl.java:22)
at com.telverse.manager.ProvisioningManager.findFaceplateButtonsByUID(Provision
ingManager.java:109)
at com.telverse.actions.PhoneAction.displayPage(PhoneAction.java:434)
The code which tries to access is as following:
1. Provisioning_Impl prov = new Provisioning_Impl(url+"/provisioning/provisioning?WSDL");
2. ProvisioningPort provPort = prov.getprovisioningPort();
3. provPort.CALLFUNCTION();
The above exception is thrown at Line no1.
Does anybody know the solution of this error?

I am not sure what is causing this error. Are you able to run this client outside the web app as a standalone client?
http://manojc.com

Similar Messages

  • Webservices Client, Exceptions and Log4J

    Hi all.
    Let me explain the setup of our project before asking for a solution on my problem!
    We are implementing a project with 2 teams. One team handles everything that has to deal with the front-end and uses a wsdl to generate a webservices client side that is trigger for most of the requests.
    Another team creates the complete backend including the webservices server side.
    Thus, we (as team one) do not interfere nor guide team two in how they implement things.
    Now here's the problem.
    Our side uses Log4J to log all the exceptions. There side probably doesn't (we don't know). If however an exception is triggered from within a WebService call, it is not send to Log4J but to the standard System.out !
    Is there any way to change this? Because the only thing we do is generate a client from the WSDL and nothing else! We do however catch any exception and store a message in our log files, but before the catch happens, our System.out has already added the WSexcpetion :(
    Is this clear in any way?
    Anyone?
    Thanks in advance,
    Kind Regards,
    Les.

    A web service client written on WLS [1], should work with
    service hosted by any vendor, including .Net, AXIS, Sun RI,
    etc.
    The client code you write in WLS which is based on JAX-RPC [1]
    should compile as is on other vendor JAX-RPC implementation.
    So, if you are looking for client code portability then JAX-RPC
    is your best bet.
    Regards,
    -manoj
    [1] http://edocs.bea.com/wls/docs81/webserv/client.html#1069703
    [2] http://java.sun.com/xml/jaxrpc/
    "hanks" <[email protected]> wrote in message
    news:3ea3392d$[email protected]..
    >
    I have tried webservices with apache and weblogic7.0 but i realised thatboth was
    to be done very specific to servers.I may be wrong. I am trying tounderstand
    how can i write a sercive for one server and access using another server.
    When i write webservice in java tomcat server, I create a service andregister
    as urn name. For a client to access this service, code kind of looks ejbcode
    where we lookup the service and call its method. Instead of looking upJNDI name
    we lookup urn and access method. Mind you this client uses ORG packagesspecific
    to tomcat.
    Now when we write a websercice with weblogic we have to create a ear whichhas
    webserverice and write a client to access that service, which lookscompletely
    diffrent from one that we wrote for tomcat. I am wondering how can i usethe same
    client to access both the services. It rarely happens that both side wouldbe
    using same servers.
    I am sure that there is some mistake i m doing cos webservices is supposeto be
    even language independent.
    Can you guys help me in resolving this, more questions later ;-)

  • JCAPS webservice client exception

    Hi,
    I have a project in JCAPS which uses an external web service. The web service returns the following object:
    <xsd:complexType name="Parameter">
         <xsd:sequence>
              <xsd:element name="codigo1" nillable="true" type="xsd:string"/>
              <xsd:element name="codigo2" nillable="true" type="xsd:string"/>
              <xsd:element name="codigoParametro" nillable="true" type="xsd:string"/>
              <xsd:element name="data1" nillable="true" type="xsd:dateTime"/>
              <xsd:element name="data2" nillable="true" type="xsd:dateTime"/>
              <xsd:element name="dataInicioAplicacao" nillable="true" type="xsd:dateTime"/>
              <xsd:element name="designacao" nillable="true" type="xsd:string"/>
              <xsd:element name="numerico1" nillable="true" type="xsd:float"/>
              <xsd:element name="numerico2" nillable="true" type="xsd:float"/>
              <xsd:element name="texto" nillable="true" type="xsd:string"/>
              <xsd:element name="tipo" nillable="true" type="xsd:string"/>
         </xsd:sequence>
    </xsd:complexType>When I use the web service client in JCAPS, the object returned is:
            <result>
                <codigo1 xsi:nil="1"/>
                <codigo2 xsi:nil="1"/>
                <codigoParametro>ABC</codigoParametro>
                <data1 xsi:nil="1"/>
                <data2 xsi:nil="1"/>
                <dataInicioAplicacao>2006-02-01T00:00:00.000+00:00</dataInicioAplicacao>
                <designacao>ABC</designacao>
                <numerico1>123</numerico1>
                <numerico2 xsi:nil="1"/>
                <texto xsi:nil="1"/>
                <tipo>N</tipo>
             </result>This should work without any problems (I also tested using a java client), but JCAPS throws an exception because "data1", "data2" and "numerico2" are null. Shouldn't this be interpreted by JCAPS perfectly?
    The exception thrown is the one below:
    [#|2008-02-19T10:52:06.531+0000|WARNING|IS5.1.3|com.stc.wsclient.runtime.ejb.impl.WSClientService|_ThreadID=26; ThreadName=Worker: 10;|Generating CMFault: <?xml version="1.0" encoding="UTF-8"?><Fault xmlns="http://seebeyond/com/xsddefined/FaultMessages"><faultcode xmlns="">CLIENT_ERROR</faultcode><faultstring xmlns="">com.stc.otd.runtime.UnmarshalException: error: Date value is of wrong type:  error: Date value is of wrong type:  error: Invalid float value </faultstring><faultactor xmlns="">wsclient</faultactor><detail xmlns="">com.stc.otd.runtime.UnmarshalException: error: Date value is of wrong type:  error: Date value is of wrong type:  error: Invalid float value  and the associated fault container is not available</detail></Fault>|
    Edited by: gmsa on Feb 19, 2008 4:32 AM
    Edited by: gmsa on Feb 19, 2008 4:33 AM

    I am having the same problem, did you get a solution to this.
    Thanks.

  • WebService Client - how to enable HTTP Compression

    Hi
    I have written a simple WebService Client. The WebService expects that the WebService clients enable HTTP compression. This is the exact text from the docs:-
    ""1. Client should be HTTP Compression enabled
    HTTP Compression had been made mandatory for API�s. Thus API�s client should
    include �Accept-Encoding: zip� header as part of request and should be able to
    handle compressed data. Please note that system will send an error message if client
    are not http compression enabled saying client should be compression enabled."
    I do not know how to enable HTTP compression in the WebService Client. The method called is "GetInstantaneousFlowData". It accepts no arguments and returns xsd:datetime.
    The wsdl can be found at:-
    http://energywatch.natgrid.co.uk/EDP-PublicUI/PublicPI/InstantaneousFlowWebService.asmx?WSDL
    Can someone please help :-
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.namespace.QName;
    import java.util.Calendar;
    public class TestNGPubTime4 {
    public static void main(String[] args) throws Exception {
         // Setup the global JAX-RPC service factory
         System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    // create service factory
    ServiceFactory factory = ServiceFactory.newInstance();
    // define qnames
    String targetNamespace = "http://www.NationalGrid.com/EDP/BusinessEntities/Public/";
    QName serviceName = new QName(targetNamespace, "InstantaneousFlowWebService");
    QName portName = new QName(targetNamespace, "InstantaneousFlowWebServiceSoap");
    QName operationName = new QName("http://www.NationalGrid.com/EDP/UI/GetInstantaneousFlowData",
         "GetLatestPublicationTime");
    // create service
    Service service = factory.createService(serviceName);
    // create call
    Call call = service.createCall();
    // set port and operation name
    call.setPortTypeName(portName);
    call.setOperationName(operationName); // add parameters
         call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
         call.setProperty(Call.SOAPACTION_URI_PROPERTY, "http://www.NationalGrid.com/EDP/UI/GetInstantaneousFlowData");
    //     call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, "http://schemas.xmlsoap.org/soap/encoding/");
    call.setReturnType(new QName( "http://www.w3.org/2001/XMLSchema","datetime") );
    // set end point address : soap address location
    call.setTargetEndpointAddress("http://energywatch.natgrid.co.uk/EDP-PublicUI/PublicPI/InstantaneousFlowWebService.asmx");
    // invoke the remote web service
    Calendar result = (Calendar) call.invoke(new Object[] {});
    System.out.println("result=" + result);
    }

    Rishika,
    Thanks for your reply.
    Could I get clariffication on some more thing?
    I am using Axis 1.4 version. And I am able to implement the gzip while doing the following steps.
    1) Change the pivote value to CommonsHTTpSender.
    <transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender"/>
    2) public class RetreiveReservationsSOAPBindingStubLocal extends RetreiveReservationsSOAPBindingStub.
    I Override the method to support GZIP.
    org.apache.axis.client.Call _call = super.createCall();
    call.setOperation(operations[0]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("retreiveReservations");
    _call.setEncodingStyle(null);
    call.setProperty(org.apache.axis.client.Call.SENDTYPE_ATTR, Boolean.FALSE);
    call.setProperty(org.apache.axis.AxisEngine.PROPDOMULTIREFS, Boolean.FALSE);
    call.setProperty(HTTPConstants.MCACCEPT_GZIP, Boolean.TRUE);
    call.setProperty(HTTPConstants.MCGZIP_REQUEST, Boolean.TRUE);
    call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11CONSTANTS);
    _call.setOperationName(new javax.xml.namespace.QName("", "retreiveReservations"));
    super.setRequestHeaders(_call);
    super.setAttachments(_call);
    Object resp = call.invoke(new Object[] {retreiveReservationsRequest});
    I am able to send and receive the request and response in gzip encoded format.
    Now my clarrification is,
    Is it possible to set the piote value to CommonsHTTPSender for the transport http through my code?
    How could I set the values from code?
    Reason is, I don't want to manually edit the axis 1.4's client-config.wsdd
    Since this is very critical thing, please please help me.
    Thanks in advance.
    Regards,
    Nishad Ponery

  • Netbeans 5.5 WebService Client - How do I pass a parameter to the service?

    I'm using Netbeans 5.5 and have generated a webservice client (JAX-WS 2.0) off of the existing WSDL. The webservice requires me to pass it some information. Per the generated code, it is expecting an EncryptedData object. The problem is, I have no idea what the content of this data object should be as it pertains to an anonymous complex type. The code generated for this class is listed below. Any ideas? By the way, I know what SOAP should be generated... I just don't know how to stick the soap information into this EncryptedData object. Thanks!
    * <p>Java class for anonymous complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType>
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <any/>
    * </sequence>
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
    "content"
    public static class EncryptedData {
    @XmlMixed
    @XmlAnyElement(lax = true)
    protected List<Object> content;
    * Gets the value of the content property.
    * <p>
    * This accessor method returns a reference to the live list,
    * not a snapshot. Therefore any modification you make to the
    * returned list will be present inside the JAXB object.
    * This is why there is not a <CODE>set</CODE> method for the content property.
    * <p>
    * For example, to add a new item, do as follows:
    * <pre>
    * getContent().add(newItem);
    * </pre>
    * <p>
    * Objects of the following type(s) are allowed in the list
    * {@link Object }
    * {@link String }
    public List<Object> getContent() {
    if (content == null) {
    content = new ArrayList<Object>();
    return this.content;
    Message was edited by:
    Tosa_Developer

    hello,
    I have done exactly as you have mentioned but I am facing prob passing String or XML data in the newItem variable:
    If I run the below code in jsp --->
    EncryptedData eD=new EncryptedData ();
    String newItem="test";
    eD.getContent().add(newItem);
    port.webMethod(eD);
    I encouter the following error at runtime:
    javax.xml.bind.MarshalException - with linked exception: [com.sun.istack.SAXException2: unable to marshal type "java.lang.String" as an element because it is missing an @XmlRootElement annotation]
    Pls help me pass either XML or String value to the webservice inside this encrpteddata.
    Thanx 4 ton 4 ur time and help.

  • Webservice client in jsp

    hey, im making a webservice client (implemented in jsp for a course), ive made a simple one in straight java and it works fine, but when made the necessary changes to make it a jsp page, i keep gettting an error when the page is displayed
    org.apache.jasper.JasperException: javax/mail/internet/MimeMultipart
    javax.servlet.ServletException: javax/mail/internet/MimeMultipart
    here is my jsp code, and below is the original client i wrote that works...
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>Uvic Best Quote Travel</TITLE>
    <META NAME="author" CONTENT="[email protected]">
    <META NAME="keywords" CONTENT="...">
    <META NAME="description" CONTENT="...">
    <LINK REL=STYLESHEET
    HREF="Site-Styles.css"
    TYPE="text/css">
    </HEAD>
    <BODY>
    <%@ include file="./top.htm" %>
    <%@ page import="javax.xml.rpc.Stub,uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.*"%>
    <%@ page import="java.util.Calendar" %>
    <%
              try{
              uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.AirFareQuote outQuotes[];     
              uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.AirFareQuoteRequest in0= new uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.AirFareQuoteRequest();
              Calendar outwardDate=Calendar.getInstance();
              outwardDate.set(2003, 11, 22, 13,04,34);
              Calendar returnDate = Calendar.getInstance();
              returnDate.set(2003, 11, 29, 13, 04, 34);
              String originAirport = "yvr";
              String destinationAirport = "lax";
              in0.setOutwardDate(outwardDate);
              in0.setReturnDate(returnDate);
              in0.setOriginAirport(originAirport);
              in0.setDestinationAirport(destinationAirport);
              SBGGetAirFareQuoteService afs = new SBGGetAirFareQuoteServiceLocator();
              SBGGetAirFareQuote af = afs.getSBGGetAirFareQuote();
              outQuotes=af.getAirFareQuote(in0);
              int i=0;
              while(i<outQuotes.length){
                   System.out.println("quote " + i + "returned: " + outQuotes.getAirlineName() +outQuotes[i].getFare());
                   i++;
              }catch(Exception e){
              System.err.println("Execution failed. Exception: " + e);
         %>
    <!-- Part specific to this page ... -->
    </BODY>
    </HTML>
    now the .java original client code...
    package uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes;
    import java.util.Calendar;
    public class AirFareQuoteClient{
         public static void main(String[] args){
              try{
              uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.AirFareQuote outQuotes[];     
              System.out.println("1");
              uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.AirFareQuoteRequest in0= new uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.AirFareQuoteRequest();
              Calendar outwardDate=Calendar.getInstance();
              System.out.println("2");
              outwardDate.set(2003, 11, 22, 13,04,34);
              System.out.println("3");
              Calendar returnDate = Calendar.getInstance();
              returnDate.set(2003, 11, 29, 13, 04, 34);
              System.out.println("4");
              String originAirport = "yvr";
              String destinationAirport = "lax";
              System.out.println("5");
              in0.setOutwardDate(outwardDate);
              in0.setReturnDate(returnDate);
              in0.setOriginAirport(originAirport);
              in0.setDestinationAirport(destinationAirport);
              System.out.println("6");
              SBGGetAirFareQuoteService afs = new SBGGetAirFareQuoteServiceLocator();
              System.out.println("7");
                   SBGGetAirFareQuote af = afs.getSBGGetAirFareQuote();
              System.out.println("8");
                   outQuotes=af.getAirFareQuote( in0);
              int i=0;
              while(i<outQuotes.length){
                   System.out.println("quote " + i + "returned: " + outQuotes[i].getAirlineName() +outQuotes[i].getFare());
                   i++;
              }catch(Exception e){
              System.err.println("Execution failed. Exception: " + e);
    thanks
    casey

    I know that there are tool that can do this conversion try google

  • Problem running ClientGen  generated webservice client

    I'm using Workshop for Weblogic 10.3 and I'm trying to generate a webservice client. When I generate it with ClientGen and I try to use it I get the following error:
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/j2ee/descriptor/ServiceRefHandlerBean
    at weblogic.wsee.jaxrpc.HandlerRegistryImpl.<init>(HandlerRegistryImpl.java:32)
    at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:88)
    at com_service_osadia_interface.wovenware.SERVICE_OSADIA_Impl.<init>(Unknown Source)
    at com_service_osadia_interface.wovenware.SERVICE_OSADIA_Impl.<init>(Unknown Source)
    at testClient.main(testClient.java:18)
    If I add the com.bea.core.descriptor.j2ee_1.1.0.0.jar to the libraries then I get the following error:
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/sun/xml/ws/util/JAXWSUtils
    at weblogic.wsee.util.is.InputSourceUtil.loadURL(InputSourceUtil.java:44)
    at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:118)
    at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:65)
    at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)
    at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:403)
    at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:389)
    at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:79)
    at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:66)
    at weblogic.wsee.jaxrpc.ServiceImpl.loadWsdlDefinition(ServiceImpl.java:476)
    at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:119)
    at com_service_osadia_interface.wovenware.SERVICE_OSADIA_Impl.<init>(Unknown Source)
    at com_service_osadia_interface.wovenware.SERVICE_OSADIA_Impl.<init>(Unknown Source)
    at testClient.main(testClient.java:18)
    How can I fix it?

    I didn't see a mistake, but my sample works fine. Are you trying to execute the client from Workshop / Eclipse? If that is the case, then I believe it's a matter of just using the appropriate client libraries, which I believe is your issue even though the error is misleading. You should definitely try using a Java Project for a stand-alone web service invocation. According to this link: http://edocs.bea.com/wls/docs103/webserv_rpc/client.html#wp229351 you simply need 1 jar file named wseeclient.jar on your path, which is archived inside <WL_INSTALL>\wlserver_10.3\server\lib\wseeclient.zip
    Once I set up a new Java Project with wseeclient.jar on my path and my clientgen generated classes, I could invoke the sample.
    Also, here is what the successful invocation from the command line using (ant build, ant deploy, ant run):
    C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple>ant build
    Buildfile: build.xml
    clean:
    [delete] Deleting directory C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar
    [delete] Deleting directory C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
    server:
    [mkdir] Created dir: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar
    [jwsc] JWS: processing module /SimpleImpl
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module /SimpleImpl
    [jwsc] JWS: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple\SimpleImpl.java Validated.
    [jwsc] Since compiler setting isn't classic or modern,ignoring fork setting.
    [jwsc] Compiling 2 source files to C:\temp\_x58sqp
    [jwsc] Since compiler setting isn't classic or modern,ignoring fork setting.
    [jwsc] Copying 1 file to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\SimpleImpl\WEB-INF
    [jwsc] Copying 22 files to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\SimpleImpl\WEB-INF
    [jwsc] Copying 2 files to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\SimpleImpl\WEB-INF\classes
    [jwsc] Copying 1 file to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\SimpleImpl
    [jwsc] [EarFile] Application File : C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\META-INF\application.xml
    [AntUtil.deleteDir] Deleting directory C:\temp\_x58sqp
    client:
    [mkdir] Created dir: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
    [clientgen] Ignoring JAX-WS options - building a JAX-RPC client
    [clientgen]
    [clientgen] *********** jax-rpc clientgen attribute settings ***************
    [clientgen]
    [clientgen] wsdlURI: file:/C:/Oracle/wls10.3/wlserver_10.3/samples/server/examples/build/webservicesJwsSimpleEar/SimpleImpl/WEB-INF/SimpleImplService.wsdl
    [clientgen] serviceName : null
    [clientgen] packageName : examples.webservices.jws_basic.simple.client
    [clientgen] destDir : C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
    [clientgen] handlerChainFile : null
    [clientgen] generatePolicyMethods : false
    [clientgen] autoDetectWrapped : true
    [clientgen] jaxRPCWrappedArrayStyle : true
    [clientgen] generateAsyncMethods : true
    [clientgen]
    [clientgen] *********** jax-rpc clientgen attribute settings end ***************
    [clientgen] Package name is examples.webservices.jws_basic.simple.client
    [clientgen] DestDir is C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
    [clientgen] class name is Simple_Stub
    [clientgen] service class name is SimpleImplService
    [clientgen] Porttype name is Simple
    [clientgen] service impl name is SimpleImplService_Impl
    [javac] Compiling 4 source files
    [javac] Note: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client\examples\webservices\jws_basic\simple\client\Simple_Stub.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Compiling 1 source file to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
    [jar] Updating jar: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\examplesWebApp\WEB-INF\lib\jws_basic_simple.jar
    [copy] Copying 1 file to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\examplesWebApp
    build:
    BUILD SUCCESSFUL
    Total time: 22 seconds
    C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple>ant deploy
    Buildfile: build.xml
    deploy:
    [wldeploy] weblogic.Deployer -verbose -noexit -source C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar -targets examplesServer -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
    [wldeploy] weblogic.Deployer invoked with options: -verbose -noexit -source C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar -targets examplesServer -adminurl t3://localhost:7001 -user weblogic -deploy
    [wldeploy] <Dec 23, 2008 2:48:19 PM CST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, webservicesJwsSimpleEar [archive: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJws
    SimpleEar], to examplesServer .>
    [wldeploy] Task 0 initiated: [Deployer:149026]deploy application webservicesJwsSimpleEar on examplesServer.
    [wldeploy] Task 0 completed: [Deployer:149026]deploy application webservicesJwsSimpleEar on examplesServer.
    [wldeploy] Target state: deploy completed on Server examplesServer
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + webservicesJwsSimpleEar examplesServer
    BUILD SUCCESSFUL
    Total time: 9 seconds
    C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple>ant run
    Buildfile: build.xml
    run:
    [java] Got result: Here is the message: 'Hi there!'
    BUILD SUCCESSFUL
    Total time: 7 seconds
    C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple>

  • Handling cookies in a WebService Client

    Hi,
    I've written the following code for a simple webservice client and everything work fine.
    Additionally, I have to read a Cookie from the HTTPHeader of the first response and put it into the
    HTTPHeader of the next requests. What is the best practice to implement
    this task?
    My service is a Weblogic WebService on Weblogic 8.1 sp5.
    Thanks in advance
    Wahid
    public class ClientTest {
    public static void main(String[] args) throws Exception {
    System.setProperty("javax.xml.rpc.ServiceFactory",
    "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    ServiceFactory factory = ServiceFactory.newInstance();
    String targetNamespace = "http://www.mycomp.de/namespace";
    QName serviceName = new QName(targetNamespace, "MyService");
    QName operationName = new QName(targetNamespace, "testConnection");
    Service service = factory.createService(serviceName);
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING);
    mapping.register(VerbindungstestVO.class,
    new QName(targetNamespace, "TestConnectionVO"),
    new TestConnectionCodec(),
    new TestConnectionCodec());
    Call call = service.createCall();
    call.setOperationName(operationName);
    call.addParameter("request", new QName(targetNamespace, "TestConnectionVO"), ParameterMode.IN);
    call.setReturnType(new QName(targetNamespace, "TestConnectionVO"));
    call.setTargetEndpointAddress("http://localhost:7001/my-ws/MyService");
    TestConnectionVO vo = new TestConnectionVO();
    vo.setPing("3");
    TestConnectionVO res = (TestConnectionVO) call.invoke(new Object[] {vo});
              System.out.println(res);
    }

    quote:
    Originally posted by:
    MartinW-2006
    Any suggestions? AM I right in presuming this is a bug?
    Start by ensuring that your function actually runs when you
    invoke it. Does anything get returned to your calling template?

  • 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.

  • Problem invoking from a BPEL process webservice client

    I have a BPEL Synchronous process that invokes a webservice deployed on Tomcat. The process executes without any exception when I run it from the BPEL Console. Since I want to execute the BPEL process as a command line operation, I created a BPEL Process Webservice client from scratch using Axis as described in Tutorial7 - InvokingBPELProcesses.pdf. However when I try to execute the client, I get the following error:
    AxisFault
    faultCode: {http://xml.apache.org/axis/}Server.generalException
    faultSubcode:
    faultString: Dispatcher send error.
    An error occurred while sending a batch message to the dispatch queue. The exception is: Failed to create &quot;java:comp/env/ejb/local/DispatcherLocalBean&quot; bean; exception reported is: &quot;javax.naming.NameNotFoundException: ejb/local/DispatcherLocalBean not found in startup_war&#xd;
         at com.oracle.naming.J2EEContext.getSubContext(J2EEContext.java:93)&#xd;
         at com.oracle.naming.J2EEContext.lookup(J2EEContext.java:76)&#xd;
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:177)&#xd;
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:119)&#xd;
         at javax.naming.InitialContext.lookup(InitialContext.java:347)&#xd;
         at com.collaxa.cube.engine.util.CubeEngineBeanRegistry.lookupDispatcherLocalBean(CubeEngineBeanRegistry.java:165)&#xd;
         at com.collaxa.cube.engine.util.CubeEngineBeanCache.getDispatcherLocalBean(CubeEngineBeanCache.java:91)&#xd;
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendLocal(DispatchHelper.java:229)&#xd;
         at com.collaxa.cube.engine.dispatch.Dispatcher.receive(Dispatcher.java:430)&#xd;
         at com.collaxa.cube.engine.dispatch.Dispatcher.receive(Dispatcher.java:357)&#xd;
         at com.collaxa.cube.engine.dispatch.Dispatcher.update(Dispatcher.java:253)&#xd;
         at com.collaxa.cube.engine.core.event.DomainObserverRegistry.notify(DomainObserverRegistry.java:124)&#xd;
         at com.collaxa.cube.engine.core.event.DomainObserverRegistry.notify(DomainObserverRegistry.java:66)&#xd;
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.notify(CubeProcessHolder.java:727)&#xd;
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.addProcess(CubeProcessHolder.java:697)&#xd;
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:632)&#xd;
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:605)&#xd;
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:592)&#xd;
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.getProcess(CubeProcessHolder.java:494)&#xd;
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.getProcess(CubeProcessHolder.java:429)&#xd;
         at com.collaxa.cube.engine.CubeEngine.lookupProcess(CubeEngine.java:840)&#xd;
         at com.collaxa.cube.ws.wsdl.WSDLManager.getProcess(WSDLManager.java:437)&#xd;
         at com.collaxa.cube.ws.wsdl.WSDLManager.getPartnerWSDL(WSDLManager.java:300)&#xd;
         at com.collaxa.cube.ws.soap.providers.CXSOAPProvider.processBPELMessage(CXSOAPProvider.java:175)&#xd;
         at com.collaxa.cube.ws.soap.providers.CXSOAPProvider.invoke(CXSOAPProvider.java:111)&#xd;
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)&#xd;
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)&#xd;
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)&#xd;
         at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:437)&#xd;
         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:316)&#xd;
         at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:701)&#xd;
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)&#xd;
         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)&#xd;
         at com.collaxa.cube.fe.CollaxaServlet.service(CollaxaServlet.java:117)&#xd;
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)&#xd;
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)&#xd;
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)&#xd;
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)&#xd;
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)&#xd;
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)&#xd;
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)&#xd;
         at java.lang.Thread.run(Thread.java:534)&#xd;
    &quot;.
    Can someone please tell me what is it I am doing wrong?

    I was using
    Oracle BPEL Server version 2.0
    Build: 2004.06.17.14.40
    Build time: Thu Jun 17 14:40:58 PDT 2004
    However, I downloaded the latest version of the Process Manager and did not face the same problem.

  • I am Getting the classcast error while using the webservice client

    Hi ,
    Iam getting classcast exception while trying to get the connection Object throurh the webservice client.
    The details are:
    the ra.xml
    &lt;resourceadapter-version&gt;1.6&lt;/resourceadapter-version&gt;
    &lt;resourceadapter&gt;
    &lt;resourceadapter-class&gt;oracle.apps.contactCenter.mct.model.connector.CCAResAdapterImpl&lt;/resourceadapter-class&gt;
    &lt;outbound-resourceadapter&gt;
    &lt;connection-definition&gt;
    &lt;managedconnectionfactory-class&gt;oracle.apps.contactCenter.mct.model.connector.CCAMangConnFactImpl&lt;/managedconnectionfactory-class&gt;
    &lt;connectionfactory-interface&gt;oracle.apps.contactCenter.mct.publicModel.connector.MCTConnectionFactIF&lt;/connectionfactory-interface&gt;
    &lt;connectionfactory-impl-class&gt;oracle.apps.contactCenter.mct.model.connector.CCAConnectionFactImpl&lt;/connectionfactory-impl-class&gt;
    &lt;connection-interface&gt;oracle.apps.contactCenter.mct.publicModel.connector.MCTConnectionIF&lt;/connection-interface&gt;
    &lt;connection-impl-class&gt;oracle.apps.contactCenter.mct.model.connector.CCAConnectionImpl&lt;/connection-impl-class&gt;
    &lt;/connection-definition&gt;
    &lt;transaction-support&gt;NoTransaction&lt;/transaction-support&gt;
    &lt;reauthentication-support&gt;false&lt;/reauthentication-support&gt;
    &lt;/outbound-resourceadapter&gt;
    &lt;/resourceadapter&gt;
    The weblogic-ra.xml
    &lt;enable-access-outside-app&gt;true&lt;/enable-access-outside-app&gt;
    &lt;outbound-resource-adapter&gt;
    &lt;connection-definition-group&gt;
    &lt;connection-factory-interface&gt;oracle.apps.contactCenter.mct.publicModel.connector.MCTConnectionFactIF&lt;/connection-factory-interface&gt;
    &lt;connection-instance&gt;
    &lt;jndi-name&gt;MctEIS11/connFctryCCA&lt;/jndi-name&gt;
    &lt;connection-properties&gt;
    &lt;pool-params&gt;
    &lt;initial-capacity&gt;5&lt;/initial-capacity&gt;
    &lt;max-capacity&gt;10&lt;/max-capacity&gt;
    &lt;capacity-increment&gt;1&lt;/capacity-increment&gt;
    &lt;/pool-params&gt;
    &lt;/connection-properties&gt;
    &lt;/connection-instance&gt;
    &lt;/connection-definition-group&gt;
    &lt;/outbound-resource-adapter&gt;
    &lt;/weblogic-connector&gt;
    The web.xml
    &lt;servlet&gt;
    &lt;servlet-name&gt;MyWebService1SoapHttpPort&lt;/servlet-name&gt;
    &lt;servlet-class&gt;myapp.Class1JCA&lt;/servlet-class&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;MyWebService1SoapHttpPort&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/MyWebService1SoapHttpPort&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;session-config&gt;
    &lt;session-timeout&gt;35&lt;/session-timeout&gt;
    &lt;/session-config&gt;
    &lt;mime-mapping&gt;
    &lt;extension&gt;html&lt;/extension&gt;
    &lt;mime-type&gt;text/html&lt;/mime-type&gt;
    &lt;/mime-mapping&gt;
    &lt;mime-mapping&gt;
    &lt;extension&gt;txt&lt;/extension&gt;
    &lt;mime-type&gt;text/plain&lt;/mime-type&gt;
    &lt;/mime-mapping&gt;
    &lt;/web-app&gt;
    The client is
    Context m_context;
    MCTConnectionIF m_connection = null;
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
    env.put(Context.PROVIDER_URL, "t3://localhost:7101");
    try {
    m_context = new InitialContext(env);
    System.out.println("Got the context objNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN");
    MCTConnectionFactIF m_cxFactory = null;
    Object objFactory = null;
    objFactory = m_context.lookup("MctEIS11/connFctryCCA");
    System.out.println(objFactory.toString());
    m_cxFactory = (MCTConnectionFactIF)objFactory;
    System.out.println(m_cxFactory.toString());
    m_connection = (MCTConnectionIF)m_cxFactory.getConnection(); //
    When i run this i am getting the exception as
    Entering!!!!!!!!!!!!!!!!!!!!!
    Got the context objNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
    [oracle.apps.contactCenter.mct.model.connector.CCAConnectionFactImpl@14bc17f|mailto:oracle.apps.contactCenter.mct.model.connector.CCAConnectionFactImpl@14bc17f]
    java.lang.ClassCastException: oracle.apps.contactCenter.mct.model.connector.CCAConnectionFactImpl cannot be cast to oracle.apps.contactCenter.mct.publicModel.connector.MCTConnectionFactIF
    at myapp.Class1JCA.GetConnection(Class1JCA.java:47)
    I have checked that the jar files are matching in both client an connector side
    Please help me on this

    Is that ever running ? Where/how did you installed tuxedo ? Which OS user was used for tuxedo install ?
    Nicolas.

  • Non Java Webservice client Authentication

    I see in the Weblogic docs many examples of Java webservice clients. Including
    one that passes a user id and password through the getXXXPort(userid, password)
    call for authenticating the user at runtime. My question is, can a non Java webservice
    client authenticate itself in somewhat the same manor? A non Java client wouldn't
    have the client jar file available containing the stubs and all.
    If someone has a code snippet they could send me it would be most appreciated.
    Thanks,
    Craig Lindley

    Hi Craig,
    An partial example using .NET is attached; in this environment you need
    to use their NetworkCredential class.
    Hope this helps,
    Bruce
    craig lindley wrote:
    >
    I see in the Weblogic docs many examples of Java webservice clients. Including
    one that passes a user id and password through the getXXXPort(userid, password)
    call for authenticating the user at runtime. My question is, can a non Java webservice
    client authenticate itself in somewhat the same manor? A non Java client wouldn't
    have the client jar file available containing the stubs and all.
    If someone has a code snippet they could send me it would be most appreciated.
    Thanks,
    Craig Lindleyusing System;
    using System.Net;
    namespace SecurityBasicClient
    class AuthClient
    [STAThread]
    static void Main(string[] args)
    SoapInteropBaseService ws = new SoapInteropBaseService();
    ws.Url = "http://webservice.bea.com:7001/base/SoapInteropBaseService";
    Console.Write("User:");
    string strUser = Console.ReadLine();
    Console.Write("Password:");
    string strPassword = Console.ReadLine();
    ICredentials credentials = new NetworkCredential(strUser,strPassword);
    try
    ws.Credentials = credentials;
    Console.WriteLine(ws.echoString("Hello World"));
    catch (Exception err)
    Console.WriteLine(err.Message);
    finally
    Console.ReadLine();

  • Problem deploying webservice client app

    I have a JAX-RPC webservice client application which works flawlessly from within JDeveloper 10.1.3 EA1. However, after deploying the application and running it, I get the following error which I have been unable to trace to a missing library:
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/xml /rpc/ServiceFactory
    at com.brunata.ptd.proxy.TempmonSoapHttpPortClient.<init>(TempmonSoapHtt pPortClient.java:17)
    at com.brunata.ptd.proxy.PTDProxy.<init>(PTDProxy.java:24)
    at com.brunata.ptd.proxy.PTDProxy.sharedInstance(PTDProxy.java:35)
    at com.brunata.ptd.views.PTDAppView.<init>(PTDAppView.java:71)
    at com.brunata.ptd.PTDApp.createGUI(PTDApp.java:93)
    I made sure to include all libraries I can see JDeveloper is referencing, yet obviously I must be missing something. I include the following:
    \j2ee\home\lib
    \webservices\lib
    \jlib
    \lib\xmlparserv2.jar
    \xdk\lib\xml.jar
    \j2ee\home
    \rdbms\jlib\xdb.jar
    \diagnostics\lib\ojdl2.jar
    \jakarta-taglibs\commons-logging-1.0.3\commons-logging.jar
    \jakarta-taglibs\commons-logging-1.0.3\commons-logging-api.jar
    I must admit, I am a bit shocked that/if I will have to deploy all these files into a some 40MB jar, not exactly fitting for the Java Web Start appliation I am working on.
    Any help greaty appreciated,
    Casper Bang

    Hi Eric,
    Thanks for the single-jar solution tip. Unfortunately I still get the same error (javax.xml.rpc.ServiceFactory) even with the use of that file. If I try to run manually from a commandline and include jaxrpc-api.jar, I get a little further though:
    java -classpath J:\jdevstudiobase1013\jdev\mywork\PTD\PTD\classes;J:\jdevj2eebase1013\webservices\lib\jaxrpc-ap
    i.jar;J:\jdevstudiobase1013\jdev\mywork\PTD\PTD\deploy\jcommon-1.0.0-rc1.jar com
    .brunata.ptd.PTDApp
    javax.xml.rpc.ServiceException: Provider oracle.j2ee.ws.client.ServiceFactoryImp
    l not found
    at javax.xml.rpc.FactoryFinder.newInstance(FactoryFinder.java:44)
    at javax.xml.rpc.FactoryFinder.find(FactoryFinder.java:137)
    at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:69)
    at com.brunata.ptd.proxy.TempmonSoapHttpPortClient.<init>(TempmonSoapHtt
    pPortClient.java:17)
    at com.brunata.ptd.proxy.PTDProxy.<init>(PTDProxy.java:24)
    Which lib is this? (Any documentation somewhere for where packages are stored?)
    Thanks a lot,
    Casper

  • Adding a WebService Client to a Web Application

    Hi, Everybody,
    I built a Bepl Module in which I had a ECHO WebService and the response parameter is a complex type.
    Then I built a Web application, and used the WSDL file to add a WebService Client to a this Web Application,
    but I found that the WebService Referrence dose not contain any method, so I could not add it in my jsp page.
    But when I changed the Response Message Part Type into a simple one, everything worked fine.
    *All the progress is the same as " [Using a Manually Created WSDL as a Web Service Client|https://open-esb.dev.java.net/kb/v2/javaeesetut.html] ", but change the simple type into complex type.*
    I want to know if the WebService Client Referrence dose not support generating java code which contains complex type or I had a wrong operation?
    thanks

    There are current limitations with the wsimport functionality and an issue has been logged.
    If you have a look at the blog entry from Andrew Hopkinson.....
    [http://blogs.sun.com/toxophily/entry/javacaps_tip_migrating_a_simple]
    ...you'll see part way down what the WSDL must look like to work with wsimport, i.e.....
    Message parts must be created using an Element rather than a specific type and the element must be defined in a local in-line schema.
    This in-line element can only contain a sequence with a single sub-element of a specific Complex Type.
    The name of the input element must be the same as the operation it will be used in.
    nillable element option should not be used because this will cause your strings to be returned as JAXBElements and not Strings.
    ...etc....
    Bit painful I know, but this is the only workaround until the bug is fixed.

  • Webservice client is not working for secured service

    Hi Experts,
    Currently i am facing issue when i try to access the secured webservice,
    I used jdeveloper 11.1.2.1.0 to create the webservice client proxy and found the following error if i invoke the service,
    I am using the following code to access the service,
    URL url = new URL(".", wsdl_url);
    MyService myservice = new MyService(url, new QName("urn:drs.test.com",
    "MyService"));
    myTester = myservice .getTester();
    Map<String, Object> reqContext = ((BindingProvider) myTester ).getRequestContext();
    reqContext.put(BindingProvider.USERNAME_PROPERTY, "user name");
    reqContext.put(BindingProvider.PASSWORD_PROPERTY, "password");
    May i know the reason for this issue?
    javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid XML in source with PublicId: null: oracle.xml.parser.v2.XMLParseException: Whitespace required.
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:344)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:294)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:278)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:484)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:455)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1050)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$1.run(SpecifyWsdlPanel.java:364)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.xml.parser.v2.XMLParseException: Whitespace required.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:323)
         at oracle.xml.parser.v2.XMLReader.scanQuotedString(XMLReader.java:1831)
         at oracle.xml.parser.v2.XMLReader.scanQuotedString(XMLReader.java:1939)
         at oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatingParser.java:489)
         at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:363)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:321)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
         at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:337)

    Hi
    I am facing similar issue but with Custom Adapter . I copied the axis jars under the JavaTasks folder but it does not help.
    I then copied them under the oim.ear/APP_INF/lib and restarted the OIM managed server but somehow even that does not help.
    I get following error.
    Caused by: java.lang.NoSuchMethodError: org/apache/axiom/om/OMAbstractFactory.getMetaFactory()Lorg/apache/axiom/om/OMMetaFactory;
            at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:150)
            at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:133)
            at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:104)
            at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:590)
            at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575)
            at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
            at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90)
            at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)
            at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
            at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
            at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
            at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151)
    Any pointer on how I can try to resolve it.
    Regards
    Abhinav

Maybe you are looking for