Wscompile stubbornly uses SOAPElement as input/output to/from operation.

Hello. I am trying to create a web service client to consume our own web service using JWSDP 1.6. I have modified webserviceclient.xml to add "features=searchschema" in the wscompile element.
That correctly creates proxy classes for all the complexTypes in our web service's schema. However, our operation called runTransaction() should be accepting an object of type RequestMessage and returning an object of type ResponseMessage. The code generated by wscompile accepts and returns SOAPElement instead.
I have blindly tried all sorts of combinations of features (e.g. unwrap, explicitcontext) when calling wscompile but to no avail.
Am I missing something? When and why would wscompile not use the correct classes as input/output for any given operation? When and why would it choose SOAPElement instead?
In its current state, the generated code would let me populate the RequestMessage object with data but I do not see how I can eventually pass this RequestMessage object to the runTransaction() method (unless maybe I use serialization or something but that seems unnecessarily complicated). So, the generated proxy classes seem useless at this point.
Thanks. I'd really appreciate any help/direction.

Hello. I went ahead and added resolver.jar file to my classpath. Then, it looked for XMLStreamException, which I found in sjsxp/lib/jsr173_api.jar (which I have yet to find out what it's for). I went ahead and added that too. And now, I'm getting the stack trace below.
1. Why is it looking for a class from BEA?
2. How do I make it not to?
Please note that I do not have any configuration file or anything. Is there some client-side deployment file that I need to have and configure?
Thanks again,
Ever
Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at com.sun.xml.ws.streaming.XMLStreamReaderFactory.<clinit>(XMLStreamReaderFactory.java:63)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:140)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:165)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:62)
at com.sun.xml.ws.wsdl.WSDLContext.<init>(WSDLContext.java:57)
at com.sun.xml.ws.client.ServiceContextBuilder.build(ServiceContextBuilder.java:77)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java
:117)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:50)
at javax.xml.ws.Service.<init>(Service.java:58)
at com.mycompany.client.soap.TransactionProcessor.<init>(TransactionProcessor.java:42)
at MySample.main(MySample.java:141)

