Generate clients for multiple WSLDs using 'clientgen' task.

Issue -
I am trying to generate WS clients for multiple Services(WSDLs). I am using 'clientgen' task. But a 'clientgen'task accepts only one WSDL. If I have more one that one 'clientgen' task, some of the
common classes (generated) are overwritten.
For eg.
WSDL for Contract 1
<s:element name="executeResponse">
<s:complexType>
<s:sequence>
<s:element ref="soa:CancelOrderResponse"/>
</s:sequence>
</s:complexType>
</s:element>
<message name="executeSoapOut">
<part name="parameters" element="s0:executeResponse"/>
</message>
<portType name="CancelOrderSoap">
<operation name="execute">
<input message="s0:executeSoapIn"/>
<output message="s0:executeSoapOut"/>
</operation>
</portType>
<service name="CancelOrder">
<port name="CancelOrderSoap" binding="s0:CancelOrderSoap">
<soap:address location="http://localhost:7001/CoreWSProject/sync/CancelOrder.jws"/>
</port>
</service>
WSDL for Contract 2
<s:element name="executeResponse">
<s:complexType>
<s:sequence>
<s:element ref="soa:CancelOrderResponse"/>
</s:sequence>
</s:complexType>
</s:element>
<message name="executeSoapOut">
<part name="parameters" element="s0:executeResponse"/>
</message>
<portType name="CancelOrderSoap">
<operation name="execute">
<input message="s0:executeSoapIn"/>
<output message="s0:executeSoapOut"/>
</operation>
</portType>
<service name="CancelOrder">
<port name="CancelOrderSoap" binding="s0:CancelOrderSoap">
<soap:address location="http://localhost:7001/CoreWSProject/sync/CancelOrder.jws"/>
</port>
</service>
GENERATED CODE
A class ExecuteResponse will be generated for each service. This class gets overwritten if you use
multiple 'clientgen' tasks.
Question
Is there way to specify multiple WSDLs in 'clientgen' task so that i should be able to package
all the clientcode in one jar without any namespace issues ?
- Sandeep V

If the classes have the same namespace, by default, the same Java package name will be created. There is a packageName attribute on the clientgen Ant task, which provides some control over the Java package name that is used.
There is no way to specify multiple WSDLs to the clientgen Ant task. This makes sense if you subscribe to the notion that a WSDL represents a Web Service. It sounds like you can achieve what you want by:
1. Running clientgen on the first WSDL,
2. Use Ant to extract the contents of the generated JAR into a directory (with a name like clientgen),
3. Running clientgen on the next WSDL,
4. Use Ant to extract the contents of the generated JAR into the same clientgen directory,
5. etc, etc.
Afterwards, you would just need to use Ant to JAR up the clientgen directory. Again, you'll want to specify a different packageName attribute for each WSDL.
HTH,
Mike Wooten

