Retrieve Operation Name from WSDL

Hi All,
In a text box any WSDL can be given as input but its operation name should be displayed in a combo. Let me know how to retrieve operation name from WSDL. I want the java coding to be written in backing bean class.
Thanks,
Maanickka.

Hi,
the reference to a WSDL file produces a XML document to be returned. So you need to parse that document for methods. Have you tried this?
Frank

Similar Messages

  • How to retrieve user name from a given Subject?

    I am in a situation where I need to retrieve user name from the Subject that is populated when user logs in. I have the active Subject and I do following to get the principals in the subject and iterate through them:
    Set principals = subject.getPrincipals();
    Iterator ite = principals.iterator();
    while (ite.hasNext()) {
    Principal prin = (Principal)ite.next();
    String name = prin.getName();
    But this contains all the principals, including user name, roles, password, etc. How do I programmatically determine which one is user name?

    Don't you have different principal types? I am making a jaas module and I have different principals for roles, groups etc. I think of principals as attributes, the type in the attribute name and the principal name is the attribute value.
    To get all the principals of the type SomePrincipal, you can use:
    Set principals = subject.getPrincipals(SomePrincipal.class)
    You can also take som principal an test wether it is an instance of som type:
    if (Principal p instanceof SomePrincipal){..}
    An other solution which might be better if you have many different attributes is to store both attribute name and value in the name of the principal.
    If "mark" is a username the principal name will be "username:mark" el.
    Then it will be easy to find the username.

  • Retrieve file name from full file path

    I am trying to retrieve a file name from a path (ex. c:\temp\tes.txt) using the following code, but it is given me an error of "The method split(String) in the type String is not applicable for the arguments (char).
    {code}
    String filepath = item.getName();
    String[] buf = filepath.split('/');
    String filename = buf[buf.length-1];
    {code}
    I tried to use double quote instead of single quote, but it is not returning anything.
    {code}
    String[] buf = filepath.split("/");
    {code}
    Anyone knows why? Thanks.

    How is this related to JDBC?
    Anyway, is the path separator actually a forward slash? Isn't it a backward slash?
    If you're using Apache Commons FileUpload (which I guess, the 'item.getName()' is recognizeable), then just read their FAQ: [http://commons.apache.org/fileupload/faq.html#whole-path-from-IE].

  • Retrieve applications name from config.xml

    Hello everybody.
    Is there a way to retrieve all applications name from config.xml?
    Is there a HelperClass from BEA to do this task for me?
    Thanks.

    Please make reference to WebLogic MBean at
    http://e-docs.bea.com/wls/docs81/jmx/index.html
    <Denilson Marcos> wrote in message news:[email protected]..
    Hello everybody.
    Is there a way to retrieve all applications name from config.xml?
    Is there a HelperClass from BEA to do this task for me?
    Thanks.

  • Retrieve Company name from the Post in contact Entity - MS CRM 2013 online

    Hi All,
    We have a feature in the contact entity, on change of a field called call status we are triggering a workflow which will take the current value of the call status field and creates a new status in the Auto Post. So repeated calling and call status by Target
    marketing will be captured. 
    Below is the Sample
    Now the issue i am facing is creating a report out of it to capture # of calls and call status. 
    This is the sample report I've created. I am not able to Display the Account name in this report.
    Fetch XML used:
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
      <entity name="post">
        <attribute name="postid" />
        <attribute name="createdon" />
        <attribute name="createdby" />
        <attribute name="source" />
        <attribute name="modifiedon" />
        <attribute name="text" />
        <attribute name="regardingobjectid" />
        <attribute name="createdonbehalfby" />
      </entity>
    </fetch>
    Kindly suggest how this can be done.
    Regards, Rekha.J

    Hi Jithesh,
    Thanks for the reply.
    The above code retrieves no data and so no output is displayed, not even a  single record is retrieved.
    I previously had tried something similar to this , which retrieved the records but account name it was displaying some wrong data.
    Below is that code which I tried.
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
      <entity name="post">
        <attribute name="postid" />
        <attribute name="createdon" />
        <attribute name="createdby" />
        <attribute name="source" />
        <attribute name="modifiedon" />
        <attribute name="createdonbehalfby" />
        <attribute name="regardingobjectid" />
        <attribute name="text" />
        <link-entity name="systemuser" from="systemuserid" to="createdby" alias="ak">
          <link-entity name="account" from="createdby" to="systemuserid" alias="al">
            <attribute name="name" />
            <filter type="and">
              <condition attribute="name" operator="not-null" />
            </filter>
          </link-entity>
        </link-entity>
      </entity>
    </fetch>
    Regards, Rekha.J

  • File information -- How to retrieve file name from header variable

    Hi
    I am using File Adapters to read files(.xml) and then I need to perform some database operations.
    One of the requirement is storing the file name read into the DB.
    I searched through the forum and got the information on how to configure this in the header variable. The link below shows the same.
    File Adapter
    Now, I use the XSL mapper to map the source values(from input xml file) to the corresponding table column names. So how should I get the value of the file name.
    I saw some of the in-built functions to be used for this but there is not enough documentation to proceed.
    Can anyone please provide some solution on this.
    /Kiran.

    Hi,
    Here are the steps that you need to do after you have declared the variable.
    1) The variable that you have declared should have the following elements
    a) Filename
    b) Directory
    2) Use the assign activity to copy the value of the filename part of this variable to the arg that needs to be passed to the database. (most probably an invoke variable).
    If you still have any problems implementing this, mail me at [email protected]..and i'll send you the screen shots for the entire process.
    ciao,
    Gunjan

  • Retrieve Basemap name from TileLayer name

    Hi all,
    is there an easy way to retrieve a TileLayers' Basemap-name on client side?
    I tried MVMapview.getMapTileLayerDefinition, but the basemaps' name is not included in the response.
    Thanks!
    Dominik

    Hi,
    the reference to a WSDL file produces a XML document to be returned. So you need to parse that document for methods. Have you tried this?
    Frank

  • How to retrieve column name from Excel using POI HSSF eventusermodel?

    Hi ,
    I am simply reading the excel sheet and writing in a txt file. I have done the following in the switch construct. It works fine but I want to retrieve only the column header. But this code gives me all available strings in the excel sheet. Any pointer would be greatly appreciated.
    case SSTRecord sid : 
             SSTRecord sstrecord = (SSTRecord) record;
             for (int i=0; i<sstrecord.getNumUniqueStrings(); i++){      
                  System.out.println(" Column name" +  sstrecord.getString(i));
    break;bye for now
    Sat

    try labels:
            case LabelSSTRecord.sid:
                LabelSSTRecord lrec = (LabelSSTRecord) record;
                if (lrec.getRow() == 0) {
                    System.out.println(" Column name "
                            + sstrec.getString(lrec.getSSTIndex()));
                break;

  • Retrieve node name from XML

    Hi, I have an XML file that I loaded into Flex converting it
    into an arrayCollection.
    If I want to retrieve the node name rather then the node
    content, how do i do?
    For istance:
    <root>
    <node1>content1</node1>
    <node2>content2</content2>
    </root>
    What I would like to do is to assign the text "node1" or
    "node2" to a variable of my Flex project.
    Is this possible?
    Many thanks to who may help.

    I think easiest way is to use e4x. look here :
    http://livedocs.adobe.com/e4x

  • Retrieving Column Names from a Query

    I need to be able to generate XML that looks like this:
    <Categories>
    <Category Name='Arrivals'/>
    <Category Name='Departures'/>
    <Category Name='Unused'/>
    <Category Name='Out of Commission'/>
    </Categories>
    Where the name attribute value is the name of columns in a query. For example, a standard SQL query might look something like this:
    select
    year, arrivals, departures, unused, out_of_commission
    from
    some_table
    I am able to generate the XML that represents the data just fine. However, my vended application is requiring this column header information. I've browsed and searched the XMLDB documentation but could not see a way to retrive the column names returned by the query. I think I Just need to be pointed in the right direction.
    Thanks,
    Steve

    What technique are you itending using to generate the XML ?.
    Does something like this work
    select xmlelement("Categories",
    xmlelement("Category", xmlattributes('Arrivals' as "Name"), Arrivals),
    xmlelement("Category", xmlattributes('Departures' as "Name"), Departures),
    xmlelement("Category", xmlattributes('Unused' as "Name"), Unsused),
    xmlelement("Category", xmlattributes('Out Of Commission' as "Name"), Out_of_Commission)
    from some_table

  • Retrieving file name from jsp

    I have an input field on my jsp. The input type is "File".
    I am trying to get the contents of that field and the filename and/or file path that is included in that field.
    Does anyone know how to do this?
    I tried a request.getParameter in the servlet but this field is not a text field.
    Thanks.

    Check out the Apache FileUpload package:
    http://jakarta.apache.org/commons/fileupload/
    It has the methods you'll need to get the file name and file contents.

  • How to retrieve Host Name from reports?

    Hi.
    I've a report with excel template with links inside (XDO_LINK_?...)...
    How can I create a link with a dynamic host name? Like http://<hostname>/xmlpserver/.....
    Thank you
    R.

    I've found this:
    https://blogs.oracle.com/xmlpublisher/entry/creating_dynamic_urls_in_your
    how can I use this method in EXCEL template?
    thanks, R.

  • Help (retrieving image name from xml then will be echoed inside the movieclip

    Hello guys, I just want to ask sometihng on how to show the image inside the movieclip by pulling the image name inside the xml file.
    this is my xml file.
    <?php
    header("Content-type: text/xml");
    $host = "localhost";
    $user = "root";
    $pass = "";
    $database = "test";
    $gelo= "image1.jpg";
    /*xml output*/
    $xml_output = "<?xml version=\"1.0\" ?>";
          $xml_output .= "<GALLERY>";
              $xml_output .="<IMAGE>" . $gelo . "</IMAGE>";
         $xml_output .= "</GALLERY>";
    echo $xml_output;
    ?>
    //this is the code inside my actionscript
    stage.scaleMode = StageScaleMode.NO_SCALE;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.TEXT
    loader.addEventListener(Event.COMPLETE, loadCompleteHandler);
    loader.load(new URLRequest("http://localhost/loadimagefromxmlAS3/data.php"));
    function loadCompleteHandler(event:Event):void {
    var xml:XML = new XML(event.target.data);
    //txt.text = xml.toXMLString();
    trace(xml.IMAGE[0]);
    var list:XMLList = xml.data.title
    var loader:Loader = new Loader()
    this["holder_mc"+0].addChild(loader)
    loader.load(new URLRequest(list[0].IMAGE))    
    When I run it in flash, I got the error
    image1.jpg
    TypeError: Error #1010: A term is undefined and has no properties.
        at xml_fla::MainTimeline/loadCompleteHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()
    I hope you will consider my ignorance since im a beginner using the actionscript. Thank you

    1) You should have "Permit debugging" enabled in Publish settings so you could tell exactly witch line is wrong
    2) This line makes no sense to me: var list:XMLList = xml.data.title
         Change it to var list:XMLList = xml.IMAGE;
    3) loader.load(new URLRequest(list[0].toString()));
    4) Also this line is suspicious: this["holder_mc"+0].addChild(loader)
         Why don't just say: holder_mc0.addChild(loader)?

  • How to retrieve distinguished name from EndpointContext?

    I am building a web service on OAS10.1.3 that uses X509 authentication and LDAP as the security provider in its security configuration. I would like to extract the authenticated user's identity in the form of its full distinguished name, but the ServletEndpointContext API only returns the common name of the authenticated user.
    Here is a simplified version of the code I am using to get the user's distinguished name:
    public class MyService implements javax.xml.rpc.server.ServiceLifecycle {
    private javax.xml.rpc.server.ServletEndpointContext context;
    public void init(Object obj) throws javax.xml.rpc.ServiceException {
    context = (javax.xml.rpc.server.ServletEndpointContext)obj;
    public String helloUser(String message) throws java.rmi.RemoteException {
    java.security.Principal principal = context.getUserPrincipal();
    return principal.getName();
    public void destroy() {
    context = null;
    context.getUserPrincipal only returns the common name in my application. I suspect that there is some security handler deployment descriptor that I do not have configured correctly, but can't seem to locate the correct documentation. Any help is greatly appreciated,
    Dayn

    I figured this out. Apparently, the concrete class implementing the Principal interface is not one of the known implementing classes such as X500Principal, but rather an undocumented (at least I can't find any) class: oracle.security.jazn.oc4j.JAZNUserAdaptor. Once the jazn.jar is added to my JDeveloper project properties, I can access the methods. Here is a code snippet:
    public String getDN(ServletEndpointContext ctx) {
    String principalDN = "Unknown";
    Principal principal = null;
    if (ctx != null) {
    principal = ctx.getUserPrincipal();
    if (principal != null) {
    principalDN = principal.getName();
    if (principal instanceof JAZNUserAdaptor) {
    JAZNUserAdaptor user = (JAZNUserAdaptor)principal;
    principalDN = user.getRealmUser().getFullName();
    return principalDN;
    }

  • Retrieving Object Names from a WEBI report

    Hello,
    I have to couple of Webi reports assigned to an universe. Can anyone tell me if there is a option to get the different universe objects, which are used in each Webi report query via JSP. I couldn't find a helpful method in the BusinessObjects Enterprise Web Services API, which would prodive this function.
    Please provide steps to follow how could I get these used objects.
    Thanks in advance,
    David

    I found a solution for my problem:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/e06b823c-cc66-2b10-2f94-8d3151c2b4a4

Maybe you are looking for