URGENT   HELP::: returning array of non built in datatypes

Folks,
I am trying to implement webservices in weblogic7.0 sp2. We have written a simple
class(say ClassA) which uses another bean as a user defined data type(ClassB implements
serializable). I am able to create a webservice if one of the method in ClassA
returns the object of classB.I am getting an error while creating the web-services.xml
file using ant tool if same method in ClassA returns array of ClassB.It says
corresponding type is not found in the types.xml. I created types.xml using ant
tool too.
Does weblogic7.0 SP2 support returning array of objects in webservices?
Any suggestions and immediate response is highly appreciated.
Thanks,
Kamal.

Bruce,
You understand the question correctly..Thanks for the help... it works now.
Thanks,
Kamal.
Bruce Stephens <[email protected]> wrote:
Hi Kamal,
If I understand your question correctly, yes, you should be able to do
this. You will need to create your own implementation of the
javax.xml.rpc.holders.Holder interface. See:
http://edocs.bea.com/wls/docs70/webserv/implement.html#1054236 for
details.
If that's not what you are asking, could you post a simple test case?
HTHs,
Bruce
BTW, for URGENT issues, please use our excellent support folks:
http://support.bea.com
[email protected]
kamal wrote:
Folks,
I am trying to implement webservices in weblogic7.0 sp2. We have writtena simple
class(say ClassA) which uses another bean as a user defined data type(ClassBimplements
serializable). I am able to create a webservice if one of the methodin ClassA
returns the object of classB.I am getting an error while creatingthe web-services.xml
file using ant tool if same method in ClassA returns array of ClassB.Itsays
corresponding type is not found in the types.xml. I created types.xmlusing ant
tool too.
Does weblogic7.0 SP2 support returning array of objects in webservices?
Any suggestions and immediate response is highly appreciated.
Thanks,
Kamal.

