ORM CFC generator truncates service cfc

Hi
I was able to get the generator to work - esp after reading the blogs and watching the Camtasia piece - thanks - but the cfc's were all truncated: - see below - is this a bug or am I doing something wrong?
Thanks
Susan
<cfcomponent 
output="false" hint="CFBuilder-Generated:Order">
<!----ORDER SERVICES
 ---->  
<!---- Add Order ---->
<cffunction name="createOrder" returntype="Order" access="remote">
<cfargument name="item" type="Order" required="true" /> 
<!---- Auto-generated methodInsert a new record in Order ---->
<cfset entitysave(item) />
<!---- return created item ---->
<cfreturn item/>
</cffunction>
<!---- Remove Order ---->
<cffunction name="deleteOrder" returntype="void" access="remote">

Thanks, Evelin - that took care of the gaps.
Susan

Similar Messages

  • ORM CFC Generator error

    Hi
    I'm trying to get Coldfusion Builder's ORM CFC Generator to build my cfcs but when I click the Generate button after setting my table relationships I get the following error:
    Error : Event handler exception.. coldfusion.runtime.CfJspPage$ParameterNotFoundException: The required parameter SESSION.ORMTABLES was not provided.
    I have an Application.cfc with sessionManagement=true, name is set, ormenabled is true and ormsettings specs a database.
    What am I missing?
    Thanks,
    Rich

    ... and this is why I'm leaving Coldfusion development:
    Vaibhav: Hello! Welcome to Adobe.
    Vaibhav: I have received your query. Please allow me a moment to verify your account and to review the details of your request.
    Rich Leach: sure sounds good.
    Vaibhav: Let me connect you to our Cold Fusion team.
    Please wait while I transfer the chat to the appropriate group.
    You are now chatting with 'Sandip'
    Rich Leach: hi Sandip
    Sandip: Is there anything else I may assist you with today?
    Sandip: I am sorry
    Sandip: Hi Rich.
    Sandip: How are you doing?
    Rich Leach: a little frustrated with this CF Builder 3 not working....
    Sandip: Okay.
    Sandip:
    Sandip: Rich, could you please explain me the issue a bit more?
    Rich Leach: what would you like to know?
    Rich Leach: When I'm working in CFBuilder 3....
    Rich Leach: I open the RDS dataview
    Rich Leach: drill down into a database, then a table....
    Rich Leach: and right click on a table I can select Create ORM CFC from the Adobe CFC Generator option.
    Sandip: Please allow me a  moment.
    Rich Leach: I see my tables in the utility and when I click the Generate button I get the error message:
    Rich Leach: Error : Event handler exception.. coldfusion.runtime.CfJspPage$ParameterNotFoundException: The required parameter SESSION.ORMTABLES was not provided.
    Sandip: Rich, do you have a support contract with Adobe?
    Rich Leach: No, I just purchased CFBuilder 3 a few weeks ago
    Sandip: Rich, we would need a support contract for this issue.
    Rich Leach: Why? The product is not working as you advertised it to
    Sandip: That is because it is not an installation or a migration issue.
    Rich Leach: But the application is throwing a low level server error, how can I be expected to fix it on my own without your help?
    Sandip: We are here to assist you but for that we would need a support contract.
    Rich Leach: I would like a refund please. How do I go about getting a refund?
    Rich Leach: I'm just curious. CFBuilder 3 cost me about $300. How much would you charge me for a support contract?
    Sandip: Rich, this is not an installation, migration or connector issue and support on this issues are free of cost but for ORM issue we would need a support contract.
    Sandip: You can go for a single incident contract which be around $249 + tax which would be on a best support basis.
    Rich Leach: The product only cost $299. Are you seeing the problem here? And you do understand I'm not asking for Coldfusion support, I'm asking for support with Coldfusion Builder 3. Do you understand?
    Sandip: Yes, I do understand but this is the only way to go forward. I am sorry.
    Rich Leach: I'm sorry too. Thanks for your help.
    Sandip: Is there anything else I may assist you with today?
    Rich Leach: How about that refund? How do I get a refund?
    Your chat transcript will be sent to [email protected] at the end of your chat.
    Sandip: Could you please let me know the order id?
    Rich Leach: I'll have to look it up, give me a second....
    Sandip: Sure.
    Rich Leach: My order id is AD0nnnn
    Sandip: Please allow me a moment to check.
    Sandip: Rich I see that you have bought the product on 07/08/2014, am I right/
    Rich Leach: Yes, for $109 (I forgot I got the upgrade). I can't justify paying over twice as much for a support contract
    Sandip: Rich, refund for an order can only be processed within 30 days of purchase.
    Rich Leach: ok thank you for your help.

  • Cant upload extentions - ORM CFC Generator

    Hi there
    Having problems trying to install the ORM CFC Generator and wondered if anyone can assist..
    In CF Builder I am clicking windows in the navigation bar, then preferences, then coldfusion, then extenstions, as shown in this demo http://blogs.adobe.com/cfbuilder/attachments/CFCGenerator4.htm
    However, instead of getting the extensions tab, with all the options, all i can see is a checkbox with "user Mozilla browser for extensions"..
    Wonderin if anyone could assist.
    Many thanks

    Hi
    We have added a new view for working with  Extensions. You can open it by Window->Show View ->Other ->ColdFusion->Extensions.
    There is a plus button available in the Extensions view  which you can use to install Extensions.
    Thanks
    Evelin

  • Coldfusion builder ORM CFC Generator error

    I have been trying to cretae cfc code for flash builder in coldfusion builder, i have install the adobe ORM CFC Generator in preferences and have it set up on local host, the local host is created on a user directory, cold fusion server and  builder all work well and i can also read databse tables from an external mysql server.
    However when i to use the RDS Dataview and when I right click and table to create an ORM CFC .. it asks me for the CFC location .. I choose a folder that's in my project and a new window comes up with an error  the requested url/adobe CFC Generator/"/handlers/ormCFCGenerator.cfm was not found on this server.
    Please could some one help
    CJ

    I have been trying to cretae cfc code for flash builder in coldfusion builder, i have install the adobe ORM CFC Generator in preferences and have it set up on local host, the local host is created on a user directory, cold fusion server and  builder all work well and i can also read databse tables from an external mysql server.
    However when i to use the RDS Dataview and when I right click and table to create an ORM CFC .. it asks me for the CFC location .. I choose a folder that's in my project and a new window comes up with an error  the requested url/adobe CFC Generator/"/handlers/ormCFCGenerator.cfm was not found on this server.
    Please could some one help
    CJ

  • ORM CFC Wizard shows up blank

    I'm trying out the ORM CFC Wizard from a table in my RDS Dataview. When I do this I get the option to select where I want the CFC created and the checkbox to create the CFC in script.
    Once I click OK, the next screen is blank.
    I've searched through the forums and found some suggestions of turning off debugging and renaming all references to "Framework" to "framework".
    I've made sure debugging is turned off and went through and made sure all references to "Framework" are all lowercase with no luck.
    Has anyone been able to fix this issue with success?
    I'm running CF 9 on JBOSS 5.2 on OS X 10.6.3 if that helps any. RDS works fine as I can see my datasources.
    One thing I noticed, if I refresh the ORM Wizard screen it does generate a premature end of file error on the XML. But this error doesn't happen on the first try.
    Thanks,
    Ben

    Hello,
    Did you ever resolve this issue...I am having the same problem.
    Mac OS X 10.6
    Coldfusion builder 1 with update 1
    When I right-click "Reload" I get a big dump:
    coldfusion.xml.XmlProcessException: An error occured while Parsing an XML document. at coldfusion.xml.XmlProcessor.parse(XmlProcessor.java:183) at coldfusion.runtime.Cast._Xml(Cast.java:1345) at coldfusion.tagext.validation.CFTypeValidatorFactory$CFXMLValidator.validate(CFTypeValidat orFactory.java:425) at coldfusion.runtime.UDFMethod.validateValueType(UDFMethod.java:182) at coldfusion.runtime.UDFMethod._validateArg(UDFMethod.java:1072) at coldfusion.runtime.UDFMethod._validateArg(UDFMethod.java:1089) at cfRequestProcessor2ecfc1904329852$funcPARSEREQUEST.runFunction(/Library/WebServer/Documen ts/Adobe CFC Generator/handlers/framework/RequestProcessor.cfc:14) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:517) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:495) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:354) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2301) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:375) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2723) at cfORMManager2ecfc1990215907$funcLOADTABLES.runFunction(/Library/WebServer/Documents/Adobe CFC Generator/handlers/framework/ORMManager.cfc:265) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:517) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:495) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:354) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2301) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:382) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2723) at cflayoutpage2ecfm1151129293.runPage(/Library/WebServer/Documents/Adobe CFC Generator/handlers/layoutpage.cfm:37) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfApplication2ecfc1209604170$funcONREQUEST.runFunction(/Library/WebServer/Documents/Adobe CFC Generator/handlers/Application.cfc:84) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88) at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:280) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:338) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • Create ORM CFC Ajax does not load

    I am trying to create ORM CFC with the Adobe CFC Generator.  After I select the location for the files it brings up a large window that has in the top left "Create ORM CFC" and a "Close" button at the bottom.  The Ajax content in the body is missing.  I have uninstalled and reinstalled the component with no luck.  The Create CFC works fine.
    Anyone have any idea why the Ajax portion won't load?

    Evelin,
    Thank you for the response.  I have tried that before and just tried 
    it again after loading beta 3.  After selecting the location I have 
    the Adobe CFC Generator pop up.  The title says Create ORM CFC.  The 
    body is completely blank.  Bottom left I have Close button.  It looks 
    like the Ajax portion is not loading. The regular create CFC works fine.
    Thanks,
    James

  • Error generating Web service /BIC/CQZDS_WEB00001000 how to over come this?

    HI,
    Experts,
    I have created Web service source system by taking: target system BI and source system XI.
    After creation of Info objects i have created data source in RSA1 there will no error displayed while CHECK but while activating the data source it was displaying errors like:
    1) Error generating Web service /BIC/CQZDS_WEB00001000
    2) Error when activating DataSource ZDS_WEBSERVICE                BIDCLNT100
    what will be the reason for this error plezase provide me good idea or provide step by step web service scenarious.
    Thank you,
    Shabeer Ahmed.

    Hi
    Web AS 6.40 you can create a Web Service Proxy directly in Transaction SE80. Create a new package and right click on it. Choose Create -> Enterprise service / Web service -> Proxy object. Now you can choose how you want to provide the WSDL Source.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80fa3dff-ce76-2a10-3f94-f3df8f2db5a2

  • ODI Error While Generating Data services

    Hi,
    Error occured generating Data services which need's to be published to ESB.
    Error Details.
    com.sunopsis.dwg.dataservices.a.e: HTTP/1.1 404 Not Found
         at com.sunopsis.dwg.dataservices.a.b.a(b.java)
         at com.sunopsis.dwg.dataservices.a.b.e(b.java)
         at com.sunopsis.dwg.dataservices.a.a.a(a.java)
         at com.sunopsis.dwg.dataservices.AbstractWSGenerator.t(AbstractWSGenerator.java)
         at com.sunopsis.dwg.dataservices.AbstractWSGenerator.c(AbstractWSGenerator.java)
         at com.sunopsis.dwg.dataservices.WSGenerationTask.a(WSGenerationTask.java)
         at com.sunopsis.graphical.i.c.b(c.java)
         at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
         at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
         at java.lang.Thread.run(Thread.java:534)
    Please suggest me what went wrong .
    Regards,
    SureshKumar.R

    At which phase of the generation is this happening (watch the info in the status at the bottom of the window) It could be at a couple of stages, and this will indicate what it is trying to do and where to look.

  • Problem generating Web Service with business methods in multiple EJB's

    Hi,
    I'm I a "web service novice" but I'm working with an
    application which was developed in an earlier version
    of Studio which has
    ~30 business method coming from ~12 EJB's. When I attempt
    to recreate the Web Service in Java Studio Enterprise 7 (had same problem versions 5 and 6) I have trouble. When I execute the "Generate Web Service Files" command I get complilation errors in the <webservice_name>.java file. It is obvious that the
    protected Map theJNDIMap = makeJNDIMap();
    protected Map makeJNDIMap() {
         Map m = new HashMap();
         // This map might get changed at deployment time
         m.put(......
    is all screwed up. Entries are missing and the closing bracket isn't even there.
    Is there some user error on my part?
    Is this a know bug (I couldn't any info. and I get the same behavior on the current and older versions of Studio)?
    Is there a workaround? I can fix this particular java file and compile it sucessfully. However, I'm still missing many of the other web service files that should be generated for me.
    All the tutorials on web services that I've done to looked over all get there business method from 1 EJB :(
    Please advise,
    Freda Phelps

    I had a problem too. Successfully created an EJB and its test application. Tested the same using Web client and works fine. Now created a web service from EJB methods. It created the skeletons. When tried creating Web Svc test client or web svc other files..it gives me an exception saying xmlservices.jar doesnt exist in the C:\Docs and Settings\<$username>\.jstudio\Ent04Q4modules. I have searched for this file and copied (overwritten) it into this directory. But still i cant proceed further.

  • Error when generating Web Services Proxy for SCA Application Module

    Hello,
    I'm trying to create Web Services for a simple Application Module with JDeveloper 11g (11.1.1.3.0).
    I start a new ADF Project, I create an Application Module as simple as possible : it contains only a simple View Object on the DEPT Entity.
    On my Application Module, I choose "Service Interface" and I add my View Object in the service interface.
    I test my Web Service in the Embedded Weblogic Server, it works well. (I succeed in using the Get operation, for example).
    But when I try to generate a Web Service proxy (right-click on the WSDL File -> Generate Web Service Proxy), It always fail with such errors :
    oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "file:/C:/JDeveloper/mywork/ApplicationAppelServiceSCA/Model/src/model/common/AppModuleService.wsdl": 'unset' is already defined'Bytes' is already defined'ref' is already defined'Duration' is already defined'Types' is already defined'Character' is already defined'type' is already defined'Day' is already defined'nestedInterfaces' is already defined'Date' is already defined'datagraph' is already defined'Type' is already defined'Integer' is already defined'ModelsType' is already defined'ChangeSummaryType' is already defined'instanceClass' is already defined'Month' is already defined'DataObject' is already defined'javaClass' is already defined'LongObject' is already defined'DateTime' is already defined'dataObject' is already defined'YearMonth' is already defined'ShortObject' is already defined'Long' is already defined'types' is already defined'JavaInfo' is already defined'IntObject' is already defined'Boolean' is already defined'DoubleObject' is already defi...
    Can someone help me to understand this error ?
    i never manually edited the WSDL File, so I don't understand why the generated WSDL or XSD files might contain errors.
    Thanks for your Help,
    Laurent

    We have the same problem, and the problem was in the xsd import:
    The wdsl import a schema that import other schema, the second import use a relative path, that was wrong.
    So check the xsd import sequence....

  • Have problem when generate Web Service from bapi function

    Dear all,
    Please kindly help me about generating Web Service from BAPI function, It does not success only this attached function.
    I have done so many function without any problems.
    I found 1 case that I use specific variable to be an import/ export then, it can't create as well.
    As for this one, I try so many changes but I can't success it as well.
    This is my function on R/3 4.6C, Dot net connector 2.0, Dot net Frame Work 1.1.
    FUNCTION Z_BAPI_ATTACHMENT_CREATE.
    ""Local interface: Type: Remote-enabled module
    *"  IMPORTING
    *"     VALUE(P_BOTYPE) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_BO_ID) LIKE  BORIDENT-OBJKEY
    *"     VALUE(P_MSGTYP) LIKE  SOFM-DOCTP
    *"     VALUE(P_DOCTY) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_RELTYP) LIKE  BRELTYP-RELTYPE
    *"     VALUE(P_FNAME) LIKE  RLGRAP-FILENAME
    *"     VALUE(P_OBJDES) TYPE  SO_OBJ_DES
    *"  EXPORTING
    *"     VALUE(RETURNMESSAGE) TYPE  CHAR50
    INCLUDE : <cntn01>.
    P_BOTYPE  TYPE  BORIDENT-OBJTYPE DEFAULT 'BUS2105'
    P_BO_ID   TYPE  BORIDENT-OBJKEY
    P_MSGTYPE TYPE  SOFM-DOCTP DEFAULT 'URL'
    P_DOCTY   TYPE  BORIDENT-OBJTYPE DEFAULT 'MESSAGE'
    P_RELTYP  TYPE  BRELTYP-RELTYPE DEFAULT 'ATTA'
    P_FNAME   TYPE  RLGRAP-FILENAME
    P_OBJDES  TYPE  SO_OBJ_DES
    TYPES: BEGIN OF ty_message_key,
    foltp TYPE so_fol_tp,
    folyr TYPE so_fol_yr,
    folno TYPE so_fol_no,
    doctp TYPE so_doc_tp,
    docyr TYPE so_doc_yr,
    docno TYPE so_doc_no,
    fortp TYPE so_for_tp,
    foryr TYPE so_for_yr,
    forno TYPE so_for_no,
    END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line
    WITH HEADER LINE.
    First derive the Attachment's ( MESSAGE )document type.
    p_docty = 'MESSAGE'.
    CASE p_reltyp.
    In case of URls
      WHEN 'URL'.
        p_msgtyp = 'URL'.
    In case of Notes / Private Notes
      WHEN 'NOTE' OR 'PNOT'.
        p_msgtyp = 'RAW'.
      WHEN 'ATTA'.
    Take given parameter e.g. 'DOC', 'PDF' etc.
    P_MSGTYP = 'EXT'.
      WHEN OTHERS.
    ....exit
        EXIT.
    ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    define container to pass the parameter values to the method call
    in next step.
    swc_container lt_message_container.
    Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' p_objdes.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG' 'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In case of URLs..it should be concatenated with &KEY& in the begining.
    CASE p_msgtyp.
      WHEN 'URL'.
      lt_doc_content = '&KEY&http://www.rmtiwari.com' .
        CONCATENATE '&KEY&' p_fname INTO lt_doc_content.
        APPEND lt_doc_content.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
      WHEN 'RAW'.
        lt_doc_content = p_fname.
        APPEND lt_doc_content.
    In case of PC File attachments
      WHEN OTHERS.
        OPEN DATASET p_fname FOR INPUT IN BINARY MODE.
        IF sy-subrc EQ 0.
          DO.
            READ DATASET p_fname INTO lt_doc_content.           "2 of 27
            IF sy-subrc EQ 0.
              APPEND lt_doc_content.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET p_fname.
        ENDIF.
    ENDCASE.
    'DocumentContent' is a multi-line element ( itab ).
    swc_set_table lt_message_container 'DocumentContent' lt_doc_content.
    Size is required in case of File attachments
    DATA : lv_doc_size TYPE i.
    DATA : l_file_lines TYPE i.
    DESCRIBE TABLE lt_doc_content LINES l_file_lines.
    READ TABLE lt_doc_content INDEX l_file_lines.
    lv_doc_size = ( 255 * ( l_file_lines - 1 ) ) +
    STRLEN( lt_doc_content ).
    swc_set_element lt_message_container 'DOCUMENTSIZE' lv_doc_size .
    Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    swc_call_method lo_message 'CREATE' lt_message_container.
    Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
    data: LO_IS_OBJECT_A type SIBFLPORB. "type SIBFLPORB is unknown, so I
    DATA: lo_is_object_a TYPE borident.
    lo_is_object_a-objkey = p_bo_id.
    lo_is_object_a-objtype = p_botype.
    LO_IS_OBJECT_A-CATID = 'BO'.
    Create attachment BO object_b
    data: LO_IS_OBJECT_B type SIBFLPORB. "type SIBFLPORB is unknown
    DATA: lo_is_object_b TYPE borident.
    lo_is_object_b-objkey = lv_message_key.
    lo_is_object_b-objtype = p_docty.
    LO_IS_OBJECT_B-CATID = 'BO'.
    *TRY.
    *CALL METHOD CL_BINARY_RELATION=&gtCREATE_LINK
    EXPORTING
    IS_OBJECT_A = LO_IS_OBJECT_A
    IS_OBJECT_B = LO_IS_OBJECT_B
    IP_RELTYPE = P_RELTYP.
    CALL FUNCTION 'BINARY_RELATION_CREATE'
      EXPORTING
        obj_rolea    = lo_is_object_a
        obj_roleb    = lo_is_object_b
        relationtype = p_reltyp
      EXCEPTIONS
        OTHERS       = 1.
    Check if everything OK...who cares!!
    COMMIT WORK.
    if sy-subrc = 0.
      RETURNMESSAGE = 'S-Success'.
    else.
      RETURNMESSAGE = 'E-Error'.
    endif.
    ENDFUNCTION.
    Thanks in advance,
    Benjawan
    Edited by: Nitipat Chadchavalpanichaya on Oct 20, 2008 9:02 AM

    There is no any error message show up. It just the class
    Z_BAPI_ATTACHMENT_CREATE  doesn't create autometically as normal. I showed you as below.
    That means I can't call class z_bapi_attachment_create.
    ' <autogenerated>
    '     This code was generated by a SAP. NET Connector Proxy Generator Version 2.0
    '     Created at 21/10/2551
    '     Created from Windows
    '     Changes to this file may cause incorrect behavior and will be lost if
    '     the code is regenerated.
    ' </autogenerated>
    Imports System
    Imports System.Text
    Imports System.Collections
    Imports System.ComponentModel
    Imports System.Runtime.InteropServices
    Imports System.Xml.Serialization
    Imports System.Web.Services
    Imports System.Web.Services.Description
    Imports System.Web.Services.Protocols
    Imports SAP.Connector
      '@ <summary>
      '@ Client SAP proxy class
      '@ </summary>
      <WebServiceBinding(Name:="dummy.Binding", Namespace:="urn:sap-com:document:sap:rfc:functions")> _
      Public Class PRAttachment
        Inherits SAPClient
        '@ <summary>
        '@ Initializes a new PRAttachment.
        '@ </summary>
        Public Sub New()
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment with a new connection based on the specified connection string.
        '@ </summary>
        '@ <param name="connectionString">A connection string (e.g. RFC or URL) specifying the system where the proxy should connect to.</param>
        Public Sub New(ByVal ConnectionString As String)
          MyBase.New(ConnectionString)
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment and adds it to the given container.
        '@ This allows automated connection mananged by VS component designer:
        '@ If container is disposed, it will also dispose this SAPClient instance,
        '@ which will dispose a contained connection if needed.
        '@ </summary>
        '@ <param name="Cont">The container where the new SAPClient instance is to be added.</param>
        Public Sub New(ByVal Cont As Container)
          MyBase.New(Cont)
        End Sub
      End Class

  • Generating web service Files

    While generating web service files, I get the following error:
    Error during JAXRPC generation. See Output window
    which says:
    error: Type "javax.xml.soap.SOAPElement" implements more than one interface, interfaces: "javax.xml.soap.Node", "org.w3c.dom.Element" ...
    I am new to developing web services, so maybe this is a simple setting that I need to change. Has anyone dealt with a similiar issue and solved the problem?
    Thank you.

    Kindly send me the method signature of the web service operation.
    Thanks.
    Rico Cruz

  • OER: Generate Web Service Proxy REX in JDeveloper

    Hi,
    I want to generate a Web Service Proxy for REX (OER version 11.1.1.5.0) using JDeveloper 11.1.1.5.0. I am using JAX-RPC Weblogic Style. When I start the Web Service Proxy Generator it fails with the following error:
    "The WSDL document contains the following errors:
    Operation "assetTypeTabsRead" and "assetTabApprove" have conflicting SOAPAction avlues. Do not overload any operation or given unique SOAPAction value to each operation binding.
    And many more (42481) ...."
    I am looking for the correct way to generate a Service Proxy foor REX and JDeveloper. Any help is appreciated.
    Best regards,
    Sjoerd
    Edited by: Sjoerd Aalbers on Dec 11, 2011 2:18 PM

    'Generate Web Service Stub/Skeleton' option in 10.1.2, was replaced by 'Generate Web Service Proxy' in 10.1.3

  • How to generate web services for OAS with wsdl extension

    Hi,
    I wanted to know how to generate web services from Oracle Application Server especially with .wsdl extension and with document/literal style.
    I know that earlier there was a tool called SmartConnect from BEA WebLogic.
    But that will work only with ALSB (Aqua logic Service Bus). I guess that ALSB has been renamed as Oracle Service Bus by Oracle after the acquisition of WebLogic. My question is what is the new name for the SmartConnect Tool from WebLogic, which generates wsdl very easily from Oracle database.
    I am unable to know the new name for SmartConnect and how to download that tool from Oracle web site.
    Also, I want to know, whether there is any other way to generate the wsdl from Oracle, if so, please let me know.
    Regards
    Raman

    Hi Jeethandra,
    Please refere to the below link might be some help.
    [http://help.sap.com/saphelp_mdmgds55/helpdata/en/45/069152856241e1e10000000a1553f6/frameset.htm]
    regards
    shankar

  • How to generate web services for MDM Taxanomy Tables?

    Hi Experts,
    I have a Taxonomy table called eClass in material repository which contains the Hierarchical data. The data[Attributes of this table ] can be seen only in Taxonomy Mode, I want to generate the web service using MDM Web Service Generator. The service should perform the CRUD operation over this table and retrieve the attributes. I generated the service for this table but I am not able to retrieve the attributes. Please help me out for this situations. Any pointers regarding this will be appreciated.
    Thanks & Regards
    Jeetendra

    Hi Jeethandra,
    Please refere to the below link might be some help.
    [http://help.sap.com/saphelp_mdmgds55/helpdata/en/45/069152856241e1e10000000a1553f6/frameset.htm]
    regards
    shankar

Maybe you are looking for

  • Horizontal scroll bar in maintenance view

    Hi all,          i have a ztable  which has ony two fields id and description. Maintenance view exists for same. Can anybody suggest me how to set 'HORIZONTAL SCROLL BAR' for this view as sometimes description is too large and not able to see the des

  • J2RE + Windows Server 2003 + SAP XI = dump Xmx128m

    Hi, I know "nothing" about a Java environment, but my tool use it. I have installed J2RE (j2re-1_4_2_06-windows-i586-p.exe) on a Windows Server 2003, and then I have installed a component of SAP XI (Adapter Engine) which need Java to run. But when I

  • 5 Mobileme calendars?

    I have one active Mobileme account with a few calendars. Yet my iPhone has 5 different Mobileme sets of calendars synced on none are the exact one I have in iCal! Any one know how to change it? I've tried syncing just through iTunes but that doesn't

  • Bluetooth USB Dongle issues

    I'm using a plantronics usb bluetooth dongle and so far with no luck.  I have both the dbus and bluetooth daemons running. lsusb shows the device: Bus 002 Device 002: ID 047f:4254 Plantronics, Inc. BUA-100 Bluetooth Adapter but hcitool dev shows no d

  • Why is my Network so Slow?

    IU have a good broadband connection. ADSL guide reports by network as 1.5Mbps download and 700kbps upload. Nothing wrong with that. If I connect via wireless on my TimeCapsule, it drops to 64kbps download and 200kbps upload. If I connect to the wirel