Similar Messages

  • Generating hashes for multiple shares in one folder using BranchCache Publish-BCFileContent -Path

    When using Publish-BCFileContent to generate hashes for multiple shared directories that are all within the same parent directory, can I just specify the parent directory as the "-Path" parameter or do I need to run the cmdlet for each share
    separately?
    For example:
    My file server has 3 separate shared folders:
    E:\Shares\Documents
    E:\Shares\Music
    E:\Shares\Pictures
    (E:\Shares is not directly shared)
    To generate hashes for all 3 shared directories to export to a remote hosted cache computer could I run the Publish-BCFileContent cmdlet just once with just E:\Shares as the -Path parameter?
    Publish-BCFileContent -Path E:\Shares -StageData
    Or do I need to run the cmdlt 3 separate times as below?
    Publish-BCFileContent -Path E:\Shares\Documents -StageData
    Publish-BCFileContent -Path E:\Shares\Music -StageData
    Publish-BCFileContent -Path E:\Shares\Pictures -StageData

    Hi CharlesPool,
    If there are only these three subfolders under the directory E:\Shares, you can try the cmdlet:
    Publish-BCFileContent -Path E:\Shares -StageData -Recurse
    Use the recurse parameter to specify that hashes are created for content in subfolders. If you do not use this parameter, then hashes are created only for content in the top folder and no hashes are created for content in subfolders.
    If there are other folders under D:\Shares, you need to run the cmdlet separately, and you can also use the cmdlet foreach to loop every folders (E:\Shares\Documents, E:\Shares\Music, E:\Shares\Pictures):
    $folders = "E:\Shares\Documents","E:\Shares\Music","E:\Shares\Pictures"
    Foreach($folder in $folders){
    Publish-BCFileContent –Path $folder –StageData}
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Generate ws client for horde rpc using netbeans

    Hallo developers,
    I'd like to access my horde using webservices rcp (http://netvor.sk/horde/rpc.php?wsdl). I am new to ws so i rely on netbeans to generate client for me. Unfortunately it failed :-(
    Among other, wsdl describes messages of type xsd:resource and xsd:object (xsd is http://www.w3.org/2001/XMLSchema) like:<message name="mail.getStreamResponse">
    <part name="output" type="xsd:resource" />
    </message>as a result wscompile dies because resource is not defined in XMLSchema dtd. like: invalid entity name: "resource" (in namespace: "http://www.w3.org/2001/XMLSchema")
    I have jdk6 with bundled ws support and nb5.5. with JAX_RCP 1.6 library.
    How do I use these message of (custom?) type? Best using some wsimport/wscompe 'options' or maybe fallback to older java version -- I don't have time to 'play' with this (it's not my primary goal) so writing any code is ... aldo i fear that this is some sort of advanced topic and i'll have to study ws more that i'd like to :-)
    ~~
    Adam

    If this is not an rpc/encoded WSDL, you should try to use JAX-WS as it supports 100% of schema and is much better than JAX-WS. Check out http://jax-ws.dev.java.net for more information on JAX-WS. Best of all, JAX-WS is part of JDK 6.

  • How to generate client for GetFile service of Webcenter Content Management.

    How to generate client for GetFile service of Webcenter Content Management.
    Downloaded file : GetFile.wsdl
    <?xml version="1.0" encoding="utf-8" ?>
    - <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.stellent.com/GetFile/" targetNamespace="http://www.stellent.com/GetFile/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    - <types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://www.stellent.com/GetFile/">
    - <s:element name="GetFileByID">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="dID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="rendition" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="extraProps" type="s0:IdcPropertyList" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetFileByIDResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetFileByIDResult" type="s0:GetFileByIDResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:complexType name="GetFileByIDResult">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="FileInfo" type="s0:FileInfo" />
    <s:element minOccurs="0" maxOccurs="1" name="downloadFile" type="s0:IdcFile" />
    <s:element minOccurs="0" maxOccurs="1" name="StatusInfo" type="s0:StatusInfo" />
    </s:sequence>
    </s:complexType>
    - <s:element name="GetFileByName">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="dDocName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="revisionSelectionMethod" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="rendition" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="extraProps" type="s0:IdcPropertyList" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetFileByNameResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetFileByNameResult" type="s0:GetFileByNameResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:complexType name="GetFileByNameResult">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="FileInfo" type="s0:FileInfo" />
    <s:element minOccurs="0" maxOccurs="1" name="downloadFile" type="s0:IdcFile" />
    <s:element minOccurs="0" maxOccurs="1" name="StatusInfo" type="s0:StatusInfo" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="FileInfo">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="dDocName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocTitle" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocType" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocAuthor" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dSecurityGroup" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocAccount" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dRevClassID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dRevisionID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dRevLabel" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dIsCheckedOut" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="dCheckoutUser" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dCreateDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dInDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dOutDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dStatus" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dReleaseState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dFlag1" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dWebExtension" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dProcessingState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dMessage" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dReleaseDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dRendition1" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dRendition2" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dIndexerState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dPublishType" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dPublishState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dIsPrimary" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="dIsWebFormat" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="dLocation" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dOriginalName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dFormat" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dExtension" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dFileSize" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="CustomDocMetaData" type="s0:IdcPropertyList" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="StatusInfo">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="statusCode" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="statusMessage" type="s:string" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="IdcPropertyList">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="property" type="s0:IdcProperty" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="IdcProperty">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="value" type="s:string" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="IdcFile">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="fileName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="fileContent" type="s:base64Binary" />
    </s:sequence>
    </s:complexType>
    </s:schema>
    </types>
    - <message name="GetFileByIDSoapIn">
    <part name="parameters" element="s0:GetFileByID" />
    </message>
    - <message name="GetFileByIDSoapOut">
    <part name="parameters" element="s0:GetFileByIDResponse" />
    </message>
    - <message name="GetFileByNameSoapIn">
    <part name="parameters" element="s0:GetFileByName" />
    </message>
    - <message name="GetFileByNameSoapOut">
    <part name="parameters" element="s0:GetFileByNameResponse" />
    </message>
    - <portType name="GetFileSoap">
    - <operation name="GetFileByID">
    <input message="s0:GetFileByIDSoapIn" />
    <output message="s0:GetFileByIDSoapOut" />
    </operation>
    - <operation name="GetFileByName">
    <input message="s0:GetFileByNameSoapIn" />
    <output message="s0:GetFileByNameSoapOut" />
    </operation>
    </portType>
    - <binding name="GetFileSoap" type="s0:GetFileSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    - <operation name="GetFileByID">
    <soap:operation soapAction="http://www.stellent.com/GetFile/" style="document" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    - <operation name="GetFileByName">
    <soap:operation soapAction="http://www.stellent.com/GetFile/" style="document" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    </binding>
    - <service name="GetFile">
    - <port name="GetFileSoap" binding="s0:GetFileSoap">
    <soap:address location="http://localhost:7101/_dav/cs/idcplg" />
    </port>
    </service>
    </definitions>

    Hi,
    I would suggest you to check the time recording functionality, see
    details in:
    http://help.sap.com/saphelp_sm70ehp1_sp26/helpdata/en/d5/299631364d4e959
    c6609ca3bc24740/content.htm
    Another possibility is configuring the Service Level Agreement, see
    details in SDN blog:
    Service Desk: SLA configuration hints
    https://weblogs.sdn.sap.com/pub/wlg/24813
    or
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/24813
    Thanks
    Regards,
    Vikram

  • Payment advice for multiple vendor using tcode F110

    Hi all
    I am facing problem while printing payment advice program for Multiple vendors using transaction F110. If I passed single or multiple vendor , I am getting only single vendor payment advice details ( if I passed more than one vendor also) .I  need solution for multiple vendors .
    Tcode : F110
    Program : RFFOD__U .
    How to print multiple vendor for payment advice details.
    pls provide the solution for this..
    waiting for Reply.

    I have used different program RFFOD__S. It was working fine.

  • Report name for services where used in task lists

    plz let me know report name for services  where used in task lists.

    Hello Sairam,
    I am abit confused. Are you looking for report to find where the task list is used ? You can find all the available reports in The menu path Logistics -> Production -> Master Data -> Routings -> Reporting.
    If you want a specific one then please provide more details
    Thanks
    Amber

  • How to use one dynamic connection managers for multiple parallel data flow tasks

    hi there:
       I have 6 databases residing on the same server. What I want to do is  call a store procedure with identical name on each database dbo schema and transport results to a centralized place. The key is to have those SPs run in parallel instead
    of in sequence as each SP may take around 10 mins to finish. 
    The simplest way is to create 6 OLE DB connection managers and create 6 DFT tasks. However, I do not want to maintain 6 OLE DB connection managers as there is a chance to have more connection  managers.
     What I did so far is to create a OLD DB connection manager and use expression to set up connectionString properties so that it will get populated by variables at run time. It is fine when running all SPs in a Foreach Loop Container. However, it takes
    around 60 mins to finish.
      When I try to run it in parallel ( basically created 6 DFTs but use only one Dynamic Connection Manager), the connection string gets confused therefore all DFT tasks failed.
       Does anyone here have some experience on this topic?
    Thanks
     hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Yes, basically, on the connectionString property of ONE OLEDB, you are using an expression to supply value and this expression is pointing to a variable. 
    In this case , you can update this variable from a table which contains many connection strings. It's good if you want to execute Store procedures in a sequential order. When in parallel mode, this will cause issues as connectionString gets overwritten. 
     I am thinking about using script task to exec sp.
     The whole idea is that I do not want to maintain a large number of Connection Managers. 
    Hope it helps
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --
    So you are not able to run parallel executions using same conn mgmr, even with dynamic connectionstring, is that correct? Yes, script task will be a way to go if you wish to execute it in parallel, you may connect to SS and query the proper conn string with
    SELECT/WHERE clause in each script > pass it to a script variable > use that script variable and execute the proc. This will require only two things to change in each script, the WHERE condition to get the conn string and the proc name (you may even
    get the proc names the same way you get conn string) and everything else will be same. Let us know how that goes. 
    Hope no two or more procs doing insert/update/delete on the same tables.

  • Generate dbsequnce for a table using a bean

    Is it possible to generate the next dbsequence for a table using bean?
    Thanks

    If you are only interested in the number in the bean, you should implement a service method in out application module, expose it to the client interface and call this via the binding layer.
    public oracle.jbo.domain.Number getSequenceNumber()   {
            try    {
                String seq = "YOUR_DB_SEQUENCE_SEQ";
                oracle.jbo.server.SequenceImpl empSeq =
                    new oracle.jbo.server.SequenceImpl(seq, getDBTransaction());
                oracle.jbo.domain.Number zSerienNrSeq = empSeq.getSequenceNumber();
                return zSerienNrSeq ;
            catch (Exception e)        {
                e.printStackTrace();
            return null;
    }Timo

  • Generate smartform for multiple customers

    Hi all,
    I have to generate an output letter for  each customer using smartform .In the report program I am fetching the customer data and I am populating the data into an internal table say ts_customer. i.e ts_customer will contain the data of all the customers in case of multiple customer output. Suppose ts_customer contains 3 records corresponding to 3 customers.But when I am executing the program only the smartform output corresponding to the first customer is getting displayed i.e only one page is getting displayed.As of now I am looping the table ts_customer in the report program. Is it possible to loop the table ts_customer from within the smartform so that the letter corresponding to each customer will be displayed.
    Thanks & Regards,
    Neethu.

    Hi,
    In the main window ,
    under the table, loop the customer table.
    Regards,
    Raj.

  • JAX WS generated client for Contact WSDL V2.0 is not working

    Hi,
    I have generated stubs for Contact WSDL v2.0 using Metro JAX WS tool. I tried to use the generated stubs but was failed.
         Contact_Service service = new Contact_Service();
         Contact contService = service.getContact();
         BindingProvider bp = (BindingProvider) contService;
         Map<String, Object> context = bp.getRequestContext();
         context.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, sessionEndPoint);
    The execution of service.getContact() statement completes in approx 15-20 mins with the below exception stack trace:
         Thread [main] (Suspended (exception InvocationTargetException))     
              GeneratedConstructorAccessor22.newInstance(Object[]) line: not available     
              DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27     
              Constructor<T>.newInstance(Object...) line: 513     
              PropertyFactory.create(JAXBContextImpl, RuntimePropertyInfo) line: 113     
              ClassBeanInfoImpl<BeanT>.<init>(JAXBContextImpl, RuntimeClassInfo) line: 164     
              JAXBContextImpl.getOrCreate(RuntimeClassInfo) line: 479     
              JAXBContextImpl.<init>(JAXBContextImpl$JAXBContextBuilder) line: 305     
              JAXBContextImpl$JAXBContextBuilder.build() line: 1100     
              ContextFactory.createContext(Class[], Collection<TypeReference>, Map<Class,Class>, String, boolean, RuntimeAnnotationReader, boolean, boolean, boolean) line: 143     
              JAXBRIContext.newInstance(Class[], Collection<TypeReference>, Map<Class,Class>, String, boolean, RuntimeAnnotationReader) line: 95     
              JAXBContextFactory$1.createJAXBContext(SEIModel, List<Class>, List<TypeReference>) line: 97     
              AbstractSEIModelImpl$1.run() line: 148     
              AbstractSEIModelImpl$1.run() line: 140     
              AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not available [native method]     
              SOAPSEIModel(AbstractSEIModelImpl).createJAXBContext() line: 140     
              SOAPSEIModel(AbstractSEIModelImpl).postProcess() line: 83     
              RuntimeModeler.buildRuntimeModel() line: 244     
              WSServiceDelegate.createSEIPortInfo(QName, Class, WebServiceFeature...) line: 687     
              WSServiceDelegate.addSEI(QName, Class, WebServiceFeature...) line: 675     
              WSServiceDelegate.getPort(WSEndpointReference, QName, Class<T>, WebServiceFeature...) line: 330     
              WSServiceDelegate.getPort(QName, Class<T>, WebServiceFeature...) line: 313     
              WSServiceDelegate.getPort(QName, Class<T>) line: 295     
              Contact_Service(Service).getPort(QName, Class<T>) line: 99     
              Contact_Service.getContact() line: 72     
              Main.main(String[]) line: 25     
    I have also generated stubs for Contact WSDL v1 using JAX-WS and it was working fine.
    I am wondering why JAX-WS stubs for Contact WSDL V2 is not working. I have also generated stubs for both v1 and v2 WSDL using Axis tool, and it was working fine.
    Can anyone suggest us the workaround/solution to this issue.
    Thanks for your patients and time.
    Regards
    Ravish

    Hello Ravish,
    Can you please confirm the following:
    1) Check the Admin>Web Services Utilization page in CRMOD to see if the request is received
    2) Do you receive any response from CRMOD on the client side and if so, please post the SOAP response
    3) Have you tried other objects and had any issues with them?
    Thanks,
    Sean

  • Plsql client for twitter api (using oauth)

    Hi,
    I am probably being a bit optimistic, but does anybody have a plsql client for twitter that will allow me to post status updates from oracle? I found this http://somecodinghero.blogspot.com/2010/09/updating-twitter-from-database-using.html, but it doesn't work, simply giving me 401 Unauthorized whenver I try.
    Make my day? Please?
    Thanks
    Ralph

    So.... Are you ready? Let's go.....
    Twitter Part:
    1. Acess https://dev.twitter.com
    2. Login
    3. Create New Application
    4. Fill out the data requested by twitter(and create application).
    5. Click button "Create my acess token".
    6. Copy Consumer key     ,Consumer secret     ,Access token     ,Access token secret     to Notepad++(or elsewhere).
    7. Click the Tab Settings, and change Application Type to "Read, Write and Access direct messages". click the "Update..."
    After installing DB and verified that you have Java 1.5 in your local machine and downloaded twitter4j jar.
    1. Open Jdeveloper(i'm working with 11.1.2.1.0)
    2. Create a new Application. Create a java Class with:
    package client;
    import twitter4j.*;
    import twitter4j.conf.ConfigurationBuilder;
    public class TweetMeMan {
        public static String sendTweet(String msg, String sOAuthConsumerKey, String sOAuthConsumerSecret, String  sOAuthAccessToken, String sOAuthAccessTokenSecret ) {
            String result = "Ok";       
            try {
                ConfigurationBuilder cb = new ConfigurationBuilder();
                cb.setOAuthConsumerKey(sOAuthConsumerKey);
                cb.setOAuthConsumerSecret(sOAuthConsumerSecret);
                cb.setOAuthAccessToken(sOAuthAccessToken);
                cb.setOAuthAccessTokenSecret(sOAuthAccessTokenSecret);           
                TwitterFactory tf = new TwitterFactory(cb.build());
                Twitter twitter = tf.getInstance();
                Status status = twitter.updateStatus(msg);
                System.out.println("Successfully updated the status to [" + status.getText() + "].");
            } catch (Exception e) {
                System.out.println("Error : " + e.getMessage());
                result = e.getMessage();
            return result;
    }3. Click Project Settings and in Libraries add twitter4j(version).jar
    4. Compile project. No errors? Nice.... Errors? Check the log and fix them ;)
    5. Create a New Deployment Profile
    5.1. Profle Type : Jar File
    5.2 Deployment Profile Name : vrodriguestweet (in my case)
    6. Deploy the vrodriguestweet (it will save de jar file in deploy folder)
    7. Open command line (cmd.exe)
    8. Write
    loadjava -r -f -o -user vrodrigues/yourpaswword@YourDB your_location_of_the_jar_created_above\vrodriguestweet.jar9. Open Sqldeveloper(or sqlplus) and check if there is under Java this name exists : client/TweetMeMan
    9.1 client is the java package i created the java file.
    10. Now let's create the function:
    CREATE FUNCTION letsTweetVR (p_message varchar2, p_OAuthConsumerKey varchar2, p_OAuthConsumerSecret varchar2, p_OAuthAccessToken varchar2, p_OAuthAccessTokenSecret varchar2  )
       RETURN VARCHAR2
       AS LANGUAGE JAVA
       NAME 'client/TweetMeMan.sendTweet
         (java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) return java.lang.String';   10.1. No errors? Amazing....keep going you are almost there...
    11. Let's tweet:
    BEGIN
      DBMS_OUTPUT.PUT_LINE(letsTweetVR('Tweeting from database...Awesome, right?',
                                              'your_OAuthConsumerKey',
                                             ' your_OAuthConsumerSecret',
                                             'your_OAuthAccessToken',
                                            'your_OAuthAccessTokenSecret')
    END;Of course you can do this inside a package or passing the values from some interface.... And you can also do other things that twitter4j does... Like Search for Tweets and so on and so on. ;)
    Did someone like this? Or i'm an idiot? : D
    All credits goes to the developer of twitter4j....
    P.S Remember that this is my first usage of java in DB...so if you can do better, please advise ;)
    P.S.1. I will blog this with entire full steps.... just trying to get the time for it :/
    https://lh6.googleusercontent.com/-ktXgF_N5rQU/Tz0hx8cEbgI/AAAAAAAAA-s/LOoTf_5pnd0/s864/twiiter.png
    Edited by: Vitor Rodrigues on 16/Fev/2012 15:46

  • How to build ear files for ADF application using Ant task

    How to build ear files for ADF applications using Ant. The ojdeploy ant task can not find application-level deployment profiles. I am trying to automated build and release for ADF application.
    Any help is highly appreciated.
    Thanks
    Shiva

    Hi Timo
    Thanks for your reply.
    I have successfully created ear file using ojdeploy on jenkins. however when am trying to auto deploy using WLDeploy ant task am getting the following
    error :
    weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/quicklinks/scopedMD" mapped to metadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration
    Please advise how to handle this.
    As am a newbie to ADF, could you please advise if it is possible for the ADF application deployments can be automated for different environments using jenkins due to this MDS dependencies.
    Appreciate your help.
    Thanks
    Shiva

  • Payment advice for multiple vendors using F110

    Hi all
    I am facing problem while printing Multiple vendors payment advice using transaction F110.I am getting layout for first vendor only( using Tcode ). when I execute on via program I am getting below error.
    "An unallowed overflow of the main window occurred"
    how to solve this .pls provide the solution for this..
    I am using Tcde : F110.
    Program name : RFFOD__U .
    waiting for Reply.

    i have used different payment run program

  • File format for multiple characteristics using BAPI_inspectionplan_create

    Hi ,
    I am trying to upload/create inspection plan through the BAPI_INSPECTIONPLAN_CREATE and would need to upload multiple operations , multiple inspection characteristics . Can someone help me in the how would be the file format structure to be used . I have multiple characteristics for a single operations.
    << Moderator message - Please do not promise points >>
    Many thanks in advance.
    Edited by: Rob Burbank on May 16, 2011 12:35 PM

    Hi All,
    Have any one used this BAPI, BAPI_INSPECTIONPLAN_CREATE to create Inspection Plan ?
    Can you help me on above errors?
    Thanks in advance,
    Sabu

  • Entity Framework Generated SQL for paging or using Linq skip take causes full table scans.

    The slq genreated creates queries that cause a full table scan for pagination.  Is there any way to fix this?
    I am using
    ODP.NET ODTwithODAC1120320_32bit
    ASP.NET 4.5
    EF 5
    Oracle 11gR2
    This table has 2 million records. The further into the records you page the longer it takes.
    LINQ
    var cnt = (from errorLog in ctx.ERRORLOGANDSERVICELOG_VIEW
                        select errorLog).Count();
                    var query = (from errorLog in ctx.ERRORLOGANDSERVICELOG_VIEW
                                 orderby errorLog.ERR_LOG_ID
                                 select errorLog).Skip(cnt-10).Take(10).ToList();
    Here is the query & execution plans.
    SELECT *
    FROM   (SELECT "Extent1"."ERR_LOG_ID"  AS "ERR_LOG_ID",
                   "Extent1"."SRV_LOG_ID"  AS "SRV_LOG_ID",
                   "Extent1"."TS"          AS "TS",
                   "Extent1"."MSG"         AS "MSG",
                   "Extent1"."STACK_TRACE" AS "STACK_TRACE",
                   "Extent1"."MTD_NM"      AS "MTD_NM",
                   "Extent1"."PRM"         AS "PRM",
                   "Extent1"."INSN_ID"     AS "INSN_ID",
                   "Extent1"."TS_1"        AS "TS_1",
                   "Extent1"."LOG_ETRY"    AS "LOG_ETRY"
            FROM   (SELECT "Extent1"."ERR_LOG_ID"                                  AS "ERR_LOG_ID",
                           "Extent1"."SRV_LOG_ID"                                  AS "SRV_LOG_ID",
                           "Extent1"."TS"                                          AS "TS",
                           "Extent1"."MSG"                                         AS "MSG",
                           "Extent1"."STACK_TRACE"                                 AS "STACK_TRACE",
                           "Extent1"."MTD_NM"                                      AS "MTD_NM",
                           "Extent1"."PRM"                                         AS "PRM",
                           "Extent1"."INSN_ID"                                     AS "INSN_ID",
                           "Extent1"."TS_1"                                        AS "TS_1",
                           "Extent1"."LOG_ETRY"                                    AS "LOG_ETRY",
                           row_number() OVER (ORDER BY "Extent1"."ERR_LOG_ID" ASC) AS "row_number"
                    FROM   (SELECT "ERRORLOGANDSERVICELOG_VIEW"."ERR_LOG_ID"  AS "ERR_LOG_ID",
                                   "ERRORLOGANDSERVICELOG_VIEW"."SRV_LOG_ID"  AS "SRV_LOG_ID",
                                   "ERRORLOGANDSERVICELOG_VIEW"."TS"          AS "TS",
                                   "ERRORLOGANDSERVICELOG_VIEW"."MSG"         AS "MSG",
                                   "ERRORLOGANDSERVICELOG_VIEW"."STACK_TRACE" AS "STACK_TRACE",
                                   "ERRORLOGANDSERVICELOG_VIEW"."MTD_NM"      AS "MTD_NM",
                                   "ERRORLOGANDSERVICELOG_VIEW"."PRM"         AS "PRM",
                                   "ERRORLOGANDSERVICELOG_VIEW"."INSN_ID"     AS "INSN_ID",
                                   "ERRORLOGANDSERVICELOG_VIEW"."TS_1"        AS "TS_1",
                                   "ERRORLOGANDSERVICELOG_VIEW"."LOG_ETRY"    AS "LOG_ETRY"
                            FROM   "IDS_CORE"."ERRORLOGANDSERVICELOG_VIEW" "ERRORLOGANDSERVICELOG_VIEW") "Extent1") "Extent1"
            WHERE  ("Extent1"."row_number" > 1933849)
            ORDER  BY "Extent1"."ERR_LOG_ID" ASC)
    WHERE  (ROWNUM <= (10))
    | Id  | Operation              | Name                   | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT       |                        |    10 | 31750 |       |   821K  (1)| 02:44:15 |
    |*  1 |  COUNT STOPKEY         |                        |       |       |       |            |          |
    |   2 |   VIEW                 |                        |  1561K|  4728M|       |   821K  (1)| 02:44:15 |
    |*  3 |    VIEW                |                        |  1561K|  4748M|       |   821K  (1)| 02:44:15 |
    |   4 |     WINDOW SORT        |                        |  1561K|  3154M|  4066M|   821K  (1)| 02:44:15 |
    |*  5 |      HASH JOIN OUTER   |                        |  1561K|  3154M|       |   130K  (1)| 00:26:09 |
    |   6 |       TABLE ACCESS FULL| IDS_SERVICES_LOG       |  1047 | 52350 |       |     5   (0)| 00:00:01 |
    |   7 |       TABLE ACCESS FULL| IDS_SERVICES_ERROR_LOG |  1561K|  3080M|       |   130K  (1)| 00:26:08 |
    Predicate Information (identified by operation id):
       1 - filter(ROWNUM<=10)
       3 - filter("Extent1"."row_number">1933849)
       5 - access("T1"."SRV_LOG_ID"(+)="T2"."SRV_LOG_ID")

    I did try a sample from stack overflow that would apply it to all string types, but I didn't see any query results differences.  Please note, I am having the problem without any order with or where statements. Of course the skip take generates them.  Please advise how I would implement the EntityFunctions.AsNonUnicode method with this Linq query.
    LINQ
    var cnt = (from errorLog in ctx.ERRORLOGANDSERVICELOG_VIEW
                        select errorLog).Count();
                    var query = (from errorLog in ctx.ERRORLOGANDSERVICELOG_VIEW
                                 orderby errorLog.ERR_LOG_ID
                                 select errorLog).Skip(cnt-10).Take(10).ToList();
    This is what I inserted into my model to hopefully fix it.  FROM:c# - EF Code First - Globally set varchar mapping over nvarchar - Stack Overflow
    /// <summary>
    /// Change the "default" of all string properties for a given entity to varchar instead of nvarchar.
    /// </summary>
    /// <param name="modelBuilder"></param>
    /// <param name="entityType"></param>
    protected void SetAllStringPropertiesAsNonUnicode(
       DbModelBuilder modelBuilder,
       Type entityType)
       var stringProperties = entityType.GetProperties().Where(
      c => c.PropertyType == typeof(string)
       && c.PropertyType.IsPublic
       && c.

Maybe you are looking for

  • How do I make a linked PDF open in fullscreen view? [contd]

    I believe I asked the wrong question earlier. The PDF actually opens in a 'page width' mode if I open the file from the acrobat.com list. However, if I open from the 'Sent files' list followed by 'open link', the screen format is a box on the left fo

  • MDB and AdtMessage

    Hi, I'm trying to set a Message Driven Bean to listen to a Oracle Queue which has payload type of AdtMessage. I would like to ask do Message Driben Beans support messages of AdtMessage type? I'm using Oracle AS10g 10.1.2 and Oracle Database 10g Enter

  • Reinstall Photoshop Elements

    I have to reinstall Photoshop Elements 11 and Premiere 11 and have NO DISK. I don`t need version 12. How can I do ?? RENZO

  • Badi's cprojects

    Hi, All I have a problem in the interchange English and Spanish language in Portal, when I change the browser's language to spanish the titles are all OK, but in the iview Dashboard in Project Management tab --> Project the titles of the columns had

  • Premiere Pro Trial Trouble...

    I have the Adobe Creative Cloud desktop thing on my computer to get the downloads/trails of products but for some reason a few of the programs don't show on it and the one I am attempting for a free trial is on that list. What can I do to get it?