How to ignore extra WSDL operation when using JAX-WS?

Hello,
I'm migrating from Apache Axis2 to JAX-WS and i'm having the following issue:
I have a large WSDL file of size = 140 KB, however my client application invokes only 2 operations, so i removed all the other operations from the WSDL.
I successfully generated the stubs using "*wsimport* on the trimmed WSDL, and i put the original WSDL location in the +Service+ constructor:
MyService stub = new MyService(new URL(<original WSDL location>), new QName(<package>, <MyServiceName>));
when i ran the client, i got the following exception:
The Endpoint validation failed to validate due to the following errors: :: Invalid Endpoint Interface :: :: The operation names in the WSDL portType do not match the method names in the SEI or Web service implementation class.
Because of that, i got the original WSDL again, run *wsimport" on it, but it fails this time, with this error:
[ERROR] undefined simple or complex type 'soapenc:Array'
line 1086 of file:/root/DecisionControllerWS.wsdl
Googling the error, JAX-WS doesn't support RPC/Encoding.
So i'm stuck here, can't work with the trimmed WSD, can't generate the stubs with the full WSDL!
Any advise? thanks in advance.

I'm not a WSDL guru, but it seems that the location of the web service implementation is defaulted to the local host in the WSDL:
<port binding="s0:DecisionControllerWSSoapBinding" name="DecisionControllerWS">
<s1:address location="http://localhost:7001/rtds/webservices-adapter/DecisionControllerWS"/>
</port>
That's why i put the original WSDL location when i created the service, to point to the web service implementation, Was i wrong? because i found a property which can achieve that for me:
javax.xml.ws.BindingProvider.ENDPOINT_ADDRESS_PROPERTY
What if i edited the address location in the trimmed WSDL to point to the implementation, and used the default Service constructor to point to the local trimmed WSD file?

