Weblogic generated webservice WSI compliant?

Hi,
As a basic profile/WSI-unaware developer I have been asked to ensure that the webservice I am about to develop using weblogic servicegen is WSI compliant.
Thus I have downloaded the official WSI compliance test tool from www.ws-i.org and tried to to run it my newly generated webservice.
The WSI test tool complains
"Element 'soap:binding' must have no character or element information item [children]"
Thus I have tried to change the generated construct
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http">
</soap:binding>
to the (I think) equivalent
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
- which causes the test tool to succeed.
Am I rigth considering this to be an error in the WSI test tool?
Next the test fails on a return type Attribute[], which is wsdl'ed as an unbounded ArrayOfAttribute. I believe the error is that the Array is unbounded (no minoccurs/maxoccurs). Is there any way to specify array boundaries to the servicegen task?
Regards
Peter Buus

What error are you getting in your client? The WSDLs are equivalent, one just uses annonymous complexTypes and the other doesn't.

Similar Messages

  • Webapp client using weblogic-generated stubs

    Hi,
    I have a simple webservice that has been tested for a while and works without
    any trouble when
    accessed from a standalone java client using the weblogic-generated webservice
    stubs.
    I am trying to code a webapp client (using jsp/struts) using the same stubs, and
    seem to keep
    getting this error. It appears on the client side, doesn't even reach the server
    side.
    I am using weblogic 8.1 SP1. (It is interesting that even though everything was
    compiled and
    deployed with weblogic 8.1, there is some reference to 7.0-- which is not even
    installed on the
    system, so I don't know where it is coming from.)
    <May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handler weblogic.webservice.core.handler.ClientHandler
    threw an exception from its handleResponse method. The exception was:
    java.lang.IllegalAccessError: Already connected.>
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Exception
    during processing: java.lang.IllegalAccessError: Already connected (see Fault
    Detail for stacktrace)
    Detail:
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
    </bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
    at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
    at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
    at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
    at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
    at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
    at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
    at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
    at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
    at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
    at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
    at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
    at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
    Thanks in advance,
    E

    Hi,
    Thanks for your help with this. As it turns out, I received this message from
    the weblogic team here:
    =======
    All,
    The J2EE monitoring tool OVTA rolled out to Weblogic Farm Linux QA and Stage environment
    had a bug in the instrumentation. The bug induces a java.lang.IllegalAccessError.
    A patch as been rolled out to fix this issue.
    =======
    Once the patch was rolled out and weblogic was restarted, the issue disappeared.
    Thanks again for your help!
    E
    Bruce Stephens <[email protected]> wrote:
    Hello,
    What is
    com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry
    at the time of failure?
    If you could provide a short reproducer, we could give it a spin; or
    open a dialog with our support team.
    Thanks,
    Bruce
    Elisheva G wrote:
    Hi, thanks for responding.
    I have precisely the same client jsp running without any errors onapache tomcat
    accessing
    webservices residing in weblogic 8.1 It's only when I try to migratethe client
    code from tomcat
    to weblogic that I see this "already connected" exception being thrownfrom within
    the weblogic-
    generated stubs.
    I successfully get a port from the service, but when I try to executethe business
    method in the
    port, that is where the exception is thrown -- consistently.
    Any ideas? I am seeing identical behavior on 2 different applications.
    Thanks in advance,
    E
    Bruce Stephens <[email protected]> wrote:
    Hello,
    The 7.0 reference is a namespace and not a problem and not associated
    with your issue. I think you are seeing normal process threading
    issues
    with jsp sessions. There is an example using a jsp [1] and one with
    SSL
    [2] that you might want to examine.
    HTH,
    Bruce
    [1]
    http://manojc.com/?sample28
    [2]
    http://webservice.bea.com/clientauth.zip
    Elisheva G wrote:
    Hi,
    I have a simple webservice that has been tested for a while and
    works
    without
    any trouble when
    accessed from a standalone java client using the weblogic-generatedwebservice
    stubs.
    I am trying to code a webapp client (using jsp/struts) using the
    same
    stubs, and
    seem to keep
    getting this error. It appears on the client side, doesn't even
    reach
    the server
    side.
    I am using weblogic 8.1 SP1. (It is interesting that even though
    everything
    was
    compiled and
    deployed with weblogic 8.1, there is some reference to 7.0-- whichis not even
    installed on the
    system, so I don't know where it is coming from.)
    <May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handlerweblogic.webservice.core.handler.ClientHandler
    threw an exception from its handleResponse method. The exception
    was:
    java.lang.IllegalAccessError: Already connected.>
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:Exception
    during processing: java.lang.IllegalAccessError: Already connected(see Fault
    Detail for stacktrace)
    Detail:
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
    </bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
    at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
    at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
    at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
    at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
    at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
    at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
    at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
    at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
    at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
    at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
    at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
    at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
    Thanks in advance,
    E

  • Weblogic generates incorrect WSDL when policy is applied

    Hello all!
    Please help. It looks like a bug.
    I have and WebLogic 10.3.3 instance and some JAX-WS services. It works fine till I turn on WS-Security. Weblogic generates a non-standard WSDL when I apply any Policy for any webservice. So, look an example. It is a part of the wrong WSDL.
    <?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.5. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.5. -->
    <definitions xmlns:wssutil="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/"
    targetNamespace="http://bla-bla-bla/service/" name="Service"
    xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
    xmlns:wssutil="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" >
    <wsp:UsingPolicy wssutil:Required="true"/>
    <wsp:Policy wssutil:Id="UsernameToken-Plain">
    <ns0:SupportingTokens xmlns:ns0="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512">
    <wsp:Policy>
    <ns0:UsernameToken/>
    </wsp:Policy>
    </ns0:SupportingTokens>
    </wsp:Policy>
    <wsp:UsingPolicy wssutil:Required="true"/>
    <wsp:Policy wssutil:Id="UsernameToken-Plain">
    <ns1:SupportingTokens xmlns:ns1="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512">
    <wsp:Policy>
    <ns1:UsernameToken/>
    </wsp:Policy>
    </ns1:SupportingTokens>
    </wsp:Policy>
    <types>
    You can see the xmlns:wsp and xmlns:wssutil import attributes are declared twice. Also the Policy is doubled with equal Id.
    It is very strange. Any ideas? May be somebody has solved such problem?

    Hi,
    Check the below link for your solution.
    http://tim.blackamber.org.uk/?p=825
    Thanks,
    Durga

  • How does servicegen choose EJBs to generate webservices?

    I'd like to know how servicegen Ant task chooses the EJBs to generate webservice operations from. In one of my sample applications the ejbgen Ant task (com.bea.wls.ejbgen.ant.EJBGenAntTask) generates stateless session beans. Servicegen then generates webservice operations for each of the public methods defined in the stateless session beans.
    If a similar session bean is generated using XDoclet (xdoclet.modules.ejb.EjbDocletTask) instead of "ejbgen", servicegen does not find any operation to create webservices from! The <operations>-Element in the generated web-services.xml is empty (see error message below).
    Are there any naming conventions a generator of EJB-Code should follow if the generated JAR file is used as input for servicegen afterwards?
    <servicegen
    <service
    ejbJar="${build}/${ejb_jar_file}"
    >
    </service>
    </servicegen>
    weblogic.webservice.dd.DDProcessingException: There must be at least one <operation> element in <operations> (Line 14, Column 8)
    at weblogic.webservice.dd.DDLoader.processOperationElements(DDLoader.java:1000)
    at weblogic.webservice.dd.DDLoader.processOperationsElement(DDLoader.java:986)
    at weblogic.webservice.dd.DDLoader.processWebServiceElement(DDLoader.java:497)
    at weblogic.webservice.dd.DDLoader.processWebServiceElements(DDLoader.java:310)
    at weblogic.webservice.dd.DDLoader.processWebServicesElement(DDLoader.java:298)
    at weblogic.webservice.dd.DDLoader.load(DDLoader.java:276)
    at weblogic.webservice.util.WebServiceWarFile.getWSDD(WebServiceWarFile.java:86)
    at weblogic.webservice.tools.build.internal.WSDLGenImpl.getWebServiceMBean(WSDLGenImpl.java:194)
    at weblogic.webservice.tools.build.internal.WSDLGenImpl.run(WSDLGenImpl.java:133)
    at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromEAR(ClientGenImpl.java:438)
    at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:345)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateClient(ServiceGenTask.java:597)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:195)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:385)
    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:136)

    Hi lerppu
    I got same error messages. could you please post how you have solved this problem. i'm a student and is pretty new to j2ee projects. you help would be appreciated.
    thanks in advance.

  • Weblogic Conversational WebService Database table migtration to 8 in WLS10

    Does the Weblogic Conversational WebService Database table WLS 8.1 still exist in Weblogic 10 (for migration purpose) (in WLS 8.1, the table name was mentioned in the wlw-manifest.xml) ?
    If not what table does the WebService use to persiste its state ?
    The WLI upgrade documentation mentioned that the wlw-manifest.xml migrate from the META-INF to the WEB-INF, does it still the same for Weblogic ? (no recommandationon this subject)
    Does it still a test console for conversational WebService ?

    Robert Jung wrote:
    Hi all,
    like many others in the web I'm having problems deploying CMP Beans on BEA. I'm using Weblogic 8.1 and
    get the following error message:
    "[EJB:011076]Unable to deploy the EJB 'B' because the database table 'b' is not accessible.Please ensure that this table exists and is accessible."
    >
    After a lot of research I understand the problem now. Weblogic is checking the cmp-fieldsat deployment time using something like "SELECT xx1, xx2, xxx3 FROM ttt1 WHERE 1 = 0".
    Some databases have no problem with such a select. My Solid database unfortunately does
    a full table scan on it. Having only some rows in the table b there is no problem at all,
    but I have more than 500.000 entries. :-(
    >
    My question: Is there a workaround? Can I somewhere specify the SQL - command for checkingmapped cmp-fields? Or can I disable the check somehow?
    I think it is a very annoying problem, many users out there have.Hi. All commercial quality DBMSes I know, are smart enough to evaluate constant search
    criteria, and not to access all the rows if it's a-priori known that no rows will
    qualify. I would ask 'Solid' for a fix.
    However, you can generate our EJBs with the option of retaining the generated
    JDBC code, which you could alter and recompile for your use. You might be able to
    substitute some DatabaseMetaData call to getTableColumns() to get the same info...
    Joe
    Thanx in advance
    Robert

  • JDev generated webservices encodes XML output from PL/SQL procedure

    I have a PL/SQL packaged procedure which takes some input parameters and produces one output parameter. The output parameter is of type CLOB and after the procedure has run, it contains a big piece of XML data.
    Using JDeveloper 10.1.3.1, I've published this packaged procedure as a webservice. The generated webservice is fine and works, except for one tiny little issue: the XML that is taken from the output parameter is encoded.
    Here is an example of the SOAP message that the webservice returns:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://gbv0300u/GBV0300U.wsdl/types/"><env:Body><ns0:gbv0300uResponse
    Element><ns0:result><ns0:obvglijstOut> & gt;type>GBV0001& gt ;/type& lt;
    & gt;diensten& lt;
    & gt;dienst>some value& gt;/dienst& lt;
    & gt;/diensten& lt;
    </ns0:obvglijstOut></ns0:result></ns0:gbv0300uResponseElement></env:Body></env:Envelope>
    (I've manually added an extra space between the & and lt; or gt; to make sure a browser will not translate it into a < or >!)
    The contents of the <ns0:obvglijstOut> element are filled with the output parameter from the PL/SQL package.
    How can I change the generated webservice, so the output from the PL/SQL package is used as is instead of being encoded?

    Update: I've tested a bit more by adding some output statements to the java code that JDeveloper generated. I'm now 100% sure the PL/SQL code gives the XML data correctly to the webservice.
    At this moment my guess is that somewhere in the WSDL definition there is something that enables the encoding of the data. But I'm not sure.
    Any help is greatly appreciated.

  • Generated webservices give null result in Flex 3

    Hi there,  I have a web service on my localhost. Calling this from a PHP page works fine and it returns the expected results. (I pass 2 values and it returns a different string depending on the values passed).
    However, in Flex 3, I have generated the webservice proxy classes using the "Data" | "Manage Web Services" dialog.  I am consuming these services using the following code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Button click="clickHandler(event)"/>
         <mx:Script>
              <![CDATA[
                   import generated.webservices.*;
                   import mx.controls.Alert;
                   import mx.rpc.events.FaultEvent;
                   public var _ws:SalesService = new SalesService();
                   private function clickHandler(_e:MouseEvent):void
                        _ws.addonsaleEventListener(resultHandler);
                        _ws.addSalesServiceFaultEventListener(faultHandler);
                        _ws.onsale(10,90);
                   public function resultHandler(_e:OnsaleResultEvent):void
                        if(_e.result == null)
                             Alert.show("result is: null");
                        else
                             Alert.show("result is: "+_e.result);
                   public function faultHandler(_e:FaultEvent):void
                        Alert.show(_e.message.toString());
              ]]>
         </mx:Script>
    </mx:Application>
    The "resultHandler" method is called and the "faultHandler" method is not called, which suggests a result is returned, but _e.result is null in the "resultHandler" method.
    Can anyone see if I am missing something in the actionscript?
    Andrew.
    p.s.
    I can post the generated proxy classes, or even the wsdl for the webservice if it helps.
    A.

    No, they're not exactly the same (see below).
    Calling the same web service; Flex 3 is generating a
    different result object than Flex 2, and therefore can/will not
    type the results as the Array my original app had come to expect.
    Is this by design?
    A suggested code revision would help, but...
    The question in my
    original post is still in play:
    Where would I have gone to learn this? The release notes are
    simply a cut list of changes. Is there a resource which summarizes
    the types of errors one is likely to see when porting a Flex 2 app
    to Flex 3, along with the most-likely changes as causes? When CFMX
    was first released, there was a helpful checklist of tags and
    syntax to help you audit your CF5 for the upgrade. Has one of your
    gurus blogged something like this for FX3 and I just can't find it?

  • Weblogic generated finder method not setting parameters in prepared statement

    Hi,
    I am using weblogic 6.1 sp2 and have a CMP bean with a finder defined as follows:
    <query>
    <query-method>
    <method-name>findByPcPayclass</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    <ejb-ql>SELECT DISTINCT OBJECT(p) FROM Payments p, PaymentType
    t WHERE p.paymentType.pcPayClass = '?1'</ejb-ql>
    </query>
    The weblogic generated code follwos:
    public java.util.Collection ejbFindByPcPayclass(java.lang.String param0) throws
    javax.ejb.FinderException
    if(__WL_verbose) {
    Debug.say("called findByPcPayclass");
    java.sql.Connection __WL_con = null;
    java.sql.PreparedStatement __WL_stmt = null;
    java.sql.ResultSet __WL_rs = null;
    __WL_pm.flushModifiedBeans();
    try {
    __WL_con = __WL_pm.getConnection();
    } catch (java.lang.Exception e) {
    __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
    throw new javax.ejb.FinderException("Couldn't get connection: " + EOL +
    e.toString() + EOL +
    RDBMSUtils.throwable2StackTrace(e));
    try {
    java.lang.String __WL_query = "SELECT WL0.DEPOSIT_UID, WL0.GLA_ID, WL0.MARKET_CODE,
    WL0.ORIGINAL_PAYMENT_ID, WL0.PAYMENT_ACCT_NUMBER, WL0.PAYMENT_ACK, WL0.PAYMENT_AMOUNT,
    WL0.PAYMENT_CARD_CHECK_NUM, WL0.PAYMENT_CARE_SITE, WL0.PAYMENT_CUST_NAME, WL0.PAYMENT_DESIGNATOR,
    WL0.PAYMENT_EFFECTIVE_DATE, WL0.PAYMENT_ID, WL0.PAYMENT_INV_ID, WL0.PAYMENT_MOBILE_NUMBER,
    WL0.PAYMENT_SPLIT, WL0.PC_PAYCLASS, WL0.PT_UID, WL0.TT_UID FROM payment_type
    WL2, payment_type WL1, payments WL0 WHERE (WL2.PC_PAYCLASS = '?1') AND WL0.PT_UID
    = WL2.PT_UID " + __WL_pm.selectForUpdate();
    if(__WL_verbose) {
    Debug.say("Finder produced statement string " + __WL_query);
    __WL_stmt = __WL_con.prepareStatement(__WL_query);
    // preparedStatementParamIndex reset.
    __WL_rs = __WL_stmt.executeQuery();
    } catch (java.lang.Exception e) {
    __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
    throw new javax.ejb.FinderException(
    "Exception in findByPcPayclass while preparing or executing " +
    "statement: '" + __WL_stmt + "'" + EOL +
    e.toString() + EOL +
    RDBMSUtils.throwable2StackTrace(e));
    The parameter is never set in the prepared statement before it executes. This
    causes the finder to return an empty result set. Is this a bug or is there some
    configuration that I missed. I am using ant 1.5 to do the ejbc. the ant target
    follows:
    <target name="ccas.ejbc" depends="ccas.compile, ccas.stage, dd.combine">
    <ejbjar srcdir="${buildClasses}/"
    descriptordir="${buildOutput}/ear_dd"
    basejarname="CCAS"
    flatdestdir="true"
    dependency="full">
    <support dir="${buildClasses}">
    <include name="CCAS/**/*.class"/>
    </support>
    <weblogic destdir="${ear.stage.dir}"
    rebuild="false"
    keepgenerated="true"
    jvmdebuglevel="16">
    <classpath refid="classpath"/>
    <wlclasspath refid="classpath"/>
    </weblogic>
    <include name="ejb-jar.xml"/>
    <exclude name="**/*-weblogic*.xml"/>
    </ejbjar>
    </target>

    replace '?1' with ?1
    "Eugene Stephens" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    I am using weblogic 6.1 sp2 and have a CMP bean with a finder defined asfollows:
    <query>
    <query-method>
    <method-name>findByPcPayclass</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    <ejb-ql>SELECT DISTINCT OBJECT(p) FROM Payments p,PaymentType
    t WHERE p.paymentType.pcPayClass = '?1'</ejb-ql>
    </query>
    The weblogic generated code follwos:
    public java.util.Collection ejbFindByPcPayclass(java.lang.String param0)throws
    javax.ejb.FinderException
    if(__WL_verbose) {
    Debug.say("called findByPcPayclass");
    java.sql.Connection __WL_con = null;
    java.sql.PreparedStatement __WL_stmt = null;
    java.sql.ResultSet __WL_rs = null;
    __WL_pm.flushModifiedBeans();
    try {
    __WL_con = __WL_pm.getConnection();
    } catch (java.lang.Exception e) {
    __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
    throw new javax.ejb.FinderException("Couldn't get connection: " +EOL +
    e.toString() + EOL +
    RDBMSUtils.throwable2StackTrace(e));
    try {
    java.lang.String __WL_query = "SELECT WL0.DEPOSIT_UID, WL0.GLA_ID,WL0.MARKET_CODE,
    WL0.ORIGINAL_PAYMENT_ID, WL0.PAYMENT_ACCT_NUMBER, WL0.PAYMENT_ACK,WL0.PAYMENT_AMOUNT,
    WL0.PAYMENT_CARD_CHECK_NUM, WL0.PAYMENT_CARE_SITE, WL0.PAYMENT_CUST_NAME,WL0.PAYMENT_DESIGNATOR,
    WL0.PAYMENT_EFFECTIVE_DATE, WL0.PAYMENT_ID, WL0.PAYMENT_INV_ID,WL0.PAYMENT_MOBILE_NUMBER,
    WL0.PAYMENT_SPLIT, WL0.PC_PAYCLASS, WL0.PT_UID, WL0.TT_UID FROMpayment_type
    WL2, payment_type WL1, payments WL0 WHERE (WL2.PC_PAYCLASS = '?1') ANDWL0.PT_UID
    = WL2.PT_UID " + __WL_pm.selectForUpdate();
    if(__WL_verbose) {
    Debug.say("Finder produced statement string " + __WL_query);
    __WL_stmt = __WL_con.prepareStatement(__WL_query);
    // preparedStatementParamIndex reset.
    __WL_rs = __WL_stmt.executeQuery();
    } catch (java.lang.Exception e) {
    __WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
    throw new javax.ejb.FinderException(
    "Exception in findByPcPayclass while preparing or executing " +
    "statement: '" + __WL_stmt + "'" + EOL +
    e.toString() + EOL +
    RDBMSUtils.throwable2StackTrace(e));
    The parameter is never set in the prepared statement before it executes.This
    causes the finder to return an empty result set. Is this a bug or is theresome
    configuration that I missed. I am using ant 1.5 to do the ejbc. the anttarget
    follows:
    <target name="ccas.ejbc" depends="ccas.compile, ccas.stage,dd.combine">
    <ejbjar srcdir="${buildClasses}/"
    descriptordir="${buildOutput}/ear_dd"
    basejarname="CCAS"
    flatdestdir="true"
    dependency="full">
    <support dir="${buildClasses}">
    <include name="CCAS/**/*.class"/>
    </support>
    <weblogic destdir="${ear.stage.dir}"
    rebuild="false"
    keepgenerated="true"
    jvmdebuglevel="16">
    <classpath refid="classpath"/>
    <wlclasspath refid="classpath"/>
    </weblogic>
    <include name="ejb-jar.xml"/>
    <exclude name="**/*-weblogic*.xml"/>
    </ejbjar>
    </target>

  • How do we create generate webservices.xml file?

    Hi all,
    Im new to webservices...
    im able to generate mapping.xml file using wsgenerate
    but i dont know how do we generate webservices.xml.
    Im waiting for ur reply.
    http://tech.groups.yahoo.com/group/completeJava/
    http://tech.groups.yahoo.com/group/completeJava/messages
    http://completejava-group.blogspot.com/

    You use the web interface of xmlsidecar generator made by Johannes Henseler and the push the button there "generate". Copy paste that into a plain text file and then change tex extension from txt to xml. That's how you do a sidecar.xml the easy way.
    Afterwards, yo've got to import "multiple files" (or "many files"... my DPS is a Spanish one) from Folio Builder.
    If the folder are structured properly, folio builder will start swallowing the data of sidecar and uploading the articles.
    Right now, while posting this, my pc is doing that with about one hundred articles. As happy and busy as a beaver in heat
    Gustavo (Posting from Madrid)

  • Generating Webservice using HTTPS in  XI.

    Hi Experts,
         I have generated webservice in XI using http , and i have tested using infopath soap client, its working fine.  I have generated webservice in XI using htpps using the same scenario,  when i am testing using infopath as soap client and tested, its giving error, request is not hitting the XI system at all. do i need to configure any certificate in infopath or in XI server, please can anyone advice. i have configured HPPTS without client authentication in SOAP adapter.
    Thanks,
    Dhanush

    Hi Experts,
      I am not able to get exact answer after reading the sap.help.com, sap notes.
    My scenario is RFC < ---> SOAP ( webservice) ,  i have generated webservice with the HTTPS and secured port of XI,  When i copy and past in IE browser, its showing status is OK,  but request is not hitting the XI system. what are things to be taken care at soap client and XI server side, do i need to install any certificats at client side or server side. please advice me.
    Thanks,
    Siva

  • Problem generating webservices

    Hello Experts,
    My scenario is SOAP-->IDOC.As the customer is placing std ORDERS idoc structure as SOAP input, I used std ORDERS structure as target and source structure and did a 1-1 mapping.
    I tried to generate webservice for sender SOAP channel.
    Tools>Define Webservices>I gave the sender soap URL and navigated to the next screen to input the ORDERS message interface but I didn't see ORDERS in the list when I clicked F4.I'm not able to see my SWC at all.
    I did SXI_CACHE cache refresh.But no use.
    My design objects and configuration objects are active.
    Please advise.
    Shanthi.

    Hi,
    Thanks for your answers.
    I created the sender message interface and was able to generate Webservice.
    But now, when I tried to test the scenario with Altova XML spy, I got the following error.
    com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapter:ATTRIBUTE_BE_NOT_SUPP.
    Do I need to create receiver message interface as well?
    Can somebody help me to solve this.
    Shanthi.

  • Error generating WebServices thro' Axis

    Hi , On generating webservices for a simple program ( which add's two integer) I am getting following error in client side -
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultSubcode:
    faultString: java.lang.InstantiationException: com.infosys.WebService.WebServiceProcessor
    faultActor:
    faultNode:
    faultDetail:
    {_http://xml.apache.org/axis/}stackTrace:java.lang.InstantiationException_: com.infosys.WebService.WebServiceProcessor
    at org.apache.axis.message.SOAPFaultBuilder.createFault(_SOAPFaultBuilder.java:222_)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(_SOAPFaultBuilder.java:129_)
    at org.apache.axis.encoding.DeserializationContext.endElement(_DeserializationContext.java:1087_)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(_DeserializationContext.java:227_)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(_SOAPPart.java:696_)
    at org.apache.axis.Message.getSOAPEnvelope(_Message.java:435_)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(_MustUnderstandChecker.java:62_)
    at org.apache.axis.client.AxisClient.invoke(_AxisClient.java:206_)
    at org.apache.axis.client.Call.invokeEngine(_Call.java:2784_)
    at org.apache.axis.client.Call.invoke(_Call.java:2767_)
    at org.apache.axis.client.Call.invoke(_Call.java:2443_)
    at org.apache.axis.client.Call.invoke(_Call.java:2366_)
    at org.apache.axis.client.Call.invoke(_Call.java:1812_)
    at com.infosys.WebService.WebServiceProcessorSoapBindingStub.addNumber(_WebServiceProcessorSoapBindingStub.java:108_)
    at com.infosys.WebService.WebServiceProcessorProxy.addNumber(_WebServiceProcessorProxy.java:50_)
    at com.infosys.WebService.WebTest.main(_WebTest.java:16_)
    Can anybody giude as what may be the problem?The server side Implementation class can be instantiated.

    Hi,
    Class WebServiceProcessor is an interface for the webservices. On instantiating its implementation class , it is thrwoing the above mentioned error in client side . Both cleint and server component is a part of Web Component and deployed in server , so those all should be in runtime classpath.
    Can you tell me exactly what I need to do here?

  • How to generate Webservices.xml using tool in Sun One App Server?

    How to generate Webservices.xml using tool in Sun One App Server?

    Hi,
    The build.xml file should be in a directory from where
    you are running the asant command.
    To resolve the common.xml file not found error,
    open your build.xml and check from which location the common.xml file is incuded.
    In the sample application it is four directories above
    the directory where build.xml is located.
    You can copy the common.xml in the current directory and then change the following in your build.xml
    <!ENTITY include SYSTEM "../../../../common.xml">
    to <!ENTITY include SYSTEM "common.xml">
    Hope this helps.
    Get back in case you have more issues

  • Generate standalone java client for weblogic (11g) webservice

    Hi All,
    I am a newbie to web logic family. I am using web logic 11g server and deployed JAX-WS web service on it using the documentation given for the same. I have created one complex object to return some data from the server as web service. I am able to build, deploy and run the web service using ant task on same machine.
    But I need to deploy client classes on another machine and call web service from machine other than I am using for creating and deploying web service. Can you please tell me how can I achieve this ? Which jar files are needed to run a web service client generated through ant task and how can I create web service client differently using Eclipse IDE?
    I have generated Client classes as jar using eclipse OEPE but I dont have any idea how can I use it because it changes the package name and class names also :(
    Please help me out any hint would be greatly appreciated. :)

    Hi All,
    I have found all the answers regarding my query from the link below :
    [Overview of Web Services Invocation|http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/client.html#wp229351]
    May be this would be helpful to the newbie who is just like me :) yippy :)

  • Error while generating webservices using Date

    I am facing the following problem while generating a web service which is having Date as one its members.
    I have serialized a class with the following DataStructure
    private String rowId1;
    private Date created;
    private String name;
    private String quoteNum;
    private String revNum;
    private String curcyCd;
    private String activeFlg;
    private Number discntAmt;
    private Number discntPercent;
    When i tried to expose this as webservice, If I use the class oracle.jbo.domain.Date for Date type, the webservice is not generated properly. It is not including the method which contains this call. ie) This method is not present in the WSDL file as well as in the proxy.
    When I used java.util.Date instead of oracle.jbo.domain.Date, I am able to expose the method and webservice got generated properly. But When i tried to generate the proxy for the WSDL in the consumer, I go the following error.
    oracle.jdeveloper.webservices.model.GenerationException: Proxy generation failed for the following reason:
         at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.doGeneration(ProxyGenerator.java:608)
         at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.generateImpl(ProxyGenerator.java:365)
         at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.mav$generateImpl(ProxyGenerator.java:77)
         at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator$1ThrowingRunnable.run(ProxyGenerator.java:206)
         at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.RuntimeException: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}dateTime" and Java type "java.lang.String"
         at oracle.j2ee.ws.common.processor.Processor.runActions(Processor.java:105)
         at oracle.j2ee.ws.tools.wsa.AssemblerTool.run(AssemblerTool.java:99)
         at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createProxy(WsdlToJavaTool.java:354)
         at oracle.j2ee.ws.tools.wsa.Util.createProxy(Util.java:838)
         at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.doGeneration(ProxyGenerator.java:549)
         ... 6 more
    Caused by: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}dateTime" and Java type "java.lang.String"
         at oracle.j2ee.ws.common.processor.generator.GeneratorBase.doGeneration(GeneratorBase.java:181)
         at oracle.j2ee.ws.common.processor.generator.GeneratorBase.perform(GeneratorBase.java:137)
         at oracle.j2ee.ws.common.processor.Processor.runActions(Processor.java:97)
         ... 10 more
    I am referring to "Entity and view objects based on web service " in the following URL
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#93
    Thanks and Regards,
    James

    Hi all,
    I have applied the consolidated JRI fixes - patch 17191279 .
    Then, when generating Jar, received keypass is tampered error.
    re-generated the key using $ adjkey -initialize.
    Now, its working fine.
    Regards,
    Krish.

Maybe you are looking for

  • PDF report with bar code

    Hello. I am creating a PDF report using the Oracle Reports 6i running on Oracle Concurrent Manager. The PDF report has a bar code. The report finish with success but it is visualized without the bar code. Into the output report the bar code name is s

  • I have a HP Officejet Pro 8500 wireless. Does it support "air print'?

    I just purchased an iPad2.  I have setup a wireless network in my home. My laptop, printer and Blu-ray are attached to this. The iPad2 said the wireless printer must be "air print" enabled.  I can not find anywhere there is a mention of "air print" o

  • How do I get photos back for contacts that got lost when contacts transferred to new iPhone 4S?

    I went in to the Apple store ot get help betting my data & all transferred from my old phone or Outlook to my new phone.  They used a device that Verizon uses which apparently is the same type used to get contacts from one cell phone to the next--not

  • C# Proxy Classes from SAP WSDL files

    We are trying to generate proxy classes for SAP eSOA web services using C# and Visual Studio 2005. When we try to run Microsoft's proxy class generation utility, WSDL.exe, errors are generated that attribute incorrect syntax to the SAP WSDL file: > M

  • WRT54GH - Which cable should I use???

    I bought a new router and I try to connect my adsl modem in my new Router and the both lan lights(router/adsl) still turned off ......  with the old router, I used the same cable that I am trying to use in this new router now....   Should I use anoth