Creating APIs

Hi all,
I am using jdk1.2.2 on win98. I have my classes ready and also created a jar file. How can I create an application file (e.g. exe file) so that the clients can install the software. Also I also want to create an API documentation so that the clients can find my program very user-friendly.
Expecting a positive response.

You can write the JavaDocs with your program for the API Documentation. For JavaDoc, have a look at this link
http://java.sun.com/j2se/javadoc/writingdoccomments/
You can create an executable jar file for your clients so that they can install the software. How to create an executable Jar
http://java.sun.com/j2se/1.3/docs/guide/jar/jarGuide.html
HTH
Raheel

Similar Messages

  • How to call the Salesforce  webservice  create api ?

    Hello Friends,
    I am using Oracle BPEL process manager 10.1.2 .
    I have created the BPEL process project.
    In it I have deployed the Salesforce webservice.
    I have assigned the session id ,URL according to the as given in
    demos->salesforceflow .
    I have called the login api , query api that is successfully called.
    But when I call the Create api then it gives the error at run time that
    "Invalid session id found in session header".
    so please tell me what could be reason for this..
    Thanks and regards
    Ram Krishna Tripathi
    [email protected]
    ====================
    BPEL file is as follows:--
    <process name="SalesforceFlow" targetNamespace="http://samples.otn.com" suppressJoinFailure="yes" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:tns="http://samples.otn.com" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:salesforce="urn:enterprise.soap.sforce.com" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:ns1="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:salesObject="urn:sobject.enterprise.soap.sforce.com" xmlns:ns3="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" xmlns:ns2="http://schemas.oracle.com/xpath/extension/ldap" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="tns:SalesforceFlow" myRole="SalesforceFlowProvider" partnerRole="SalesforceFlowRequester"/>
    <partnerLink name="salesforce" partnerLinkType="salesforce:SoapLink" partnerRole="SoapProvider"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="input" messageType="tns:SalesforceFlowRequestMessage"/><!-- Reference to the message that will be sent back to the
    requester during callback
    -->
    <variable name="output" messageType="tns:SalesforceFlowResponseMessage"/>
    <variable name="createinput" messageType="salesforce:queryRequest"/>
    <variable name="createoutput" messageType="salesforce:queryResponse"/>
    <variable name="Invoke_1_create_InputVariable" messageType="salesforce:createRequest"/>
    <variable name="Invoke_1_create_OutputVariable" messageType="salesforce:createResponse"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in SalesforceFlow.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="tns:SalesforceFlow" operation="initiate" variable="input" createInstance="yes"/>
    <scope name="customerPreference">
    <variables>
    <variable messageType="salesforce:loginRequest" name="loginRequest"/>
    <variable messageType="salesforce:loginResponse" name="loginResponse"/>
    <variable messageType="salesforce:Header" name="headerRequest"/>
    <variable messageType="salesforce:queryRequest" name="queryRequest"/>
    <variable messageType="salesforce:queryResponse" name="queryResponse"/>
    <variable name="partnerReference" element="wsa:EndpointReference"/>
    <variable name="Variable_1" messageType="salesforce:Header"/>
    </variables>
    <sequence>
    <assign name="setSalesforceAuthorization">
    <copy>
    <from variable="input" part="payload" query="/tns:SalesforceFlowRequest/tns:username"/>
    <to variable="loginRequest" part="parameters" query="/salesforce:login/salesforce:username"/>
    </copy>
    <copy>
    <from variable="input" part="payload" query="/tns:SalesforceFlowRequest/tns:password"/>
    <to variable="loginRequest" part="parameters" query="/salesforce:login/salesforce:password"/>
    </copy>
    </assign>
    <invoke partnerLink="salesforce" portType="salesforce:Soap" operation="login" inputVariable="loginRequest" outputVariable="loginResponse"/>
    <assign name="readSessionConfig">
    <copy>
    <from variable="loginResponse" part="parameters" query="/salesforce:loginResponse/salesforce:result/salesforce:sessionId"/>
    <to variable="headerRequest" part="SessionHeader" query="/salesforce:SessionHeader/salesforce:sessionId"/>
    </copy>
    <copy>
    <from>
    <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">
    <Address/>
    </EndpointReference>
    </from>
    <to variable="partnerReference"/>
    </copy>
    <copy>
    <from expression="string(bpws:getVariableData('loginResponse', 'parameters', '/salesforce:loginResponse/salesforce:result/salesforce:serverUrl'))"/>
    <to variable="partnerReference" query="/wsa:EndpointReference/wsa:Address"/>
    </copy>
    <copy>
    <from variable="partnerReference"/>
    <to partnerLink="salesforce"/>
    </copy>
    <copy>
    <from expression="concat( 'select Fax from account where AccountNumber=',ora:addQuotes( string(bpws:getVariableData('input','payload','/tns:SalesforceFlowRequest/tns:accountNumber'))) )"/>
    <to variable="queryRequest" part="parameters" query="/salesforce:query/salesforce:queryString"/>
    </copy>
    </assign>
    <invoke partnerLink="salesforce" portType="salesforce:Soap" operation="query" inputVariable="queryRequest" outputVariable="queryResponse" bpelx:inputHeaderVariable="headerRequest"/>
    <assign name="Assign_1">
    <copy>
    <from variable="loginResponse" part="parameters" query="/salesforce:loginResponse/salesforce:result/salesforce:sessionId"/>
    <to variable="Variable_1" part="SessionHeader" query="/salesforce:SessionHeader/salesforce:sessionId"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" partnerLink="salesforce" portType="salesforce:Soap" operation="create" inputVariable="Invoke_1_create_InputVariable" outputVariable="Invoke_1_create_OutputVariable"/>
    </sequence>
    </scope><!-- Asynchronous callback to the requester.
    Note: the callback location and correlation id is transparently handled
    using WS-addressing.
    -->
    <invoke name="callbackClient" partnerLink="client" portType="tns:SalesforceFlowCallback" operation="onResult" inputVariable="output"/>
    </sequence>
    </process>
    =====================
    WSDL FILE
    =============
    <definitions
    name="SalesforceFlow"
    targetNamespace="http://samples.otn.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://samples.otn.com"
    xmlns:ns1="urn:enterprise.soap.sforce.com"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    >
    <import namespace="urn:enterprise.soap.sforce.com" location="services/enterprise.wsdl"/>
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://samples.otn.com"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://abo-server:9700/orabpel/xmllib/ws-addressing.xsd"/>
    <element name="SalesforceFlowRequest">
    <complexType>
    <sequence>
    <element name="username" type="string"/>
    <element name="password" type="string"/>
    <element name="accountNumber" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="SalesforceFlowResponse">
    <complexType>
    <sequence>
    <element name="price" type="double"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="SalesforceFlowRequestMessage">
    <part name="payload" element="tns:SalesforceFlowRequest"/>
    </message>
    <message name="SalesforceFlowResponseMessage">
    <part name="payload" element="tns:SalesforceFlowResponse"/>
    </message>
    <portType name="SalesforceFlow">
    <operation name="initiate">
    <input message="tns:SalesforceFlowRequestMessage"/>
    </operation>
    </portType>
    <portType name="SalesforceFlowCallback">
    <operation name="onResult">
    <input message="tns:SalesforceFlowResponseMessage"/>
    </operation>
    </portType>
    <plnk:partnerLinkType name="SalesforceFlow">
    <plnk:role name="SalesforceFlowProvider">
    <plnk:portType name="tns:SalesforceFlow"/>
    </plnk:role>
    <plnk:role name="SalesforceFlowRequester">
    <plnk:portType name="tns:SalesforceFlowCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

    On your Invoke, click the "adapter" tab and make sure the header variable is selected.

  • Create API append in the transaction COMM_ATTRSET

    Hi Friends,
    We have implemented the Note <b>602673</b> to Download R/3 ERP Material Sales Status MVKE-VMSTD to CRM.
    We have overlooked the point in the Note where it is mentioned that the check box <b>Create API append</b> should be checked while including the settype in the transporting request. We have found this when we read the document again and looked at the menu path Settype/Attributes -> Transport -> Include in Request. We entered our newly created settype here and and we could see that the check box Create API append is not enabled.
    The problem is, we are having some BDocs in the intermediate state. When we reprocess them in the Development system they are processed successfully. But when we reprocess the BDoc in the Production system, it gives a dump with the DUPLICATE_ENTRY exception raised.
    Our doubt is,
    1. Does the enabling of the check box mentioned above will solve the problem?
    2. What is the impact when this check box is checked or unchecked?
    3. Is there any other reason for this dump? If so how to solve that?
    We have found that in the BDoc, we have MNT_SETTYPE table filled with the settypes. In the Development system we have the newly created settype only once, but in the Production system the settype is seen twice. Is this the reason  for the dump.
    Please revert back with your ideas and solutions. You will be definitely rewarded with points.
    Regards,
    Raju

    Hi Murali
    Thanks for the reply..
    But my question is what is the reason for the dump when I reprocess the BDoc in the Production system. And why the settype entry in the BDoc is twice?
    The dump shows that the exception is raised from the include program SET_RELF41 and in the code
    update buffer
      INSERT ls_prrel INTO TABLE gm_prrel.
      IF sy-subrc NE 0.
        RAISE duplicate_entry.
      ENDIF.
      DELETE TABLE gm_prrel_delete FROM ls_prrel.
    How to solve this?
    Regards,
    Raju

  • How to create API

    hi plz let me know how to create API for user defined class

    Well what do you want to know exactly? The topic of this thread leaves a lot to the imagination.
    - To create documentation for your API: use the command line javadoc tool that comes with the SDK, or use an IDE like Netbeans to generate the javadocs.
    - to create an API you basically just create your own package of classes (plus documentation, or how else is anybody going to use your API?). To easily distribute this API you should put all those classfiles in a jar using the jar command line tool or again an IDE to make the job easier.

  • Creating API User Hooks for Saudi HRMS

    Dear All,
    I want to create API User hooks for Person Extra Information Type,Any one could help me.
    Thanks and regards,

    If you want to learn how a user hook works, you can check the metalink note 73170.1. Or you can visit the following link.This guy has given the whole content in his blog.
    http://shrigupta.blogspot.com/2010/06/understanding-and-using-api-user-hooks.html
    Hope this helps.

  • Create API in VORowImpl functionality

    We are calling the createAndInit(AttributeList) in our EOImpl code to create a row which inturn calls the create(AtrributeList) api in voRowImpl.Here in the AttributeList we are passing NameValuepairs.Now,I wanted to know if we pass an extra attribute in namevalue pair which is not defined in the underlying VO,Currently it doesnt give any error,but is this the expected functionality. We want to ensure this so that it doesnt cause any issues in future

    Hi,
    attributes are populated by the definition of the entityDefImpl class, which means all attributes you pass that don't have a match in the entity are ignored
    Frank

  • Creating API Reference

    Is there an application that generates API reference from .java files? I'm working with an application that has many custom java classes, and their API reference is in the same format as that of the Java API reference. I was wondering if there was anything that can generate all of this automatically?

    Do you mean something besides javadoc?
    Javadoc will do all that you asked. You can added additional notes and information to the docs by inserting /**...*/ style comments just before the methods or classes you are documenting. If you don't insert any notes, javadoc will just document the method and parameters.
    -Freeman

  • How to create Detailed API? urgent!!!!!

    Hi all
    I know how to create API using javadoc. but in that case it shows me the list of methods and fields. but i want to have some details of all the things. so can you tell me how to do that. do i need to give some details in my .java file or anything else?
    please do reply fast...
    thanx so much
    jhelam

    If you're trying to look at the documentation of java files and want to know everything about them w/o opening each file yourself you are probably going to need to write your own code to examine each .java file on a text level. As far as I know there isn't any special classes or API's out there that will automate the documentation process for every variable and method (including private ones) and also standard comments. If this is what you are trying to do then you will probably need to create it yourself. The other aspect is trying to decompile the class files but that too can be misleading and incorrect many times.

  • Error while creating Business Object

    Hello All,
    I am creating one business object for the Chapter ID. But while creating API method the error message is coming up as "Parameter <parametername> does not have a reference structure".
    But I already defined BAPI Structure which has the required fields and also i follow the Std. naming convenions.
    Kindly guide me for the same.
    Egarly Waiting for the reply.
    Regards
    Nilesh Shete

    Hi Nilesh,
    could you please go a bit more into detail?
    Best would be to post the interesting parts of your source code here.
    At the moment I can only guess that you created an adaptive RFC model. But did you also create a context node and bind the model to it?
    What do you mean with "creating API method" and "I am creating one business object for the Chapter ID"?
    Regards
    Helmut

  • Passing Database Constant as a default value to EBS TCA API??

    My synch BPEL process calls EBS TCA (Trading Community Architecture) APIs via Apps Adapter to create and update Organizations (Parties) and Customers (Accounts) accordingly. TCA provides two types of APIs to do the same job - one uses record types and tables as parameters, while the other uses object types as parameters and is called Business Object(BO) API. I am using BO for my solution.
    One of the features of the Update API (hz_org_cust_bo_pub.*update*orgcust_bo) is you can pass a database constant (FND_API.G_MISS_CHAR) as a parameter value in order to nullify an existing value. Ex: AddressLine2 for a customer address has now changed and does not exists anymore. In order to update and existing value to NULL, you are required to pass one of the following constants as a parameter value.
    Following is a formal description of these optional parameter values from the TCA Reference document.....
    Optional IN parameters do not have default values. An attribute value that is not
    passed in is assumed to have a default of null for a Create API. For an Update API, if a
    particular attribute value is not passed into the API, then the database retains the
    existing value. In order to set a database value to null, the calling program must
    explicitly set the attribute value to one of the following constants, based on the data
    type of the attribute.
    +• FND_API.G_MISS_NUM for NUMBER type. (or FND_API.G_NULL_NUM)+
    +• FND_API.G_MISS_CHAR for VARCHAR2 type. (or FND_API.G_NULL_CHAR)+
    +• FND_API.G_MISS_DATE for DATE type. (or FND_API.G_NULL_DATE)+
    ISSUE:
    I am unable to pass and have the value FND_API.G_NULL_CHAR be treated as a constant by the API. When this value is passed by the BPEL process to the Apps Adapter (API) it gets passed as a string literal, as such, does not get treated as a database constant by the API. Also, on creating the apps adapter for this particular API (TCA BO) a wrapper program is NOT created. So, I can't modify the wrapper (as it does not exist) to pass this FND_API constant. The only option I can currently think of is to write my own custom PL/SQL package that calls the standard API and in turn have the custom package be called by the apps adapter. But, I am hoping this is not the only option, it takes away several benefits.
    Any thoughts will be greatly appreciated.
    ilyas

    I think that may be your only option. I haven't implemented this using the Apps Adapter but in order to get this functionality you need to have implmented the security architecture where you login as an Apps User, not APPS.
    I would raise a SR for this as this may be a bug.
    cheers
    James

  • Creating GUI based Help File!!!

    Can anyone point me to a resource where I can find information for creating Help for a GUI based application? I know that javadoc can create API specification for standalone programs but I like something for GUI based application like the one found on MS Word under Help menu.
    Need help plz.
    --DM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    If anyone is trying to find out how DM777 implemented help. I would guess that he found JavaHelp.
    Here's a search to get you started
    http://onesearch.sun.com/search/developers/index.jsp?and=javahelp&nh=10&phr=&qt=&not=&field=&since=&col=javadoc&col=javatecharticles&col=javatutorials&col=devarchive&col=devall&rf=0&Search.x=0&Search.y=0

  • How to create Dynamic number of attachments in BPM Process ?

    Hi All,
    I have a requirement to create a dynamic number of attachments, as per need. I am aware of attachment.create() but i believe with this i can only create only the fixed number of attachments. Is there any way by which i can play around with create() api or is there any other API to fullfill the requirement??
    Any response is well appreciated.
    Regards,

    Hi,
    You can create the n-items in the region by creating items in the controller. i mena to see say by looping..
    Thanks,
    Kumar

  • [ADF] migration to ADF, pl/sql based DB api

    We are planning to move one of our project to ADF (we using flex for now), we have all our DB working through the proc/functions API.
    Its about 50+ entities, lots of rename/update/create api already exists and working well.
    There seems a bit tricky to make ADF BC work through API, as I have found mere examples it looks like it more like exception from the rule, and every Entity and View BC is has to be rewritten by hand.
    There are two frameworks around - [Avroms’s Package based API|http://www.avromroyfaderman.com/framework-for-database-api-based-adf-bc/framework-for-package-api-based-adf-business-components/] that is 3 years old it works for our testing, but I encounter strange behavior when using BLOB fields. As Avrom abandoned it and here is a not right place to ask questions about his framework – I’m really stuck with it 
    Second framework is a evolution of the first one, Framework for Database API-Based ADF BC, and was hosted on oracle’s samplecode [is not avaible for now|https://database-api-based-adf-bc.samplecode.oracle.com/] , and there no way to get it.
    What will be best practice to solve my problem:
    1) Some simple way to build ADF BC on API, that is not obvious
    2) Someone who can help with old framework to get it work in proper way
    3) Try to convince PM to change the way new project work in ADF-native table/view way (it almost impossible, but who knows?)
    4) ??? some suggestions
    Thanks in advance

    Yes, it is, but when I trying to use that framework and encountered some strange behavior when I have Blob columns in viewObject:
    It looks like resultSet is missing first two rows.
    With empty resultSet or when number of rows is below 2 I have an error:
    (oracle.adf.model.connection.ConnectionException) JBO-29000: Unexpected exception caught: java.sql.SQLRecoverableException, msg=Closed Resultset: next
    In case when number of rows is more then two – there is no error, but results is shown from third row.
    Error can be reproduced in [Demo app|http://www.avromroyfaderman.com/wp-content/uploads/2009/05/packageapidemo.zip] :
    1) Add blob field to Employees table
    2) Modify GET_EMPS function to return new blob field
    3) adding blob field to Employees entity and EmloyeesView
    Thats make me stuck with it, as I have some blob fields in fundamental entities, so I can't proceed.
    Avrom’s blog looks abandoned, and my comment there is still waiting for pre-moderation for a week+ and no responce from author through contact form.
    I asked for newer framework version in the thread you pointing, but my post was deleted, assuming that all question on getting newer framework version must be pointed to Avrom or waiting for Frank to get his hands on project to make it EMG again.

  • Best way for Email Notifications in EWS Managed API 2.0 [ Exchange Server 2013]

    Hi ,
    I want to know best way for Email Notifications in Exchange server. My
    organisation has 
    10 users, i want to get notification if any user mailbox got any new mail.
    i need to create API,
    that was consumed by another Team in their Application.
    I am using Exchange server 2013.
    Please share Your Ideas.
    Thank you

    Take a look at EWS Notifications
    http://msdn.microsoft.com/en-us/library/office/dn458791(v=exchg.150).aspx .
    Cheers
    Glen

  • Exception OBJECTS_OBJREF_NOT_ASSIGNED with MDM ABAP API

    Hello,
    Using IF_MDM_CORE_SERVICES~RETRIEVE_SIMPLE or IF_MDM_CORE_SERVICES~QUERY from class interface CL_MDM_ABSTRACT_PROVIDER, i got exception OBJECTS_OBJREF_NOT_ASSIGNED.
    For IF_MDM_CORE_SERVICES~QUERY method, i am unable, in all cases, to get importing data for any tables from my repository, even if i only use exporting parameter IV_OBJECT_TYPE_CODE (being my table code).
    Regarding IF_MDM_CORE_SERVICES~RETRIEVE_SIMPLE method, it works when i use my main table from the MDM repository, but when i want to get data from a qualified flat lookup table inside main table (i want the contract price), i got the exception.
    I followed what was indicated by How-To 13 - Create/Retrieve (Qualified Flat Lookup).
    Could anybody give me a advice ?
    I work with SRM_SERVER 5.5 (SP SAPKIBKT13) and MDM_TECH 555_700 (SP SAPK-57009INMDMTECH).
    Regards.
    Laurent.

    Hello,
    Exception encoutered was due to a call for a non created API instance...
    Now, problem i have is another exception: CX_MDM_USAGE_ERROR.
    DUMP occurs in IF_MDM_CORE_SERVICES~RETRIEVE_SIMPLE method and more exactly in GETFIELD_ID_FOR_CODE method.
    Class interface is CL_MDM_PROVIDER_55_SP06_PL05.
    The reason is fields code from my local DDIC structure and their table field ID are not found among existing MDM repository fields.
    The READ TABLE below is concerned:
    READ TABLE mt_field_code2id_map WITH TABLE KEY field_table_id = iv_field_table_id
                                                     field_code     = lv_field_code ASSIGNING <field_map>.
    But in debug mode, i see line concerned ! Unfortunately, sy-subrc is equal to 4...
    Any suggestion ?
    Regards.
    Laurent.

Maybe you are looking for