Similar Messages

  • How can we get ADFSecurity work when used in OC4J, OID and OAM?

    I am getting error in http server log "mod_oc4j: Response status=499 and reason=Oracle SSO, but failed to get mod_osso global context."
    But I am not using Oracle SSO and my client doesn't want to use it either, I am using OAM SSO(CoreIDSSO) in my configuration. Please read the details below.
    I am using ADFSecurity in an app that is protected by OAM. To migrate ADFSecurity permissions from
    system-jazn-data.xml to OID, I used JAZNMigrationTool to populate OID with Grantees and Permissions. OAM gives login page, and authentication works fine.
    But ADFSecurity is not working. ADFComponent Delete button is enabled even for roles that dont have permissions for the iterator delete.
    - The app works fine when I use without OAM. ADF Security permissions work fine.
    - The app works fine when used with OAM, but with ADFSecurity disabled (enforce=false).
    - When I enforce ADFSecurity alongwith OAM, ADFSecurity is not working.
    In the doc "Oracle Containers for J2EE Security Guide b28957", there is a mention of use of CoreIDPrincipal for permissions. Our OID Permissions entries show
    LDAPRealmRole for attribute orcljaznprincipal. I am not sure if this could be the reason.
    We have configured AccessServerSDK for the SOA instance and have policy for the urls in the policy manager. We have entries in orion-application.xml, orion-web.xml and system-jazn-data.xml as per the documentations.
    How can we get ADFSecurity work when used with OID and OAM?

    Have you been able to successfully integrate OAS with OAM & OID? We have similar requriement and so far we have not been able to get it working.
    We have application specific roles which we map to OID roles using orion-application.xml.
    Any pointers to achieve this would be greatly appreciated.
    thanks,
    Dipal

  • How do I manage Lightroom photos when using 2 computers, keeping all edits made on either one?

    Based on http://forums.adobe.com/thread/1308132?tstart=0 I decided to add each question seperately:
    Hello, I'm quite interested in buying Lightroom 5.2. I tried the RC which ran out now. Yet, I have a several questions that I can't really find good conclusive answers to, that I'd like to get answered before buying LR. Please don't write maybe like this or that (assumptions), since I don't want to start my whole workflow and then realize that I have to change everything around, so please answer, if you know for sure that something works and you are, preferably, using that method too.
    This is the biggest question, where I mainly want a conclusive answer:  How do I manage Lightroom photos when using 2 computers, keeping all edits made on either one of them, using the same photos for editing. I won't use DNG. Details: I mainly use my older MacBook Pro, but would like to be able to use my PC as it's way better (Specs: i5 2500K, 16GB RAM, SSD, USB3, nVidia GTX 560 TI etc.). I have 2 external HDs that I could use, one for Backup and one for the actual Photos/Edits. I'll probably need to use it as my internal HDs are quite full, and I can't just delete stuff or move it to an (Developer programs, Lossless music, etc.).
    Based on this, how do I back up the whole thing e.g. Photos folder (all photos and edits, and preferably presets too)?

    I believe it should be possible to work cross-platform without having to relink files each time, or without having to keep exporting/importing the catalog, by keeping the single catalog and the image library on the one external drive which is then switched between systems as needed.
    Obvious first requirement is an external drive that is formatted in such a way (e.g FAT32) that it can be used on both platforms in read/write mode. Given that, if the catalog AND the images parent folder are both established at the same level in one overall parent folder, then it should be possible to take advatage of Lightroom's ability to use relative paths rather than absolute paths to detect the images, no matter if the drive is named (Mac) or lettered (PC). This is how "export as Catalog" works, i.e. it creates a "package", aka a parent folder, containing the catalog and a replica of the exported images folder hierarchy alongside the catalog. Take that "package" to another system (same OS or not) and "it just works" even if the drive letter is different or the OS is different....because the relative path from catalog to images is still the same.
    I haven't tested this cross-platform (though I have between different PC systems with different drive letters) so for me it's still just a theory, but there may be others who have done this successfully.

  • How do I close a JInternalFrame when using subclasses and a separate cla...

    The heading should be: How do I close a JInternalFrame when using subclasses and a separate class for the actionListener?
    I have just created a JInternalFrame appclication and now I want to structure up my code. I have a Superclass that contains the usual settings for the two JInternalFrame:s, and the two subclasses with frame specific information. Both the JInternalFrames use the same OK button. I want to have the actionListener outside the classes to avoid repetition of code. But the dispose()-function does not work properly, it does not close the opened JInternalFrame. What�s wrong?
    class Superclass extends JFrame
         JButton b= new JButton("ok");    
         Superclass()
    class Subclass1 extends Superclass
         Subclass1 ()
              add(ok);
           ok.addActionListener(new Listener());
    class Subclass2 extends Superclass
         Subclass2 ()
              add(ok);
           ok.addActionListener(new Listener());
    class Listener extends Superclass implements ActionListener
         public void actionPerformed(ActionEvent e)
                   dispose();
    }How do I controll in the Listener class that the button in Subclass1 is beeing pressed?

    First of all I think I misunderstood your question. You said you had two internal frames, so I thought you wanted to close the internal frame.
    It now looks to me like you want to close the entire JFrame, which makes the code even a little easier. Something like:
    JComponent component = (JComponent)event.getSource();
    JFrame frame = (JFrame)SwingUtilities.windowForComponent( component );
    frame.dispose();
    Ok, I will make a try:
    public static Container getAncestorOfClass(Class c, Component comp)
    w.getAncestorOfClass(w, this); Fiirst you need to learn the basics of reading the API.
    "getAncestorOfClass()" is a static method. That means you don't use a variable to invoke the method. You use the class itself.
    "w" is a variable, which is a JFrame, but that is not what the first parameter should be. The first parameter is a "Class".
    "this" will refer to your Listener class, but you need the Component that generated the ActionEvent.
    When I thought you wanted to close an internal frame then the code would have been something like:
    JComponent component = (JComponent)event.getSource();
    Container container = SwingUtilities.getAncesterOfClass( JInternalFrame.class, component );
    JInternalFrame internalFrame = (JInternalFrame)container;
    internalFrame.invokeSomeMethodHere();If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html

  • How do I stop system sounds when using AirPlay on my MacBook Pro?

    Hi all,
    Probably a quick question, but I'm fairly new to Macs. I've a Macbook Pro 13 Late 2011 and now I've got an Apple TV, I use AirPlay. But how do I stop system sounds when using AirPlay?
    Many thanks in advance, Jon.

    Open AirPort Utility located in HD > Applications > Utilities
    From the AirPort Utility menu bar click AirPort Utility > Preferences
    Deselect:   Monitor AirPort base stations for problems

  • How can I customize the toolbar when using the attribute browser

    In CVI 2012, the toolbar changes depending on the environment, e.g. it is different for the source window and the UI editor. The toolbar can be customized using the menu Options / Toolbar...
    Unfortunately, when using the attribute browser of the UI editor, another toolbar is displayed, i.e. not the UI editor toolbar.... I would have assumed that the attribute browser belongs to the UI editor, obviously it doesn't... So how can I customize the toolbar when using the attribute browser?
    Solved!
    Go to Solution.

    Luis,
    It's nice to have you back 
    Thank you for the clarification, so I'll elaborate a bit more: In the regular workspace toolbar, I have a disk symbol to save the file. This symbol is gone in the attribute browser...
    So I have three different toolbars, for source code (workspace), UI editor, and the UI editor displayed but the attribute browser clicked on (selected)... 
    Thanks
    Wolfgang
    Source code:
    UI editor:
    Attribute browser:

  • Invalid Content-Type value on OC4J 10.1.3.4.0 when using JAX-WS

    Hi all,
    I'm developing web services using JAX-WS on top of OC4J 10.1.3.4.0. I followed the procedure to enable this in the developer guide with success. My web service is running fine but the headers of the HTTP response contains an invalid value for the Content-Type header
    The charset element has the value utf-8" (with the double quote included) which is interpreted as a wrong encoding by the client application.<br />
    Below is the HTTP request and response with the error. (I stripped the soap part for clarity)<br />
    <br />
    POST /mywebservice/ HTTP/1.1<br />
    Content-Type: text/xml;charset=UTF-8<br />
    SOAPAction: "http://soap.exemple.com/mywebservice"<br />
    User-Agent: Jakarta Commons-HttpClient/3.0.1<br />
    Host: behs0054:8888<br />
    Content-Length: 2174<br />
    <br />
    &lt;...&gt; soap message<br />
    <hr />
    HTTP/1.1 500 Internal Server Error<br />
    Date: Fri, 03 Oct 2008 13:10:43 GMT<br />
    Server: Oracle Containers for J2EE<br />
    Connection: Keep-Alive<br />
    Keep-Alive: timeout=15, max=100<br />
    Content-Type: text/xml;charset=<strong>utf-8"
    </strong>Transfer-Encoding: chunked
    &lt;...&gt; soap fault received
    <hr />
    Thanks a lot for your answers,
    Gauthier

    Does not only happen when using JAX-WS.
    the following servlet code is enough to reproduce the problem :
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml;charset=\"utf-8\"");
    It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
    Regards

  • How to ignore a DML operation using error handler.

    In our streams replication application (using Oracle 10G), we have error handler to handle the errors at destination apply process. It uses straight apply process no DML handlers except error handlers. The error handler should just log the error and LCR info into the error log table and discard the DML LCR. Error logging is not a problem. But the problem is how to ignore the error DML LCR and move to next LCR in the same transaction without rollback of the transaction or any error.
    Another question, do I need to use LCR.EXECUTE() procedure to continue the transaction in case of errors?
    Appreciated your help.

    Thanks for reference, confirmation of use of execute function.
    I read those pages and other related pages in "Oracle® Streams Concepts and Administration" too.
    I am able to write an error handler to handle errors with regular apply process. It is logging "no data found" errors but failing in case of foreign key violations. Error handler takes any kind of error and logs a record into errorlog table and ignores the error. I think it is not calling error handler. I checked for handlers in dba_apply_dml_handlers table. There is a handler for Inert, update and delete. I am investigating it further now. If you have any leads, please post.
    Thanks for your time and help.
    Dharma

  • How to avoid extra div tags, when we add components using cq:include

    I tried using the below code in my component jsp from forums to remove those extra div tags when we try to add components using <cq:include tags.
    <%
       if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
           IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE);
    %>
    But this code helped to remove most of the extra div tags , but still adds this extra div tag to the first component I add using  <cq:include tag.
    its a basic and very critical necessity to maintain our markup design,But due to this  dynamically added extra div tag will hinder the html and css behaviour of the page.
    Appreciate your help to resolve this issue.
    Thanks

    Hi,
    Can you try below if you really dont want to include anything during include.
    <%
    IncludeOptions opts=null;
       if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
    opts= IncludeOptions.getOptions(request, true);     
    opts.forceSameContext(Boolean.TRUE);
    opts.setDecorationTagName("");
    %>
    Thanks,
    Pawan

  • Why is my published site not operational when using Firefox or IE?

    The original problem I experienced had to do with the fact that my published site's navigation bar was totally missing on each page and replaced with a "period" as described by the following thread... http://discussions.apple.com/thread.jspa?messageID=9899999&#9899999
    The weird thing is that this problem only exists when using IE or Firefox on a PC (at work). Site is 100% operational using Safari on a Mac (at home).
    Thinking my iWeb files were corrupt, I uninstalled and reinstalled iWeb '08. After doing so, I republished my site. The good news: the nav bar is now present on each page and operational. The bad news: my photo pages and blog page have zero content other than the header banner and nav bar. Again, this problem only exists when accessing the published site using IE or Firefox on a PC. The site is fully operational and all photos/blog entries present when accessing the site using Safari on my Mac.
    What gives? Did a recent iWeb update (intended for iWeb 09 users or intel-based macs) corrupt my iWeb '08 on my PowerBook G4?

    Please note that Java and Javascript are not related. iWeb uses a lot
    of Javascript, not Java. There may be some issues with the Javascript
    generated by iWeb -- I don't know. If it seems to work for someone
    and not for someone else then it is an issue at the browser end, not
    the website end. Each browser may not be handling the Javascript in
    exactly the same way. (You gotta love standards.)
    Dave

  • How can i set  "Createdby" attribute  When using Custom JheadStart Security

    Hello
    We do not use JASS for Authentication , please help us how can i set createtby attributes with jhs.username in application for any entity object?
    thanks

    See a similar question at History Attributes when using Custom Authentication Type

  • How to skip authorisation for infotype when using dynamic selection ?

    Hi folks,
    I have a problem here.
    When im using dynamic selection screen, i cannot skip authorisation for subtypes of an infotype. Eg. if my record for 0185 have records that do not have authorisation for the subtypes. Dynamic selection will filter away this record and will not get me into the Get Peras as id i use to run has authorisation configured. IT will skip out of Get Peras.
    However, if im not using dynamic selection screen, i will use the normal pnpce fields, i will be able to get the record, as i do my authorisation check using function module in the get peras, and i did not declare 0185 in the infotypes.
    May i know if there is any solution to this problem as dynamic selection screen is a standard...
    Thanks,
    lihui

    hi,
    however i cannot skip authorisation for the whole pernr as i need the authorisations for the processing reports.
    Currently the case is like this..
    i have a authorisations for infotype 0185. i have 2 subtypes records such as ZA and ZB. the user does not have authorisation to read ZB but has authorisation to read ZA.
    However, when use dynamic selection, it will skip out the pernr.
    If the pernr 0185 records has only ZA subtype but no ZB subtype, it will not skip this pernr when using dynamic selection.
    Anymore idea how to overcome this?

  • How do i see the thumbnails when using File Explorer

    How do I get to see the thumbnail preview when using File > Open?

    Not sure if this has been answered yet, but Illustrator thumbnails aren't showing in Creative Cloud Web file list. Also, anywhere to quick preview/navigator the file?

  • HT204291 How does one get full screen when using air play on my tv from my iPad,thanks in advance

    How does one get a full screen when using air play on my tv when I'm mirroring,.? Thanks in advance

    The iPad's display is 4:3, so it cannot fill your TV screen, which is 16:9
    The only way is to change your TV settings and stretch the image.

  • How to bypass material rounding rules when using 'BAPI_PO_CREATE1'?

    How to bypass rounding rules when create a PO using 'BAPI_PO_CREATE1'?
    I faced a problem when using the BAPI to create PO. As the material has rounding rule, thus, when I create the PO using this BAPI, the quantity will be rounded according to the rule.
    How can I bypass the rounding rule so that I can upload the quantity according to the quantity that specify in my upload file?
    Edited by: Irene Sam on Jun 17, 2008 1:08 PM

    I've solved the problem with passing the parameter no_rounding into the BAPI.
    poitem-no_rounding = 'X'.
    poitemx-no_rounding = 'X'.
          CALL FUNCTION 'BAPI_PO_CREATE1'
            EXPORTING
              poheader         = poheader
              poheaderx        = poheaderx
            IMPORTING
              exppurchaseorder = w_ebeln
            TABLES
              return           = poreturn
              poitem           = poitem
              poitemx          = poitemx
              poschedule       = poschedule
              poschedulex      = poschedulex
              potextheader     = pohdrtext
              poaccount        = poaccount
              poaccountx       = poaccountx.