Similar Messages

  • Urgent help on array

    Hi
    I want to Sort an array elements with help of Row 0 in the order of another array.
    Thanks
    Attachments:
    Array.vi ‏7 KB

    Nithyamv wrote:
    please find the attachment
    Sorry, the text:
    "The values alone in the Refix array should be replaced in the orginal array with referance to row 0 in original array.
    The Row 0 is default only the corresponding values should be picked up from refix and should be placed it in the original."
    Is incomprehensible to me.
    Could you add a third array to the front panel that shows what kind of result you actually want?
    For example if the original array is:
    B1  B2 B11  B9
     1   z   z   z
     0   z   z   z
     1   z   z   z
    And the refix array is:
    B9 B11  B2  B1
     2   2   2   2
     2   2   2   2
     2   2   0   2
    What would the desired result look like?
    The values alone in the Refix array should be replaced in the orginal array with referance to row 0 in original array.
    The Row 0 is default only the corresponding values should be picked up from refix and should be placed it in the original.The values alone in the Refix array should be replaced in the orginal array with referance to row 0 in original array.The Row 0 is default only the corresponding values should be picked up from refix and should be placed it in the original."
    LabVIEW Champion . Do more with less code and in less time .

  • Urgent help - T430s shipped with non-workin​g keyboard

    Had a delivery of a T430s today and the keyboard is not functioning. I have to tap several keys such as the enter key many times before it recognises the press. Other key effected are space, A and Delete.
    I will telephone Technical Support, any idea on what to say so I have no problems in talking with them?
    Thanks
    ThinkPad T420s (4174-HG6) i5-2540M 8GB RAM, 320GB HDD
    ThinkPad T430s (2356-GDG) i5-3320M, 8GB RAM, 500GB HDD x 2
    Solved!
    Go to Solution.

    You did not specify what kind of warranty you have, so I'm assuming you have a depot (ship it back to Lenovo) warranty and want to deal with the issue faster, since if you had on-site it would not be an issue. The keyboard is a FRU (Field Replaceable Unit). Before I upgraded the warranty on my T400 to on-site, I had a keyboard issue. Since the keyboard was a FRU, Lenovo shipped the keyboard directly to me. I then installed the replacement keyboard on the machine. 
    I know warranties are different depending on what country you are in, so it might be different for you. However, I would try to convince them to send you the keyboard so that you can replace it yourself. You may need to ask them, to ship it to you. Before you ask to replace it yourself, go to this page http://support.lenovo.com/en_US/detail.page?DocID=​UM014541 and download the HMM (Hardware Maintenance Manual) for the T430. Read the part about replacing a keyboard and make sure you are comfortable with the procedure. It is also possible that simply reseating the keyboard connector on your current machine may fix the issue.
    Until the part arrives, you should be able to use an external keyboard.
    When asking for help, post your question in the forum. Remember to include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help others with the same question in the future.
    My TPs: Twist 2HU: i5-3317U Win 8 Pro, 4GB RAM 250GB Samsung 840 | T420 4177CTO: i5-2520M, HD+, Win 7 Pro x64, 8GB RAM, Optimus, 160GB Intel 320 SSD, Intel 6300 WiFi, BT 3.0 | T400 2764CTO: P8700, WXGA, Win 7 Ult x64, AMD 3470, 8GB RAM, 64GB Samsung SSD, BT, Intel 5300 WiFi | A20m 14.1" PIII 500 (retired). Monitors: 2x Dell U2211h IPS 100% sRGB calibrated w/ Spyder3.

  • Xml output for non-built-in types generated by autotype

    Hi,
    I created a wsdl and used the autotype and wsdl2service ant tasks to generate
    java files.
    As part of my service, I want to log output in xml format of the data received.
    I can write my own serialization, or use the code that was generated by autotype.
    I would rather not write my own. I want to use the code generated by wsdl2service.
    Trouble is I can not find a javadoc nor a sample code segment that shows how!
    Call me dense, but I've spent several hours on BEA web pages looking for answers.
    This is what I found, but I could not get to work for various reasons:
    XML streaming: I have a codec (generated by autotype ant task), but it requires
    a SerializationContext. Where do I get a Serialization Context? I think serialize
    is a callout from WS and not for applicaiton code to call.
    javax.xml.rpc.encoding.Serializer: An object of this type is made available by
    AbstractCodec (base class of generated code, but how is this class used?
    [Sorry if you've seen this posting a couple of days ago on interest.xml newsgroup.
    I didn't intend to repost but due to lack of response there, I thought this newsgroup
    was more appropriate and read more.]
    Thanks,
    John

    manoj,
    Thanks for the help.
    Sample 4 tells me that there is no code generated that I can use to write out
    my non-built-in datatype to xml. For each of my non-built-in datatypes, I will
    have to hand write such code, or use a handler.
    John
    "manojc" <[email protected]> wrote:
    Here is an example of start form WSDL usecase:
    http://www.manojc.com/?sample11
    If you want to log the xml input/output to the web service
    you can use a handler. You need to edit the web-services.xml
    dd file to add handler.
    Here is a example of using handler. But this use source2wsdd
    instead of wsdl2service:
    http://www.manojc.com/?sample4
    Regards,
    -manoj
    "John Franey" <[email protected]> wrote in message
    news:3ef30db2$[email protected]..
    Hi,
    I created a wsdl and used the autotype and wsdl2service ant tasks togenerate
    java files.
    As part of my service, I want to log output in xml format of the datareceived.
    I can write my own serialization, or use the code that was generatedby
    autotype.
    I would rather not write my own. I want to use the code generated bywsdl2service.
    Trouble is I can not find a javadoc nor a sample code segment thatshows
    how!
    Call me dense, but I've spent several hours on BEA web pages lookingfor
    answers.
    This is what I found, but I could not get to work for various reasons:
    XML streaming: I have a codec (generated by autotype ant task), butit
    requires
    a SerializationContext. Where do I get a Serialization Context? I thinkserialize
    is a callout from WS and not for applicaiton code to call.
    javax.xml.rpc.encoding.Serializer: An object of this type is madeavailable by
    AbstractCodec (base class of generated code, but how is this classused?
    [Sorry if you've seen this posting a couple of days ago on interest.xml
    newsgroup.>>  I didn't intend to repost but due to lack of response there, I thought>this newsgroup>> was more appropriate and read more.
    Thanks,
    John

  • Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an er

    Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an error appears on the pages with video content?

    its in german:
    der Vorgang könnte nicht abgeschlossen werden.
    something like the process coundnt be completed

  • Please help how to get return array from rpg program on java code?

    Hi
    I have created a rpg program that returns 2 parameter 1 is the id and another one is list of array, when I called this program I passed two programparameter from my java code (see the code below) but when i checked what value would be return it is returned only first value of array. how will i get all array values ?
    please suggest me regarding this issues I amn't so much aware on java & AS400.
    try
    ProgramParameter[] parmList = new ProgramParameter[2];
    AS400Text p1 = new AS400Text(10);
    AS400Text p2 = new AS400Text(30);
    try
    parmList[0] = new ProgramParameter(10);
    parmList[1] = new ProgramParameter(30);
    parmList[0].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[1].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[0].setInputData(p1.toBytes("Pune"));
    parmList[1].setInputData(p2.toBytes(" "));
    catch(Exception ex)
    ProgramCall pgm = new ProgramCall(o);
    pgm.setProgram("/QSYS.LIB/XXX/XXX.PGM",parmList);
    if (pgm.run())
    byte s[] = parmList[1].getOutputData(); // HERE I got only first value of returning array.
    parmList[1].getOutputDataLength();
    //String sts = ((String) (new AS400Text(10,o).toBytes(s[0])));
    else
    AS400Message[] messageList = pgm.getMessageList();
    for (int msg = 0; msg < messageList.length; msg++) {
    catch(Exception ex)
    AS400Message[] messageList = null;
    finally
    o.disconnectAllServices();
    Reply With Quote

    Try this :
    try
    ProgramParameter[] parmList = new ProgramParameter[2];
    AS400Text p1 = new AS400Text(10);
    AS400Text p2 = new AS400Text(30);
    AS400Array arrP2 = new AS400Array(p2, 4);
    try
    parmList[0] = new ProgramParameter(10);
    parmList[1] = new ProgramParameter(30);
    parmList[0].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[1].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[0].setInputData(p1.toBytes("Pune"));
    parmList[1].setInputData(arrP2.toBytes({"","","",""}));
    catch(Exception ex)
    ProgramCall pgm = new ProgramCall(o);
    pgm.setProgram("/QSYS.LIB/XXX/XXX.PGM",parmList);
    if (pgm.run())
         Object[] objArr =  (Object [])arrP2.toObject( parmList[1].getOutputData() );
         for(int i =0; i<objArr.length;i++){
                System.out.println( " SKU " + i +" : " + objArr.toString());
    else
    AS400Message[] messageList = pgm.getMessageList();
    for (int msg = 0; msg < messageList.length; msg++) {
    catch(Exception ex)
    AS400Message[] messageList = null;
    finally
    o.disconnectAllServices();

  • Error serializing non-built in data type

    hi
    I am getting the following exception while accessing a webservice which uses non-built-in
    data types as parameter to the service method
    Its called ProcessingOrderTO.
    The ProcessingOrderTO has three sub-types.. one of which is a Collection
    Does anybody encountred this before
    I have also attch the WSDL generated .
    I am using wls81 SP1
    thanks
    jas
    java.rmi.RemoteException: web service invoke failed: javax.xml.soap.SOAPException:
    failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface java.util.Collection class context=TypedClassContext{schemaType=['java:language_builtins.util']:Collection};
    nested exception is:
    javax.xml.soap.SOAPException: failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface java.util.Collection class context=TypedClassContext{schemaType=['java:language_builtins.util']:Collection}
    javax.xml.soap.SOAPException: failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface java.util.Collection class context=TypedClassContext{schemaType=['java:language_builtins.util']:Collection}
    at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
    at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
    at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:619)
    at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:444)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:270)
    at mypackage.orderprocessing.processing.client.OrderProcessingAssemblerXDBeanPort_Stub.processOrder(OrderProcessingAssemblerXDBeanPort_Stub.java:45)
    at mypackage.orderprocessing.processing.client.Client.main(Client.java:69)
    [OrderProcessingAssemblerXDBean.wsdl]

    Hi Mik
    Thanks for these suggestions.I have now completely moved to specific types, instead
    of the Collections and ArrayList.
    Things seem to be working fine ....thanks for all your help
    thanks
    jas
    "Michael Wooten" <[email protected]> wrote:
    >
    Hi Jas,
    My mistake. I copied the code from a DII client and you are using a Stub
    one :-)
    The correct code is:
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    Where the service variable is what was returned from your XXX_Impl()
    call.
    You don't have to cast anything, because the object returned from that
    method
    already extends javax.xml.rpc.Service.
    w.r.t. you "moreover" text:
    As long as the definition of the non-built-in types is the same as the
    WSDL you
    sent earlier, you shouldn't have a problem. The question I have is why
    are you
    a using java.util.Collection object on a web service operation's method
    signature,
    in the first place? When you do this, you do to things:
    1. Producing WSDL that has xsd:anyType for element types. xsd:anyTypes
    are fine
    for defining XML grammars (i.e. WSDL, SOAP, etc.), but they add too much
    mystery
    to a business service. They basically tell the WSDL consumer, "the content
    of
    this element can be anything, so you'll have to figure out what it is
    when you
    get it. Hee, hee, hee!"
    2. Introducing Java-specific classes into your web service. If the extrasList
    element always contains the same type of elements, the type for it should
    be an
    array of whatever that object is. If you used an ArrayList because you
    don't know
    how many elements this will be, you can still use it in the implementation,
    and
    call the toArray() method to return a typed array.
    To me, it just seems wrong to use Java container objects (i.e. ArrayList,
    Collection,
    HashMap, Set, etc.) in a web service operation's method signature, because
    it
    goes against the "programming language agnostic" idea of web services
    :-) Just
    my two cents.
    Regards,
    Mike Wooten
    "jas" <[email protected]> wrote:
    hi Michael
    thanks for the reply ..
    I tried using the smippet below .. but instead got a ClassCast Exception
    at
    TypeMappingRegistry registry = ((Service) port).getTypeMappingRegistry();
    Moreover
    1. When i generate client-jars using the clientgen task, the definition
    of my
    non-built-in types is different ...
    2.
    thanks
    jas
    "Michael Wooten" <[email protected]> wrote:
    Hi Jas,
    From the stack trace, it looks like you are using a JAX-RPC stub client.
    Our java.util.Collection
    serializer/deserializer is assigned to the "java:language_builtins.util"
    namespace,
    so you'll need to register the ArrayList and Collection in the TypeMappingRegistry.
    Here's a code snippet:
    import java.util.ArrayList;
    import java.util.Collection;
    import javax.xml.soap.SOAPConstants;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.encoding.TypeMapping;
    import javax.xml.rpc.encoding.TypeMappingRegistry;
    import weblogic.xml.schema.binding.internal.builtin.JavaUtilArrayListCodec;
    import weblogic.xml.schema.binding.internal.builtin.JavaUtilCollectionCodec;
    TypeMappingRegistry registry = ((Service)port).getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING
    mapping.register(
         ArrayList.class,
         new QName("java:language_builtins.util", "ArrayList"),
         new JavaUtilArrayListCodec(),
         new JavaUtilArrayListCodec()
    mapping.register(
         Collection.class,
         new QName("java:language_builtins.util", "Collection"),
         new JavaUtilCollectionCodec(),
         new JavaUtilCollectionCodec()
    //invoke the web service operation that uses the ArrayList and Collection
    There use to be a problem were the type mapping information in the
    MyServiceClient.jar
    (the one that the clientgen Ant task produces), was incorrect, butI
    think this
    was fixed well before WLS 8.1 :-)
    I haven't tested the above with WLS 8.1 SP 1, but I think it may fix
    the problem
    you are having.
    BTW:
    JavaUtilArrayListCodec and JavaUtilCollectionCodec are in ${WL_HOME}/server/lib/webserviceclient.jar.
    Regards,
    Mike Wooten
    "jas" <[email protected]> wrote:
    hi
    I am getting the following exception while accessing a webservice
    which
    uses non-built-in
    data types as parameter to the service method
    Its called ProcessingOrderTO.
    The ProcessingOrderTO has three sub-types.. one of which is a Collection
    Does anybody encountred this before
    I have also attch the WSDL generated .
    I am using wls81 SP1
    thanks
    jas
    java.rmi.RemoteException: web service invoke failed: javax.xml.soap.SOAPException:
    failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface java.util.Collection classcontext=TypedClassContext{schemaType=['java:language_builtins.util']:Collection};
    nested exception is:
    javax.xml.soap.SOAPException: failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface java.util.Collection classcontext=TypedClassContext{schemaType=['java:language_builtins.util']:Collection}
    javax.xml.soap.SOAPException: failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface java.util.Collection classcontext=TypedClassContext{schemaType=['java:language_builtins.util']:Collection}
    at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
    at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
    at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:619)
    at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:444)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:270)
    at mypackage.orderprocessing.processing.client.OrderProcessingAssemblerXDBeanPort_Stub.processOrder(OrderProcessingAssemblerXDBeanPort_Stub.java:45)
    at mypackage.orderprocessing.processing.client.Client.main(Client.java:69)

  • I need urgent help to remove unwanted adware from my iMac. Help!

    I need urgent help to remove unwanted adware from my iMac. I have somehow got green underline in text ads, pop up ads that come in from the sides of the screen and ads that pop up selling similar products all over the page wherever I go. Its getting worse and I have researched and researched to no avail. I am really hestitant to download any software to remove whatever it is that is causing this problem. I have removed and reinstalled chrome. I have cleared Chrome and Safari cookies. Checked extensions, there are none to remove. I need to find an answer on how to get rid of these ads. Help please!

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/Application Support/VSearch
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchAgents/com.vsearch.agent.plist
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    Restart and empty the Trash. Don't try to empty the Trash until you have restarted.
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. It must be said that this failure of oversight is inexcusable and has seriously compromised the value of Gatekeeper and the Developer ID program. You cannot rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Implementation Restriction 'DBMS_LOB.READWRITE'  Urgent Help

    *"Implementation Restriction 'DBMS_LOB.READWRITE' Cannot directly access remote package variable or cursor"*
    Hello,
    I need urgent help in implementing DBMS_LOB package.
    I need to write data in LOB object using DBMS_LOB object
    following code is written in PRE-UPDATE Trigger for the block CTX
    on the form i have taken Clob_Desc_f as non database field of type CHAR(26000)
    After querying the data I change Clob_Desc_f and enter the new data when saved it shoud empty the lob field based on the key value with empty lob
    and then write the data into lob
    DECLARE
    w_Description_Clob CLOB;
    BEGIN
    Here Clob_Desc is the lob field in table cxt
    UPDATE Cxt
    SET Clob_Desc = Empty_Clob()
    WHERE Cxt.Key_Field = :Cxt.Key_Field RETURNING Clob_Desc INTO
    w_Description_Clob;
    Dbms_Lob.OPEN(w_Description_Clob, Dbms_Lob.Lob_Readwrite);
    Dbms_Lob.WRITE(w_Description_Clob
    ,Length(:Cxt.Clob_Desc_f)
    ,1
    ,:Cxt.Clob_Desc_f
    Dbms_Lob.CLOSE(w_Description_Clob);
    END;
    The above code gives error saying
    *1] RETURNING clause is not supported in client-side program.*
    *2] For the statement*
    Dbms_Lob.OPEN(w_Description_Clob, Dbms_Lob.Lob_Readwrite);
    gives error as " Implementation Restriction Dbms_Lob.Lob_Readwrite : Cannot directly access remote package variable."
    How can I use Dbms_Lob.OPEN
    Thanks in advance.
    Regards,
    Sourabh

    Hello,
    Here is the constants you can use directly:
    * file_readonly CONSTANT BINARY_INTEGER := 0;
    * lob_readonly CONSTANT BINARY_INTEGER := 0;
    * lob_readwrite CONSTANT BINARY_INTEGER := 1;
    * lobmaxsize CONSTANT INTEGER := 4294967295;
    * call CONSTANT PLS_INTEGER := 12;
    * session CONSTANT PLS_INTEGER := 10;
    * warn_inconvertible_char CONSTANT INTEGER := 1;
    * default_csid CONSTANT INTEGER := 0;
    * default_lang_ctx CONSTANT INTEGER := 0;
    * no_warning CONSTANT INTEGER := 0;
    10g
    * file_readonly CONSTANT BINARY_INTEGER := 0;
    * lob_readonly CONSTANT BINARY_INTEGER := 0;
    * lob_readwrite CONSTANT BINARY_INTEGER := 1;
    * lobmaxsize CONSTANT INTEGER := 18446744073709551615;
    * call CONSTANT PLS_INTEGER := 12;
    * session CONSTANT PLS_INTEGER := 10;
    * warn_inconvertible_char CONSTANT INTEGER := 1;
    * default_csid CONSTANT INTEGER := 0;
    * default_lang_ctx CONSTANT INTEGER := 0;
    * no_warning CONSTANT INTEGER := 0;
    Francois

  • Problem with DII client for Doc/Literal with non built-in type in WL8.1 Sp2

    Hello,
    I have been trying to make this DII client for doc/literal using non built-in type to work for 2 days now.
    Any help/input will be greatly appreciated. I have added the code and wsdl below.
    BTW this is using the code first approach.
    Works perfectly fine with the clientgen generated stubs. But not with DII.
    With the stubs, following is the SOAP envelope.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:getType xmlns:n1="http://www.aeb.com/wlws">
         <n2:id xmlns:n2="java:com.aeb.types">XYS</n2:id>
         <n3:name xmlns:n3="java:com.aeb.types">Name</n3:name>
    </n1:getType>
    </env:Body>
    </env:Envelope>
    With DII (using the serializer/deserializer generated by clientgen),
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:TestType xmlns:n1="java:com.aeb.types">
         <n1:id>ABC</n1:id>
         <n1:name>Some Name</n1:name>
    </n1:TestType>
    </env:Body></env:Envelope>
    Exception
    javax.xml.rpc.soap.SOAPFaultException: Unable to find a matching Operation for this remote invocation
    <n1:TestType xmlns:n1="java:com.aeb.types">
    <n1:id>ABC</n1:id>
    <n1:name>Some Name</n1:name>
    </n1:TestType>.
         Please check your operation name.
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
         at com.amgen.webservice.clients.DocClient.callService(DocClient.java:83)
         at com.amgen.webservice.clients.DocClient.main(DocClient.java:35)
    Client
    System.setProperty("javax.xml.rpc.ServiceFactory","weblogic.webservice.core.rpc.ServiceFactoryImpl");
    System.setProperty("weblogic.webservice.verbose", "true");
    String targetNamespace = "http://www.aeb.com/wlws";
    ServiceFactory factory = ServiceFactory.newInstance();
    QName serviceName = new QName(targetNamespace, "DocWebservice");
    QName portName = new QName(targetNamespace, "DocWebservicePort");
    QName operationName = new QName(targetNamespace, "getType");
    Service service = factory.createService(serviceName);
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING);
    mapping.register(TestType.class, new QName("java:com.aeb.types","TestType"), new TestTypeCodec(), new TestTypeCodec());
    Call call = service.createCall();
    call.setOperationName(operationName);
    call.setPortTypeName(portName);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document");
    call.addParameter("testType", new QName("java:com.aeb.types","TestType"), TestType.class, ParameterMode.IN);
    call.setReturnType(new QName("java:com.aeb.types", "TestType"),TestType.class);
    call.setTargetEndpointAddress("http://localhost:7001/wlws/DocWebservice");
    TestType type = new TestType();
    type.setId("ABC");
    type.setName("Some Name");
    TestType res = (TestType) call.invoke(new Object[] { type });
    System.out.println(res.getName());
    TestType.java
    package com.aeb.types;
    import java.io.Serializable;
    public class TestType implements Serializable {
         private String id;
         private String name;
         public String getId() {
              return id;
         public void setId(String id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
    DocWebservice.java
    package com.aeb.webservices;
    import com.aeb.types.TestType;
    public class DocWebservice {
         public TestType getType(TestType type) {
              System.out.println("In Server....");
              System.out.println("Received : " + type.getName());
              return type;
    ServiceGen Ant Task
    <servicegen destear="${dist.dir}/wlws.ear" contexturi="wlws">
         <service javaClassComponents="com.aeb.webservices.DocWebservice"
              generateTypes="True"
              targetNamespace="http://www.aeb.com/wlws"
              serviceName="DocWebservice"
              serviceURI="/DocWebservice"
              style="document">
              <client packageName="com.aeb.ws.doc.client" />
         </service>
    </servicegen>
    WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns:tns="http://www.aeb.com/wlws" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.aeb.com/wlws">
    <types xmlns:tns="http://www.aeb.com/wlws"
    xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"
    xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="http://www.aeb.com/wlws"
    xmlns:tp="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="http://www.aeb.com/wlws">
    <xsd:import namespace="java:com.aeb.types">
    </xsd:import>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getType"
    nillable="true">
    </xsd:element>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getTypeResponse"
    nillable="true">
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="java:com.aeb.types">
    <xsd:complexType name="TestType">
    <xsd:sequence>
    <xsd:element type="xsd:string"
    name="id"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    <xsd:element type="xsd:string"
    name="name"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </types>
    <message name="getType">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="testType"
    element="partns:getType">
    </part>
    </message>
    <message name="getTypeResponse">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="result"
    element="partns:getTypeResponse">
    </part>
    </message>
    <portType name="DocWebservicePort">
    <operation name="getType">
    <input message="tns:getType">
    </input>
    <output message="tns:getTypeResponse">
    </output>
    </operation>
    </portType>
    <binding type="tns:DocWebservicePort"
    name="DocWebservicePort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http">
    </soap:binding>
    <operation name="getType">
    <soap:operation style="document"
    soapAction="">
    </soap:operation>
    <wsr:reliability persistDuration="60000">
    </wsr:reliability>
    <input>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </input>
    <output>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </output>
    </operation>
    </binding>
    <service name="DocWebservice">
    <port name="DocWebservicePort"
    binding="tns:DocWebservicePort">
    <soap:address location="http://localhost:7001/wlws/DocWebservice">
    </soap:address>
    </port>
    </service>
    </definitions>
    Thanks
    Aspert

    Hello,
    I have been trying to make this DII client for doc/literal using non built-in type to work for 2 days now.
    Any help/input will be greatly appreciated. I have added the code and wsdl below.
    BTW this is using the code first approach.
    Works perfectly fine with the clientgen generated stubs. But not with DII.
    With the stubs, following is the SOAP envelope.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:getType xmlns:n1="http://www.aeb.com/wlws">
         <n2:id xmlns:n2="java:com.aeb.types">XYS</n2:id>
         <n3:name xmlns:n3="java:com.aeb.types">Name</n3:name>
    </n1:getType>
    </env:Body>
    </env:Envelope>
    With DII (using the serializer/deserializer generated by clientgen),
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:TestType xmlns:n1="java:com.aeb.types">
         <n1:id>ABC</n1:id>
         <n1:name>Some Name</n1:name>
    </n1:TestType>
    </env:Body></env:Envelope>
    Exception
    javax.xml.rpc.soap.SOAPFaultException: Unable to find a matching Operation for this remote invocation
    <n1:TestType xmlns:n1="java:com.aeb.types">
    <n1:id>ABC</n1:id>
    <n1:name>Some Name</n1:name>
    </n1:TestType>.
         Please check your operation name.
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
         at com.amgen.webservice.clients.DocClient.callService(DocClient.java:83)
         at com.amgen.webservice.clients.DocClient.main(DocClient.java:35)
    Client
    System.setProperty("javax.xml.rpc.ServiceFactory","weblogic.webservice.core.rpc.ServiceFactoryImpl");
    System.setProperty("weblogic.webservice.verbose", "true");
    String targetNamespace = "http://www.aeb.com/wlws";
    ServiceFactory factory = ServiceFactory.newInstance();
    QName serviceName = new QName(targetNamespace, "DocWebservice");
    QName portName = new QName(targetNamespace, "DocWebservicePort");
    QName operationName = new QName(targetNamespace, "getType");
    Service service = factory.createService(serviceName);
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING);
    mapping.register(TestType.class, new QName("java:com.aeb.types","TestType"), new TestTypeCodec(), new TestTypeCodec());
    Call call = service.createCall();
    call.setOperationName(operationName);
    call.setPortTypeName(portName);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document");
    call.addParameter("testType", new QName("java:com.aeb.types","TestType"), TestType.class, ParameterMode.IN);
    call.setReturnType(new QName("java:com.aeb.types", "TestType"),TestType.class);
    call.setTargetEndpointAddress("http://localhost:7001/wlws/DocWebservice");
    TestType type = new TestType();
    type.setId("ABC");
    type.setName("Some Name");
    TestType res = (TestType) call.invoke(new Object[] { type });
    System.out.println(res.getName());
    TestType.java
    package com.aeb.types;
    import java.io.Serializable;
    public class TestType implements Serializable {
         private String id;
         private String name;
         public String getId() {
              return id;
         public void setId(String id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
    DocWebservice.java
    package com.aeb.webservices;
    import com.aeb.types.TestType;
    public class DocWebservice {
         public TestType getType(TestType type) {
              System.out.println("In Server....");
              System.out.println("Received : " + type.getName());
              return type;
    ServiceGen Ant Task
    <servicegen destear="${dist.dir}/wlws.ear" contexturi="wlws">
         <service javaClassComponents="com.aeb.webservices.DocWebservice"
              generateTypes="True"
              targetNamespace="http://www.aeb.com/wlws"
              serviceName="DocWebservice"
              serviceURI="/DocWebservice"
              style="document">
              <client packageName="com.aeb.ws.doc.client" />
         </service>
    </servicegen>
    WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns:tns="http://www.aeb.com/wlws" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.aeb.com/wlws">
    <types xmlns:tns="http://www.aeb.com/wlws"
    xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"
    xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="http://www.aeb.com/wlws"
    xmlns:tp="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="http://www.aeb.com/wlws">
    <xsd:import namespace="java:com.aeb.types">
    </xsd:import>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getType"
    nillable="true">
    </xsd:element>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getTypeResponse"
    nillable="true">
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="java:com.aeb.types">
    <xsd:complexType name="TestType">
    <xsd:sequence>
    <xsd:element type="xsd:string"
    name="id"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    <xsd:element type="xsd:string"
    name="name"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </types>
    <message name="getType">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="testType"
    element="partns:getType">
    </part>
    </message>
    <message name="getTypeResponse">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="result"
    element="partns:getTypeResponse">
    </part>
    </message>
    <portType name="DocWebservicePort">
    <operation name="getType">
    <input message="tns:getType">
    </input>
    <output message="tns:getTypeResponse">
    </output>
    </operation>
    </portType>
    <binding type="tns:DocWebservicePort"
    name="DocWebservicePort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http">
    </soap:binding>
    <operation name="getType">
    <soap:operation style="document"
    soapAction="">
    </soap:operation>
    <wsr:reliability persistDuration="60000">
    </wsr:reliability>
    <input>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </input>
    <output>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </output>
    </operation>
    </binding>
    <service name="DocWebservice">
    <port name="DocWebservicePort"
    binding="tns:DocWebservicePort">
    <soap:address location="http://localhost:7001/wlws/DocWebservice">
    </soap:address>
    </port>
    </service>
    </definitions>
    Thanks
    Aspert

  • JAX-RPC - dynamic wsdl - non-built-in data types

    I thought my recent exp with developing a JAX-RPC client using a dynamic wsdl to communicate to a non-weblogic Web Service might help somebody out there. :-)
    JAX-RPC Mechanism in Weblogic for dynamic_wsdl seems to work only with built-in data types. Weblogic also supports non-built-in data types, but you need to do some extra work! For the user-defined objects, you need to generate their types and register them.
    Note: The samples given in Weblogic 8.1 do not use non-built-in data types!
    Make sure you use the ant task "autotype" in your build.xml to generate the appropriate types (objects to support java-xml and xml-java converstion), types.xml from the wsdl. Register the types.xml file in your calling client code.
    If you do not use register the types for the user-defined classes used in the web services method signatures, then you are likely to get the foll. exception.
    javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementw
    eblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml
    .soap.SOAPElement class context=TypedClassContext{schemaType=['http://svcVodafonePooled.wsdlgen.jipi
    lot.vodafone.com']:getStock}
    C:\Tutorial\WS\dynamic_wsdl>ant run
    Buildfile: build.xml
    run:
    [java] Creating the service...
    [java] Creating the call...
    [java] invoking the call....
    [java] javax.xml.rpc.JAXRPCException: failed to invoke operation 'getStock' due to an error in
    the soap layer (SAAJ); nested exception is: Message[ failed to serialize interface javax.xml.soap.SO
    APElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface
    javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://svcVodafonePooled.ws
    dlgen.jipilot.vodafone.com']:getStock}]StackTrace[
    [java] javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementw
    eblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml
    .soap.SOAPElement class context=TypedClassContext{schemaType=['http://svcVodafonePooled.wsdlgen.jipi
    lot.vodafone.com']:getStock}
    [java] at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
    [java] at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
    [java] at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:645)
    [java] at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
    [java] at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
    [java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    [java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    [java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
    [java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
    [java] at Main.main(Main.java:61)
    [java] Caused by: weblogic.xml.schema.binding.SerializationException: mapping lookup failure. c
    lass=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://svcVod
    afonePooled.wsdlgen.jipilot.vodafone.com']:getStock}
    [java] at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(RuntimeUtils.java:151)
    [java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:187)
    [java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
    [java] at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:324)
    [java] ... 9 more
    [java] ]
    [java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:578)
    [java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
    [java] at Main.main(Main.java:61)
    [java] Exception in thread "main"
    [java] Java Result: 1

    The foll. code worked fine for me in Weblogic 8.1 SP3, on Windows 2000.
    Note: the 2 important lines of code:
    TypeMappingRegistry registry service.getTypeMappingRegistry();
    registry.registerDefault(new DefaultTypeMapping("types.xml"));
    package auth;
    import java.net.URL;
    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 javax.xml.rpc.encoding.TypeMapping;
    import javax.xml.rpc.encoding.TypeMappingRegistry;
    import weblogic.webservice.core.encoding.stream.SOAPElementCodec;
    import javax.xml.rpc.encoding.*;
    import weblogic.webservice.encoding.DefaultTypeMapping;
    public class DClient1 {
    static private void print(String msg) {
         System.out.println("DClient1: " + msg);
    public static void main(String[] argv) throws Exception {
    System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
    System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    ServiceFactory factory = ServiceFactory.newInstance();
    String targetNamespace = "http://www.vishwa.com/amazingworld";
    QName serviceName = new QName(targetNamespace, "GeminiPasswordService");
    QName portName = new QName(targetNamespace, "GeminiPasswordServicePort");
    QName operationName = new QName("", "checkPassword");
    URL wsdlLocation = new URL("http://localhost:7001/GeminiPasswordService/GeminiPasswordService?WSDL");
         print("Creating the service...");
    Service service = factory.createService(wsdlLocation, serviceName);
         print("Creating the call...");
    Call call = service.createCall(portName, operationName);
         TypeMappingRegistry registry = service.getTypeMappingRegistry();
         registry.registerDefault(new DefaultTypeMapping("types.xml"));
         print("invoking the call....");
    Object[] inParams = new Object[2];
    inParams[0] = "clark1";
    inParams[1] = "kent1";
    Object result = call.invoke(inParams);
    print("Client return value: = " + result.toString());
    QName operationName1 = new QName("", "getBook");
    print("Creating the call...");
    Call call1 = service.createCall(portName, operationName1);
    print("invoking the call....");
    Name n = new Name();
         n.setFirstname("Walker");
         n.setAge(50);
         Object[] inParams1 = new Object[1];
         inParams1[0] = n;
    Book b = (Book) call1.invoke(inParams1);
    print("author: " + b.getAuthor());
    print("money: " + b.getMoney());
    }

  • Non-built-in type contained in a java.util.List creates a SoapFaultException

    I have created a web service that utilizes non-built-in types which uses other
    non-built-in types...(simplified example follows)
    public class MyService {
    public
    Foo getFoo( String id ) {
    Foo foo = ...; // get persisted foo
    return foo;
    package mypackage;
    public class Foo {
    java.util.List barList;
    public java.util.List getBars() { return barList; }
    public void setBars( java.util.List barList ) { this.barList = barList; }
    public class Bar {
    // some attributes
    I autotyped Bar explicitly and had servicegen/service autotype non-built-in data
    types for MyService (aka..Foo)
    When I execute the test web page...I get the following soap fault exception (Note:
    only if the barList contains some Bar objects)
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Exception during processing: Error at line:1 col:9159 '1' expected
    [?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Error
    at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
         at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
         at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
         at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
         at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
         at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
         at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
         at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
         at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
         at weblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:147)
         at weblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174)
         at weblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckSoapFaultHandler.java:21)
         at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:231)
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
         at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:349)
         at weblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebServiceServlet.java:354)
         at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:300)
         at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:344)
         at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:266)
         at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
         at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:255)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    </bea_fault:stacktrace>
    </detail>
    </env:Fault>
    When barList is empty...the webservice executes without any problems.
    I noticed in the generated types.xml...there is a "List" entry and a "java.util.List"
    entry. The bars has "List" associated with it...
    <?xml version="1.0" encoding="UTF-8"?>
    <XMLSchemaAndTypeMapping>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:mypackage"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:mypackage">
    <xsd:complexType name="Foo">
    <xsd:complexContent>
    <xsd:element xmlns:tp="java:language_builtins.util"
    name="bars"
    type="tp:List"
    nillable="true"
    minOccurs="1"
    maxOccurs="1">
    </xsd:element>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:language_builtins.util"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:language_builtins.util">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
    </xsd:import>
    <xsd:complexType name="List">
    <xsd:complexContent>
    <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    base="soapenc:Array">
    <xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    ref="soapenc:arrayType"
    wsdl:arrayType="xsd:anyType[]">
    </xsd:attribute>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Bar"
    type="lcl0:Bar"
    serializer="mypackage.BarCodec"
    deserializer="mypackage.BarCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
    class-name="java.util.List"
    type="lcl0:List"
    serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
    deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
    >
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Foo"
    type="lcl0:Foo"
    serializer="mypackage.FooCodec"
    deserializer="mypackage.FooCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>
    </XMLSchemaAndTypeMapping>
    Any ideas what is causing the problem?
    Using WLS 8.1 sp2 on WinXP, JDK 1.4
    Thanks in advance.
    - Doug

    Certain generic types like java.lang.Object, List etc
    may not work properly with the test page, because it
    is not possible to figure out how the XML data should
    look like.
    Can you please try it out using a clientgen generated
    stub?
    Regards,
    -manoj
    http://manojc.com
    "Doug Leeper" <[email protected]> wrote in message
    news:40e32790$1@mktnews1...
    >
    I have created a web service that utilizes non-built-in types which usesother
    non-built-in types...(simplified example follows)
    public class MyService {
    public
    Foo getFoo( String id ) {
    Foo foo = ...; // get persisted foo
    return foo;
    package mypackage;
    public class Foo {
    java.util.List barList;
    public java.util.List getBars() { return barList; }
    public void setBars( java.util.List barList ) { this.barList =barList; }
    public class Bar {
    // some attributes
    I autotyped Bar explicitly and had servicegen/service autotypenon-built-in data
    types for MyService (aka..Foo)
    When I execute the test web page...I get the following soap faultexception (Note:
    only if the barList contains some Bar objects)
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Exception during processing: Error at line:1 col:9159 '1'expected
    [?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
    <detail>
    <bea_fault:stacktracexmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Er
    ror
    at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
    at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
    at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
    at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
    at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
    at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
    atweblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
    at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
    at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
    atweblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:
    147)
    atweblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174
    atweblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckS
    oapFaultHandler.java:21)
    atweblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.ja
    va:231)
    atweblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
    atweblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
    atweblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase
    .java:349)
    atweblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebSe
    rviceServlet.java:354)
    atweblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.j
    ava:300)
    atweblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServ
    iceServlet.java:344)
    atweblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:26
    6)
    atweblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
    atweblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet
    .java:255)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:971)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:
    313)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:6356)
    atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
    t.java:317)
    atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3635)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    </bea_fault:stacktrace>
    </detail>
    </env:Fault>
    When barList is empty...the webservice executes without any problems.
    I noticed in the generated types.xml...there is a "List" entry and a"java.util.List"
    entry. The bars has "List" associated with it...
    <?xml version="1.0" encoding="UTF-8"?>
    <XMLSchemaAndTypeMapping>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:mypackage"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:mypackage">
    <xsd:complexType name="Foo">
    <xsd:complexContent>
    <xsd:element xmlns:tp="java:language_builtins.util"
    name="bars"
    type="tp:List"
    nillable="true"
    minOccurs="1"
    maxOccurs="1">
    </xsd:element>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:language_builtins.util"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:language_builtins.util">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
    </xsd:import>
    <xsd:complexType name="List">
    <xsd:complexContent>
    <xsd:restrictionxmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    base="soapenc:Array">
    <xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    ref="soapenc:arrayType"
    wsdl:arrayType="xsd:anyType[]">
    </xsd:attribute>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Bar"
    type="lcl0:Bar"
    serializer="mypackage.BarCodec"
    deserializer="mypackage.BarCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
    class-name="java.util.List"
    type="lcl0:List"
    serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
    >
    deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec
    >>
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Foo"
    type="lcl0:Foo"
    serializer="mypackage.FooCodec"
    deserializer="mypackage.FooCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>
    </XMLSchemaAndTypeMapping>
    Any ideas what is causing the problem?
    Using WLS 8.1 sp2 on WinXP, JDK 1.4
    Thanks in advance.
    - Doug

  • URGENT HELP ON BMP CMP!!!

    Hi everybody!!
    I've wrote few CMP EJB's before and now Im trying to write a BMP EJB.
    In the finder methods I�ve to select data from two tables:
    "product_catalog" and "product" (relation One to many)
    The query that matches my needs is:
    SELECT DISTINCT a.product_code, b.product_description
    FROM product a, product_catalog b
    WHERE a.product_code = b.product_code
    AND (a.region_code = '00' OR a.region_code = 'variable argument')
    AND b.product_line <> '08'
    Note that in the FROM clause of the query data is retrieved from two tables and that the WHERE conditions involve both tables.
    �A query like this can be implemented into a finder method of a BMP EJB?
    �What about the descriptor? -Im using Websphere Application Server 4.0-
    �How can I tell the container which fields will be persistent?
    �Which fields should I've to specify as primary key fields? �The ones from the parent table? �What about the ones from the child table? �What about the query in the ejbLod() and the ejbStore() methods that select and update data from the table(s)?
    I've looked at the J2EE tutorial examples but none of the examples uses a query like mine.
    As you can see I need URGENT help on this.
    All the help you can give will be greatfully welcome!!
    THANKS!!!
    Ezequiel Velazquez

    Greetings,
    Note that in the FROM clause of the query data is
    retrieved from two tables and that the WHERE
    conditions involve both tables.IOW: an "inner join"...
    �A query like this can be implemented into a finder
    method of a BMP EJB?BMP differs from CMP in that as the bean coder: you are in control of the query and therefore can be as simple or as complex as required without required to the container's query language support. However, remember the implementation rules of finder methods:
    1. A finder method's purpose is simply to locate entities in the resource; and, therefore...
    2. A finder method returns an instance of the PrimaryKey class (or collection thereof).
    Also...
    a. The container calls a corresponding ejbFind method on an instance in the free pool; and, therefore...
    b. A finder method should not attempt to manipulate bean state.
    Therefore, as long as the data returned by your join query (a.product_code, b.product_description), compose a PrimaryKey class instance, you are fine.
    However, I will add that it should be remembered that an EBs purpose is to provide an OO representation of shareable, persistent, data ("entities") in an enterprise resource. They have a specific purpose and do not merely provide "data access" or act as "resource managers". From your example given, it seems your "entity" may be uniquely identified from 'a.product_code', a common primary(?) key in both tables and that the code is actually trying to act as a report writer. If your SELECTed data (a.product_code, b.product_description) do not together comprise a unique entity representation in your application then this is incorrect usage. In this case you should either generate the query from a Session Bean or create separate Entity Beans for each of your tables 'a' and 'b' and handle your 'joins' in business methods.
    �What about the descriptor? -Im using Websphere
    Application Server 4.0-Your descriptor will identify the bean's <persistence-type> as "Bean". This is all it needs to know about the bean since the Bean is Manag[ing] it's own Persistence (BMP ;).
    �How can I tell the container which fields will be
    persistent?Er, you don't. BMP beans manage their own persistence and, therefore, manage their own fields. Refer again to the above.
    �Which fields should I've to specify as primary key
    fields? �The ones from the parent table? �What about
    the ones from the child table? �What about the query
    in the ejbLod() and the ejbStore() methods that select
    and update data from the table(s)?These are all questions related to how your application requires an "OO representation of its resource data" to be mapped to the backend resource(s). Only "you" can really answer these questions. However, refer back to the above for some implicit pointers. :)
    I've looked at the J2EE tutorial examples but none of
    the examples uses a query like mine.The tutorial is intended for beginners to J2EE development and, therefore, provide only simplistic examples. For a more thorough examination, refer to the J2EE Blueprints.
    As you can see I need URGENT help on this.
    All the help you can give will be greatfully
    welcome!!I hope this helps.
    THANKS!!!
    Ezequiel VelazquezRegards,
    Tony "Vee Schade" Cook

  • URGENT HELP NEEDED!!! (Almost a matter of life and death)

    Well, it's more of a matter of failing a course or not...
    Anyway, my Java professor gave us some labs to do. I know Java front and back, at least, whatever version I learned a few years back. This is my first tenure with the Scanner object, and it's messing me up.
    I'm using Eclipse for my project. I have three files in the source folder, ABC_Manufacturing.java, mseast.dat and mswest.dat. Now, when I try to instanciate a new Scanner object, it won't find the files:
    Scanner east = new Scanner(new FileReader("mseast.dat"));
    Scanner west = new Scanner(new File("mswest.dat"));
    I'm trying two seperate ways to do this. Neither are working, this is the error I get:
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
         Unhandled exception type FileNotFoundException
         Unhandled exception type FileNotFoundException
         at ABC_Manufacturing.main(ABC_Manufacturing.java:38)
    Now, I added these files OVER and OVER again. I added them. I created new files and pasted the contents in there. I used .txt files. All the same error. It's like it just won't take the time out to look for the files that are RIGHT IN THE DAMN PROJECT! Then I tried using a complete path, using C:\Java\whatever. SAME ERROR!!!!
    Please, I need urgent help. This is due tomorrow at noon, and I have no idea what to do at this point. I can't really continue, because at this point its just looking at what prints out and formatting it, and I don't want to do that without testing to see if my code to convert the file data into arrays work. You dig? Thanks for any and all help, and I'm going to kill my professor...she spent a week going over parallel arrays but did nothing to show us how to import files into projects or use the scanner class. Also it doesn't help that at uni we have to use emacs, which I don't use at home.

    d00erino wrote:
    This is the the main class, so far:
    public static void main(String[] args)throws IOException
              Scanner west = new Scanner(new File("mswest.dat"));
              int [] eastParts = new int[13];
              int [] eastQuant = new int[13];
              int [] westParts = new int[17];
              int [] westQuant = new int[17];
              System.out.print(west.nextInt());
    And I didn't ignore that one guy (sorry, don't remember your username) I tried you and the other guy's responce. Both didn't work. I dunno how to get around errors. Figures, you don't learn that in the course but she'll spend a week on parallel arrays...Ok, well that can't possibly be complaining with the same error message you got before, so now you need to be (more) specific about what "didn't work" means.

  • Urgent help needed!! Layout table and Draw layout cell dissapeared.

    I need some urgent help. I'm using CS3 but for a while my
    Layout Table and Draw Layout Cell icons appear greyed and can't use
    them at all. Is there any kind soul out there who knows how to fix
    this? I'm going nuts trying all the possible options but none seem
    to work.
    Help please!!!!!!

    > How would you about designing a page without using html?
    You don't. But I don't recall suggesting that you not use
    HTML. I just
    suggested that you use best-practice HTML, no? Or maybe you
    meant to ask
    how you would go about building your site without learning
    HTML? In that
    case, I think you are outta luck. Using DW without knowing
    HTML is a very
    punishing experience, I'm afraid.
    > PS: A virtual box of 12 bottles of Moet Chandon is
    already on your way!!
    I'd prefer Cristal, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Untersberg" <[email protected]> wrote in
    message
    news:g4tj9a$m5o$[email protected]..
    > Ahhhhhh!!!!! They came up!!!! They came up again!!
    > I was on standard mode. Now going back to your
    suggestion, which I really
    > appreciate. How would you about designing a page without
    using html? I'm
    > just
    > redesigning my website at the moment and need it to get
    going urgently,
    > hence
    > the reluctance to start learning HTML at the moment.
    I'll do after but I
    > need
    > to get this up and running fairly quickly.
    >
    > Cheers.
    >
    > PS: A virtual box of 12 bottles of Moet Chandon is
    already on your way!!
    >

Maybe you are looking for

  • Accidently deleted Photobooth.  How to download?

    I accidently deleted Photobooth. Could anybody please help me with a link to download it? Th you Chip

  • Upgrade from Solaris 8 (5.8) to 5.10 fails

    Hi everyone... Here is a curly one for the Sun gurus. I attempted to perform the upgrade from Sol 8 (Dec/02) to Sol 10 (from the CD/DVD Jan/06) and got all the way past the "Test Upgrade Profile". The initialize started after I clicked onto the gui "

  • Can´t update to version 3.3.2 (Lion)

    Hello, While trying to update to version 3.3.2 and still running Lion I´m getting the following message: "You have updates available for other accounts. To update this application, sign in to the account you used to purchase it." I only have another

  • Zen V plus: screen st

    I was simply changing songs from one to another( to another song in another playlist), but when I moved down the playlist to the song I want, I clicked play, and then it just stuck there. After I tried to connect to my computer, but it is said that m

  • Default screen sizes for fuid grid & media query

    Is there a way to change the default sizes in the fluid grid dialog for new pages. I would like to start with a 320px mobile size not 480. (since there are hardly any devices that are 480 as far as I can tell. Changing the tablet size would also be u