Similar Messages

  • Get multiple Input/Output Stream from same socket ?

    For a better express of my problem i will put my test example
    I have those 4 classes
    package test;
    import...
    public class ReaderExecutor extends Thread{
            private InputStream in = null;
            private static int defaultID = 0;
            private int ID = getID();
            public ReaderExecutor(InputStream in){
                this.in = in;
            public void run(){
                try {
                    int c ;
                    while ((c=in.read())!=-1)
                        System.out.println("ReaderThread " + this.ID + ":" + c);
                catch (IOException e) {
                    System.out.println("ReaderThread "+this.ID+" stopped !");
            private static int getID(){
                return defaultID++;
    package test;
    import...
    public class WriterExecuter extends Thread{
        OutputStream out = null;
        private static boolean odd = true;
        private boolean isOdd ;
        public WriterExecuter(OutputStream out) {
            this.out = out;
            isOdd = odd;
            odd = !odd;
        public void run(){
            try{
                for (int i = isOdd?1:2;i<10;i+=2){
                    System.err.println(i);
                    out.write(i);
            }catch(Exception e){
                System.out.println("WriterThread stopped !");
    package test;
    import...
    public class Main { 
        public Main() {
        public static void main(String[] args) throws Exception {
            try{
                ServerSocket ss = new ServerSocket(9090);
                System.out.println("Ascult ... ");
                Socket client = ss.accept();
                new ReaderExecutor(client.getInputStream()).start();
                //Thread.sleep(2000);
                new ReaderExecutor(client.getInputStream()).start();
            }catch (Exception e){
                e.printStackTrace();
    package test;
    import...
    public class Main1 {
        public Main1() {
        public static void main(String[] args) {
            try{
                Socket s = new Socket("localhost",9090);
                WriterExecuter t= null ;
                t = new WriterExecuter(s.getOutputStream());
                t.start();
                t = new WriterExecuter(s.getOutputStream());
                t.start();
            }catch(Exception e){
                e.printStackTrace();
    }Now if i run successive Main , Main1 i get this output
    Ascult ...
    ReaderThread 0:0
    ReaderThread 1:0
    ReaderThread 0:0
    ReaderThread 1:0
    ReaderThread 0:0
    ReaderThread 1:0
    ReaderThread 0:0
    ReaderThread 1:0
    ReaderThread 0:0
    ReaderThread 0 stopped !
    ReaderThread 1 stopped !The question is can i get other Input/Output individual streams with a separate logic functionality from the same socket?
    From this example it seems i can't :(
    Thx
    Alex

    For what you are trying to do the simplest solution is to have one socket per "stream" that is the way they are designed to be used.
    However, you can multiplex multiple stream over a single socket, but you have do the coding yourself or use a solution which does this for you e.g. JMS. (There is no support at the socket level for this)

  • Deleting the Input/Output Box from the screen

    Hi
    I created a input/out put box on a screen.Now I am unable to delete the input/output box.As i dont find the delete option any where.Please suggest the needful.I m using ECC4.6.
    Regards
    Rudra

    Then in PBO just seach for the screen name for which you have make it invisible.
    and put screen-invisible  = '1'.
    but this should be written with in a loop.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 7, 2008 12:56 PM

  • How to use Oracle refcursor dataset output parameter from SP

    Can I request for help on how to use Oracle Output parameter from a stored procedure as a source. I need the output tobe stored in a flat file
    Thanks
    Abhijit
    Message was edited by:
    Abhijit77

    yes I would like to use it for ODI.. I would like the ouput of the refcursor to be fed to a text file using ODI. How to handle the records returned by the refcursor and map with txt file.

  • Using Counters as Input & Output simultaneously

    Hello All,
    I am using PCI 6221 (68 pin), I am using one of the counters as inputting pulses to a servo, can I use the other counter "Counter 2" for counting thoses pulses which I am generating from "Counter 1", also I want to make it synchronized.
    As soon as I generate pulses my reading counter should start, anyone help me with some example.
    Using LV 8.0
    Thanks

    Hello James,
    If you are outputting a continuous pulse train then you should be able to use the second counter to read them back in.  If you're doing a finite generation to the servo motor then that task is actually using both counters (one counter gates the other:  How Many Counters Does Each Type of Counter Input or Output Task Take?).  Assuming that you do have an available counter then you can run any of the single counter input tasks listed in the above KnowledgeBase article.  There are a number of counter input task examples in the LabVIEW Example Finder that you can access by opening LabVIEW and going to Help» Find Examples...  Then navigate to Hardware Input and Output» DAQmx» Counter Measurements.  From there you'll need to find the example for whatever type of measurement you want to do.
    Synchronization is a different issue.  In general synchronization requires that two tasks start at the same time and share a timebase.  In this case, you can start the counter input task first since it will be waiting on the counter output to start measurements.  Then, if you do a buffered counter input measurement (see example finder--you'll need to set up an implicit sample clock), you'll get exactly one counter input measurement for each period of the counter output.  This happens because for frequency/period/pulse width the counter latches one value on each rising or falling edge so the measurements are automatically synced.
    I hope this helps, and have a great day!
    Brooks

  • Using the optical input/ output on Audigy 2 zs: cable doesn't

    So I've searched and can't find an answer on this forum
    The optical cable that I have that fits into the back of my Playstation 2 does not fit into the mic in (which I thought is optical in as well)
    So is it possible to have an optical cable go from a ps2 to the audigy 2 zs? Do I need a special optical cable?
    Thanks, this may be a stupid question, but I am lost cause on the card it does say "optical in" but the optical cable doesn't fit it.
    Thanks
    DD

    DD,
    There isn't any optical I/O jack on the Audigy 2 ZS soundcard at all so you won't be able to use your optical cable with the soundcard unless you have the I/O dri've bay like those from the Audigy 2 ZS Platinum or Platinum Pro. Do you have those I/O dri've bay instead of just the soundcard?
    JasonMessage Edited by Jason-CL on 09-3-2006 04:02 PM

  • Using two ports or Using two Input / Outputs

    I'm explaining my project. It s almost done. I send message and data to server and it is stored in server. From the begining I'm using
    BufferedReader - PrintWriterAnd I cannot send files because they are binary. I have to use
    BufferedInputStream - BufferedOutputStreamI cannot change my input / output. So I found two solutions:
    1) Connecting from another port with another socket. -> Using this it blames the ports. I cannot transfer anything from my first port.
    2) Using another input / output streams from the same port. -> I didn't tried it . Does anyone tried this. Is it possible to do this.
    That's the end of my project. I will give the name of project who gives me a good answer :D
    Best Regards, Bulent.

    I cannot change my input / output. Why not?
    So I found two solutions:
    1) Connecting from another port with another
    er socket. -> Using this it blames the ports. I
    cannot transfer anything from my first port.Huh? Unless the server stops you, there is nothing in sockets that prevents you, as a client, from connecting to the server twice.
    2) Using another input / output streams from the
    he same port. -> I didn't tried it . Does anyone
    tried this. Is it possible to do this. Nothing stops you from using an InputStream to create two different buffered solutions.
    I wouldn't even attempt this myself. It would create a very fragile application. But you could try it. You would need to carefully control when the two connections were used and in particular when they were closed. You could do this by wrapping both in a class.

  • Pci1200 digital input output

    Hi,I'm a student using labview 6.1 for the first time. I use the digital input/output lines of a pci 1200 card. I use 8 digital input lines placed in one sequence, and 7 digital output lines placed in another sequence. The VI can read the input lines but the output lines give a voltage of 0.5 Volts instead of 5 VOLTS, how can I solve this problem?

    What are you writing to the digital output lines in LabVIEW? Writing a Boolean value of False to a digital line will write a TTL logic low voltage and writing a Boolean value of True to a digital line will write a TTL logic high voltage. Make sure you are writing a true Boolean value to the lines you want to output 5 V.
    Also, make sure you are not loading down the digital outputs. The digital lines can source 13 mA of current. If you are connecting a small resistance load across the digital outputs, you might be loading down the digital ouputs. I hope this helps.
    Regards,
    Todd D.
    Applications Engineer
    National Instruments

  • How to set input/output "use" attribute in the WSDL file of BPEL process?

    Hello,
    I have a BPEL process that I want to deploy it as an RPC web service. I want to access it from a Java module (via an automatic generated Java stub from the WSDL file exposed by the BPEL process).
    I wrote manually the corresponding WSDL file for my BPEL process, where I stipulated for the operations exposed by my process ( in <soap:binding> tag) the value of the attribute "style" to "rpc". Also, for each <input> and <output> of the operations (inside the <operation> tag), I set manually the attributes "use" to the values "encoded". Something like this:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers"/>
    <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </input>
    <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </output>
    </operation>
    The issue is that, when the BPEL process is built and deployed, the WSDL file generated automatically by BPEL (based on the one manually writen) set the values of the "use" attributes to "literal". This is what is generated:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers" />
    <input>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </input>
    <output>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </output>
    </operation>
    Is there any chance to keep the original values (written by hand) for the "use attributes?
    Many thanks in advance!
    Regards,
    Marinel

    I am not sure I understand your question. If you want all your BPEL service to be rpc still by default, you can change the templates: C:\eclipse\plugins\bpelz_0.9.XXX\templates.
    The BPEL PM engine support both style of invocation.
    I hope this helps. -Edwin

  • Hi, I have a hard disk failure so to recover my data I am using disk utility to restore the data on an external drive while booting from a second external hard drive. When I perform the operation it gives me an input/output error and stops. Any tips?

    Hi, I have a hard disk failure so to recover my data I am using disk utility to restore the data on an external drive while booting from a second external hard drive. When I perform the operation and after having selected both my destination and source drives, the operation begins but soon fails due to input/output error. If I try to create an image of the drive it gives me the same error message. Any help would be much appreciated.

    Disk Utility only creates a image of the drive, so it's no help getting exactly what you want, which is your files. If the file structure is messed up or the drive is failing then it's no help.
    If you have a external boot drive and you can't access the internal non-booting drive though the typical Finder and windows to transfer your files via drag and drop methods, then you need to install Data Rescue on the external boot drive and it will do as best as it can to recover your files. (works on non-encrypted/non-Filevaulted drives only)
    .Create a data recovery/undelete external boot drive
    Are you sure you have hard drive failure, or that OS X isn't merely not booting?
    Because if the drive is working physically, then there is a host of fixes
    ..Step by Step to fix your Mac
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents#/

  • Help with Input/Output Parameter Size using OLE DB Provider

    I am using the OLE DB Provider for 9i in an Active Server Page to call a stored procedure in a 9i database. I pass have an input/output parameter (adVarChar with adSize=30) in which I pass a two digit number in, and expect to get a character value greater than 2 characters in return. However, when I execute the stored procedure call, it appears the value being returned in the parameter is being truncated to the size of the value I passed in (2 characters). Is there a way I can insure the parameter will return the entire length of the result regardless of the length of the input value?

    cmd.Parameters.Add("retstatus", OracleDbType.Varchar2, 200, ParameterDirection.InputOutput); It seems to me that you're trying to use an OracleParameter constructor with parameter name, parameter type, parameter SIZE, and parameter direction. But OracleParameter class does not have any such constructor. Therefore, your test tries to use another constructor incorrectly.
    OracleParameter has two constructors with four parameter ...
    public OracleParameter(string parameterName, OracleDbType type, object obj, ParameterDirection direction)
    public OracleParameter(string parameterName, OracleDbType type, int size, string srcColumn)
    ... and none of these matches your constructor. One way to solve this problem is to use appropriate constructor or OracleParameter properties.

  • Can't select input output and name media when using MRC1 log and transfer

    I am using a MRC1 from the Sony Z5E to film my media. I downloaded the plugin which allows me to log and transfer through FCP 6.0.6. The only problem is that it does not allow me to input/output and name the pieces of each clip that I want. Hence I can only import the whole clip and am wasting time and space with media that I do not want or need. Is there an additional plugin or setting to pick on FCP to get this feature to work?
    Rich

    Hi xhk, I'm a Kubuntu's user and I've had the same problems. I've been days reading on the Internet about this issue and finally I solve it by following this post from a Spanish tutorial: http://bit.ly/4p3XFq. It worked for me!
    Basically it is:
    1. Get install the needed packages, i.e: sudo apt-get install ibus ibus-pinyin
    2. After installing them, introduce a little code into two files:
    2.1.--> type on your konsole: kate /home/$(whoami)/.bashrc
       a--> add to the bottom of the opened text:
    export GTK_IM_MODULE=ibus
    export XMODIFIERS=@im=ibus
    export QT_IM_MODULE=ibus
       b-->save the changes on the text.
    2.2.--> type again on your konsole: kate /home/$(whoami)/.profile
      b--> repeat 2.1.a. and 2.1.b
    3. Go to main menu - system settings - advance - "autoarranque" (I don't know how it is called in English, "restarting" maybe?) and then "add a programme". Type: ibus-daemon -d, press OK and then rebooth.
    It shall be working by then.
    Last edited by mxd (2013-07-06 01:42:27)

  • HDMI only output ( using HDMI as input )

    Hello,
    I'm wondering if is possible to use the new MacMini for streaming.
    If the HDMI port can be used as a video input then I can use it with Quicktime Broadcaster feeding from a video camera equiped with HDMI.
    Is that possible or the HDMI port is output only?
    thanks in advance.
    Jordi

    Jordi Joaquim Recort wrote:
    Gracias David.
    I was this mornig at a Apple Store and they confirmed this.
    It's a pity.. Macs with HDMI input would be the second video revolution!
    Thanks!
    Jordi
    You can get an HDMI capture card for the Mac Pro, but obviously this will not fit in a Mac mini! See http://www.blackmagic-design.com/products/intensity/
    It is not clear whether this will work with sources using the ghastly HDCP content protection.
    There is also the Elgato EyeTV HD which will record from a component (not HDMI) source and this would work with a Mac mini as it connects via USB. See http://www.elgato.com/elgato/na/mainmenu/products/EyeTV-HD/product1.en.html

  • I'm using my electric guitar with GarageBand. With the input/output jack being full of my guitar cord, does anyone know if I can rig a BlueTooth speaker for output? Thanks in advance for any response.

    I'm using my electric guitar with GarageBand. With the input/output jack being full of my guitar cord, does anyone know if I can rig a BlueTooth™ speaker for output? Thanks in advance for any response.

    yes this will work
    you can also get a splitter cable that goes in to your in/out port so you can have 2 (or more) separate ports

  • External Hard Drive Input/Output error

    I recently started having problems with an external hard drive setup that I did not have problems with prior to upgrading to 10.5.5 and trying to setup the drive to be compatible with Time Machine.
    The hard drive enclosure that I have has 2 bays for two SATA drives. I have used this enclosure without any problems until I tried to get 1 drive to act as the backup drive for Time Machine and the other to be storage. I formatted them using Drive Genius. I used the option for GUILD or GUIL which it said was the better format for using with Time Machine.
    The first problem I ran into since upgrading and reformatting the drives is I got an "input/output" error the first couple times I connected the drive via USB to my Mac. I could still use the drives but I got weird errors every once in a while like "input/output error" or "device was not ejected properly" even though the device had not been unplugged.
    Now the drives will not mount using OS 10.5.5. The drives show up when I open Disk Utility, but I cannot get them to mount. I have ran Disk Utility First Aid, and it says the drives are fine. There is one error that shows up when I run the "Repair Disk" feature. It reads "Invalid content in Journal". But Disk Utility also says "The volume was repaired successfully".
    I have seen some posts when I do a search in google about this issue and it seems this is a known issue. Every suggestion I see says to insert your Tiger DVD and reformat the drive using that and the problem will be solved. The only problem with that is I have a lot of important files on the drive that I cannot lose. I had the files backed up until I moved them to the new drive a while back. Now I do not have a backup because I was in the process of switching to bigger drives and erased the old drives after doing so because everything was working fine.
    I am hoping someone out there may have some suggestions (other than erasing the drive) to get my dives to mount so I can transfer the data off to another drive and reformat after.
    Thanks,
    Paul Rugg

    Thanks for the suggestion.
    Do you think that would work better than Drive Genius? I bought Drive Genius 2 and it does not even see the drives when they are plugged in unlike Disc Utility which can see the drives but cannot mount either one.
    Maybe this following post I made to a different questions may help. The data on the drive is other buying another program for if it will work. I think my next step may be to go over to a friends place and try to mount the drives on his computer and transfer stuff off if they connect.
    text below posted to other question relating to external hard drive problem.
    I have recently had the same mounting issue with my new external hard drive. I just purchased a new 750Gb Western Digital Sata drive and got everything transfered over to it. Immediately, I got an error saying that the drive had been ejected incorrectly even though it was still plugged in. I was a little curious. I restarted the computer (hard drive still plugged in via USB 2.0) and the drive showed up just fine. I plugged another 250Gb drive into the same case (2 bays) and the 250GB drive showed up just fine.
    Well, I then noticed there was an OS upgrade available when I ran Software update so i ran it and when I rebooted the drives were gone. I can see the drives in Disc Utility, but they will not mount. Drive Genius cannot see either disc. Disc Utility says I need to repair the drives, but when I do it says they are fixed but they don not mount.
    The problem really seems to be related to mounting USB external drives. I got ahold of 2 seperate external firewire hard drives and one shows up just fine while the other has the same problem (both work on other systems. I would try wiping the drives and reformatting but ALL MY stuff is on them and not everything has been backed up. Yuck! I have not tried connecting my hard drive to another Mac yet.
    The drives being used are #1 Maxtor Maxline Plus II 250GB SATA/150 HDD 1.5b/s 7Y250m00654ra
    and #2 Western Digital WD7500AACS WD Caviar GP Green Power drive.
    I have another post similar to this and I have not received any feedback, but I have been doing my own searching and have found similar posts on the net.
    Anybody have any clue what might be going on here? It really seems to be related to my upgrade.

Maybe you are looking for