Maybe you are looking for

  • Object reference not set to an instance of an object in treeView

    Hello I wrote this code. I have this Error "Object reference not set to an instance of an object" on  " MessageBox.Show(tn.Text);" in " MaintreeView_BeforeSelect ". #region Remove BackColor of all treeview nodes private void ClearBackColor() TreeNode

  • Updating and backing up

    Hi~~ im new to this forum. The problem i am encountering is that I've been trying to Update my phone to a 3.0 for a few weeks now, and the backing up process froze everytime i do it, i delete my pictures, program, and text already and it still freeze

  • MM Related Fields

    Hi,   I am given below the list of fields related with Materials.  TDID - Text ID TDSPRAS - Language Key TDFORMAT - Tag Column TDLINE - Text Line These fields I find the table LTX1_TMP. I need to know in which materila view these fields exist ? Thank

  • Need help with a JavaScript to generate random number

    Hi First things first. I don't know the J of JavaScript. When I was thinking of some readymade solution to generate a random number in Captivate, I found this on a LinkedIn forum. 1) Add a user variable to your project called "randomNumber". It's val

  • How to Place Approve and Reject Button in every row to approve and reject the particular order in sapui5

    Hi Experts,    How to Place Approve and Reject Button in every row  to approve and reject the particular order in sapui5.   Please Kindly help me. Thanks & Regards Chitti Babu