How to use wsdl in dynamic client

In wls 700, I want to know how to write a dynamic client to invoke a webservice by
passing wsdl?
In the example directory, there is an example, but I would like to know how I can
customize to use my own wsdl? clientgen puts wsdl in client jar file why is that?

Hi fkeita,
If you haven't already done so, you should check out the following link in the BEA
product documentation:
http://edocs.bea.com/wls/docs70/webServices/client.html#1049007
Outside of that, you can always stayed tuned to the "dev2dev" page :-)
Regards,
Mike Wooten
"fkeita" <[email protected]> wrote:
>
Hi Mike,
Can you elaborate more how I can find the url of wsdl?
Do you know any documentation which explains the process of using dynamic
clinet?
Thanks.
"Michael Wooten" <[email protected]> wrote:
Hi fkeita,
The client.jar contains a "static" WSDL, because some folks like to avoid
making
a network (or internet) call to retrieve the "dynamic" one :-)
If you try to use "user-defined" types, with a WSDL and a "dynamic" client,
you will
experience "difficulties". This is due to the way the JAX-RPC defines the
createService()
method on the ServiceFactory class. Normally, this is the method you pass
the URL
to the WSDL you want to use. Currently, we call the WSDL parser in this
method, which
has a "side-effect" of needing to have the type mappings for your "user-defined"
types, already registered when it is called. With "stub-style" clients,
this is not
a problem (because the plumbing does this for you), but with "dynamic"ones
it doesn't.
Right now, the only real workaround is to have your client class extend
our weblogic.webservice.core.soap.SOAPElementImpl
class, as in the following code fragment:
#### START OF EXTRACT #####
import javax.xml.rpc.Call;
import javax.xml.rpc.namespace.QName;
import weblogic.webservice.core.rpc.ServiceImpl;
public class ServiceClient extends ServiceImpl
     public ServiceClient(String schemeHostPort) throws Exception
// We pass the URL for the "dynamic" WSDL in the
// first argument. The second argument is the
// path to the XML file that the <clientgen> Ant
// task recorded your typemapping info in. It is
// in your client.jar, along with the "static"
// WSDL I mentioned :-)
          super(
               (schemeHostPort == null ? "http://localhost:7001" : schemeHostPort)
+
"/mea/gateway?WSDL",
               "examples/webservices/jaxrpc/consumer/anamitra/dii/MEAGatewayService"
          //define qnames
          String targetNamespace = "http://www.bea.com/examples/MEAGateway";
          QName serviceName = new QName( targetNamespace, "MEAGatewayService" );
          QName portName = new QName( targetNamespace, "MEAGatewayServicePort");
          //create call
          Call call = super.createCall(
               portName,
               new QName(targetNamespace, "processExternalDataBatch")
          ArrayList alist = new ArrayList();
          alist.add(new String("One"));
          alist.add(new String("Two"));
          alist.add(new String("Three"));
          alist.add(new String("Four"));
          alist.add(new String("Five"));
          String result = (String)call.invoke( new Object[]{ alist } );
          System.out.println("result=" + result);
     public static void main( String[] args ) throws Exception
          System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
          System.setProperty("javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
          new ServiceClient(args[0]);
//private:
     private final static boolean debug = false;
### END OF EXTRACT ###
Happy coding :-)
Regards,
Mike Wooten
"fkeita" <[email protected]> wrote:
In wls 700, I want to know how to write a dynamic client to invoke a webservice
by
passing wsdl?
In the example directory, there is an example, but I would like to know
how I can
customize to use my own wsdl? clientgen puts wsdl in client jar file why
is that?

Similar Messages

  • How to use log4net with C# clients

    Hi,
    Can anybody please give an example of how to use log4net with C# clients? Foe java clients you can use the
    <logging-config>
    <destination>log4j</destination>
    How do we use it with C# clients? Any example will be appreciated.
    Thanks.
    -ali

    Ali,
    The following is an example on how to define a custom logger (including log4net) in tangosol-coherence-override.xml for coherence .NET client; you need Coherence .NET client 3.7.1 patch 1.
    <coherence xmlns="http://schemas.tangosol.com/coherence">
    <logging-config>
    <destination>common-logger</destination>
    <logger-name>log4net</logger-name>
    <severity-level>9</severity-level>
    <message-format>(thread={thread}): {text}</message-format>
    <character-limit>8192</character-limit>
    </logging-config>
    </coherence>
    You also need to configure log4net in app.config. Please see the following web page for more information:
    http://netcommon.sourceforge.net/docs/2.0.0/reference/html/ch01.html
    -Luk

  • How to use iphone as  remote client to pc

    how to use iphone as  remote client to pc

    Search the app store for remote desktop client apps - there are many.  You may also need to configure a VPN connection. iOS 6 has a built in VPN, although if you use a VPN over SSL you may need to get an app for that too.
    On my iPad, I use Cisco's AnyConnect and RDP app and it works alright (I would not want to use it often, but it gets the job done when needed).  Never tried it from an iPhone as I image it would be horrible to actually use (scrolling to see all of the remote desktop, the keyboard on the iPhone covering most of the visible desktop - all sorts of awkwardness).

  • How to use table name dynamically in report  procedure

    Hello every body
    I want to use table name dynamically means at runtime i want to pass table name.
    I can do this by lexical parameter in main query.
    But my problem is that i want to crate new format trigger or new function that use 1 cursor in which that lexical parameter : table name is used.
    so how to do that?
    i can not use that lexical parameter it is giving error.
    please help me how to do that.

    Call a database function which you pass the lexical parameter. Then in the database function you use dynamic sql or the execute immediate option to build the SQL string.
    Return the information from this function to build your business logic on in your format trigger.
    Marcos

  • In iPad how to use webdav nab   with client certificate

    I have created one webdav enable site in apple mac mini server using apache. The webdav site is secured with https as well as client certificate.
    While browsing the website using safari/IE everything is working fine,but with ipad's webdav utility it is not working.Client cert is not picking up by webdav nav tool, although the client ssl cert is installed in ipad.

    Hi Olek
    I Have a working WebDAV setup with tomcat 6.0
    the only problem is this only works on windows XP
    anyway here is the code,
        <servlet>
        <servlet-name>webdav</servlet-name>
        <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
        <init-param>
          <param-name>debug</param-name>
          <param-value>0</param-value>
        </init-param>
        <init-param>
          <param-name>listings</param-name>
          <param-value>true</param-value>
        </init-param>
        <!-- Uncomment this to enable read and write access -->
        <init-param>
          <param-name>readonly</param-name>
          <param-value>false</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <!-- The mapping for the webdav servlet -->
      <!-- Using /* as the mapping ensures that jasper, welcome files etc are
           over-ridden and all requests are processed by the webdav servlet.
           This also overcomes a number of issues with some webdav clients
           (including MS Webfolders) that do not respond correctly
    to the
           redirects (302) that result from using a mapping of / -->
      <servlet-mapping>
        <servlet-name>webdav</servlet-name>
        <url-pattern>/*</url-pattern>
      </servlet-mapping>put that in your web.xml file
    and here is a basic example of how to use it in a jsp.
    <%
    String networkPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";
    %>
    <body onload="document.getElementById('anchor').click();">
        <a id="anchor" href="<%= networkPath %>Temp/Test/file.doc" folder= "<%= networkPath/Temp/Test/">
               Open in Web Folder View
        </a>
    </body>Hope this helps you

  • HOW TO USE A MICROSOFT DYNAMIC LIBRARY ON ABAP

    I want to know how to use and implement a call to a dll from ABAP because in my job i need to impress data using a neumatic printer;  the model is CN101 from Technifor.
    Thanks

    Hello Claudio,
    Some information on this topic [here|http://nonet.dyndns.org/b2e/blogs/index.php/2005/10/30/calling_dll_functions_within_sapgup_via?blog=5].
    Another interesting way of doing it would be to write a simple .NET web service exposing the DLL and consuming it in ABAP.
    Best Regards,
    Yevgen

  • Please tell me how to use the Simple bluetooth client server example.

    Hi i used the simple bluetooth client server example in labview 7.1. Iam getting an error saying your system does not support the network operation.  I have following doubts also.
    1. Should i pair the device before running the labview.
    2. Should i enable the file transfer wizard in the software given with the bluetooth adapter.
    Please help
    Thank you
    R.Prem kumar 
    09940446193

    Hi R.Prem,
    Could you please let me know what error code is associated with this error message? Also could you please provide a description of the setup you are currently using? Thanks!
    Best regards,
    Steven

  • How to use JavaScript in Dynamic commandLink

    Hi All,
    In my JSF application, I am able to get the dynamic CommandLink with the below mentioned code.
    commandLink.setActionExpression(createActionExpression("#{myBean.myMethod}", String.class));
    The above code is navigating to the page mypage.jsp properly (the page which is returned by method myMethod).
    My Question is: Instead of navigation (as mentioned above) I want to generate a popup window using JavaScript on click of commandLink.
    Please suggest me on how to proceed on this?

    Hers is my JavaScript:
    function showPopupWindow(action) {
    formId=action.form.id;
    //features="height=300,width=250,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes";
    features="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=900,height=500,top=80,left=80";
    winId=window.open('Mypage.faces','list',features); // open search window
    winId.focus();
    This works perfectly with the onclick attribute of the commandbutton as shown below:
    <h:commandButton value="Open Popup" onclick="showPopupWindow(this); return false;"></h:commandButton>
    {color:#ff0000}
    But I tried same thing with the onclick attribute of the commandLink, that did not work.
    <h:commandLink value="Open Popup" onclick="showPopupWindow(this); return false;"></h:commandLink>
    {color:#0000ff}As per my requirement, I tried using setOnclick attribute in the following manner, that failed to open the popup:
    commandLink.setOnclick("{color}{color}*{color:#0000ff}showPopupWindow(this); return false;{color}*{color:#ff0000}*{color:#0000ff}");{color}*
    {color}

  • How to use iCal Server with clients?

    Ok, so since I can't find this anywhere... How do I use iCal Server with other desktop clients? I've selected the user, enabled calendaring, the user can authenticate in web-based group calendars. But then I'm stuck.
    How do I give them their own calendar?
    In iCal, I go to Accounts and try and enter the info but it fails every time. I tried the dns name like so: "calendar.example.edu" but it generates an error. But the user can log in to the web calendar for groups. Where is the users individual calendar located?
    The help menu ignores that field as if it's not needed, but then it fails because the calendar doesn't know where the server is. The clients can't all be OD bound, so this has to work outside of Open Directory. According to Apple other CalDAV clients can connect too. How? Computers just don't "connect" on their own.
    Anyone know the answer?

    I was getting the same error when I tried to subscribe to a calendar using:
    Subscribe to: http://myserver.example.com:8008/
    principals/users/usershortname
    I found that if I added a trailing slash to the URL then it would work :
    Subscribe to: http://myserver.example.com:8008/
    principals/users/usershortname/
    (the way I found this was to navigate via the web browser to http://myserver.example.com:8008 then authenticate as a user, then navigating through to http://myserver.example.com:8008/principals/users/ where you can see all the user names all with a trailing slash after them)
    hope this helps
    Message was edited by: maximumjack

  • How to use KeyChain API from client-side HTML scripting in Safari on iPad?

    I have a requirement where I need to add client-side scripting in an HTML page to be supported by Safari on iPad that creates a private / public key pair and that creates a CSR (Certificate Signing Request) in PKCS#10 or SPKAC format that can be sent to a certification authority server using form HTTP/POST that will then return the generated certificate.
    I initially thought that I could simply use the HTML 5 tag <keygen> which can do exactly what I need, but unfortunately this tag is not at all supported on mobile Apple devices like iPad or iPhone, so I have to look for another solution.
    I have noticed that the KeyChain tool should be available on iPad using the documented API, but I have no idea based on the documentation whether the API can be called from client-side HTML scripting on iPad.
    Question : is it technically possible using the functionalities and API's exposed on an iPad to implement what I just described in HTML client-side scripting? If so, do you have some links with useful information that can help me on my way?

    I have a requirement where I need to add client-side scripting in an HTML page to be supported by Safari on iPad that creates a private / public key pair and that creates a CSR (Certificate Signing Request) in PKCS#10 or SPKAC format that can be sent to a certification authority server using form HTTP/POST that will then return the generated certificate.
    I initially thought that I could simply use the HTML 5 tag <keygen> which can do exactly what I need, but unfortunately this tag is not at all supported on mobile Apple devices like iPad or iPhone, so I have to look for another solution.
    I have noticed that the KeyChain tool should be available on iPad using the documented API, but I have no idea based on the documentation whether the API can be called from client-side HTML scripting on iPad.
    Question : is it technically possible using the functionalities and API's exposed on an iPad to implement what I just described in HTML client-side scripting? If so, do you have some links with useful information that can help me on my way?

  • How to use digital certificate for client authentication in PCK

    My sap jca adapter need support digital certificate on client authentication. how to implement it in j2ee or pck?
    Message was edited by: Spring Tang

    refer the following links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/092dddc6-0701-0010-268e-fd61f2035fdd
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2a56861-0601-0010-bba1-e37eb5d8d4a9
    please let me know if u dont find relevant information

  • How to use gmail as the client in elements 11

    Using Elements 11 with a MAC.  I do not use Mail, but rather use GMAIL.  I cannot find how to share photos from the Organizer with MAC / GMAIL.  Only with MAIL.  From Preferences - Sharing the only option is MAIL.  Anyway to avoid this?

    marshallphoto
    Proceed with caution. This does work for me. Road tested.
    1. Protecting the Styles that you created in the Titler of Premiere Elements 11 Windows 7 64 bit.
    When you "Save A Style" that you created in the Titler, it is saved to the Styles Folder in the default location of
    Libraries
    Documents
    Adobe
    Premiere Elements
    11.0
    Styles
    in the Styles Folder you are not going to see the individual Styles that you created. They will be included as an entire set in a file named "workingset.prsl". Save this specifically named "workingset.prsl" before the program uninstall, and,  AFTER the program reinstall, place it in this Styles Folder as that folder's "workingset.prsl" file.
    2. Protecting user custom export presets created in Publish+Share/Computer/
    When you create these export presets, they are stored in the path
    Local Disc C
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements
    11.0
    SC Folder
    Presets
    what to save at this point is determined by the type(s) you have created...check what is in the Presets Folder and then decide
    a. Save the whole Presets Folder
    b. Save just the whole PC Folder
    These should be .epr files that you are protecting.
    And, it goes without saying, whatever you replace from the cited locations before uninstall, be sure to replace them to the exact location.
    There are other types of files that could be protected, but you seem to want information specific to protecting Styles and Export Setting Presets. So, I am compiling with that request.
    I do not work for Adobe and am not affiliated with it in any way. The above are my observations, been road tested, and they work for me.
    Do mini test runs if you have any doubts. Please do not hesitate to ask if you need clarification on anything that I have written.
    Thanks.
    ATR

  • How to use SPEL for Dynamic View Objects?

    Hi Gurus,
    In Benefits Self Service particularly in the Designate Beneficiaries page, we have a requirement to set the row for Self designation as Read Only. What this means for any plan that you're eligible and that requires beneficiary designation, you are not allowed to designate yourself. Unfortunately this is an intended functionality and the only way to achieve our requirement is thru Personalization. I was able to accomplish this successfuly thru the SPEL functionality. However the view object corresponding to each plan that requires beneficiary designation is somewhat dynamic. For example, Plan A corresponds to BeneficiaryPeopleVO1, Plan B corresponds to BeneficiaryPeopleVO2, Plan C corresponds to BeneficiaryPeopleVO3, etc. The Personalization Page only allows me to use the SPEL for only one view object at a time. So if an employee is eligible for 3 plans that require beneficiary designation and my SPEL points to BeneficiaryPeopleVO1, it will only set the Read Only in Plan A. Plan B and Plan C would still allow self designation. Is there a way I could use the SPEL to work for all View Objects?
    Thanks,
    Ronaldo

    jeanluca wrote:
    I've seen things like this in scripting languages, so I was wondering if things like this are possible in java. Here is an not working example:
    Is something like this possible ?AFAIK, it is only possible in a very limited way as noted above and is nearly always not recommended and definitely not necessary. The variable name has little importance, but OTOH the object reference has great importance. Instead learn about arrays, Lists, and Maps.

  • How to use timestamp based dynamic message selector?

    Is it possible with message selector to issue query like statement that
    weill fetch any messages that have header timestamp older than "now" + 3 hrs.
    In SQL you would say something like:
    where timestamp <= sysdate + (180/1440)
    Please let ne know.
    Thank you,
    Edmon

    hi edmon,
    to my knowledge dynamically evalutaed expressions like this are not supported by any of the JMS vendors. messageselectors are in SQL92 format and the only dynamic part in them is the contents of the message properties and headers.
    So, you're out of luck with what you want to do (e.g., remove expired messages from a destination when they havent' been consumed within a time threshold??) but i could see two possible solutions:
    1) You could use time-to-live (TTL) on the sender side. Messages that are on the destination beyond their TTL would be placed onto a dead message queue (DMQ) from where you could consume them for further processing. DMQ is not a standard-JMS feature but supported by a few vendorrs (e.g., JBoss, ArjunaMS).
    2) You could use Message-driven Services (MDS) for more elaborate server-side message processing. MDS has been pioneered by ArjunaMS but is also available with a few other JMS vendors.
    Hope that helps!
    Kind regards,
    Thomas.

  • JDEV 10.1.3 Searching how to use query named in client

    I find all necessary information about creating a named query but i didn't find anything about using it in my application code.
    Does somebody know how to call a named query.

    Michel,
    Named queries is documented at: http://download-east.oracle.com/otn_hosted_doc/toplink/1013/MAIN/_html/qryun008.htm#CACFBJCI
    To execute a named query you want to use:
    session.executeQuery("query-name", MyClass.class, args);http://download-west.oracle.com/otn_hosted_doc/toplink/1013/MAIN/b13698/oracle/toplink/sessions/Session.html#executeQuery_java_lang_String__java_lang_Class__java_util_Vector_
    There are several versions of this method depending on the arguments you wish to pass. For named queries defined on a descriptor you want to use the methods that take a reference class as well as the query name.
    Doug

Maybe you are looking for

  • IPhone 4s went into recovery mode while updating to newest IOS

    While I was updating my iPhone 4 tonight to the newest IOS, it stopped and gave me the 'this iphone is in recovery mode' messagae and the only option was to restore it to factory settings.  I am running the newest OS on my imac 10.9.2 and my iphone i

  • Apps crashing after ios8 update

    Hi, Firstly congratulations on the overwhelming response to Apple 6 and big Apple 6 , now for the bad news after I upgraded my os to ios8 I'm having issues with most of th apps like you tube, flipkart, what's app facebook etc while most of the time t

  • Use multivalue parameter in "in" clause.

    Hi expert, I pass a status string 'OPEN;CLOSED;REOPEN' into procedure, and in the procedure I converted it into variable v_status in format 'OPEN','CLOSED','REOPEN', then used it in the procedure as follows: select * from table where status in v_stat

  • Error installing OracleDB 11.2.0.4 on Linux

    I recieving following error-message, when i try to install the database. The OS is Suse Linux Enterprise Server 11 on a virtual machine. Info: Begin Install/Clone Oracle Software db_11.2.0.4 Error: ---> parameter values ora_gid and GID of /app/sles11

  • How to validate the XSD files in Weblogic

    Hi, i want to validate a xsd file in the weblogic. if anyone give me a solution then i'll greet u.