Add service call via DIServer

Hi, I try to use this simple xml:
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
  <SessionID>8D4BEA36-89A8-41C5-9481-DB696296B72E</SessionID>
</env:Header><env:Body>
<dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
<BOM><BO>
<AdmInfo><Object>oServiceCalls</Object></AdmInfo>
<Documents>
<row>
<customer>C42000</customer>
</row>
</Documents></BO></BOM></dis:AddObject></env:Body></env:Envelope>
and get:
Customer is not specified in service call [OSCL.customer]
Whats wrong?  I tried to add custmrName, contctCode - nothing changed.

Hi Vladimirov ,
For the serviceCalls object, you need to use the property CustomerCode to set the customer for the service call:
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<SessionID>8D4BEA36-89A8-41C5-9481-DB696296B72E</SessionID>
</env:Header><env:Body>
<dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
<BOM><BO>
<AdmInfo><Object>oServiceCalls</Object></AdmInfo>
<Documents>
<row>
<CustomerCode>C42000</CustomerCode>
</row>
</Documents></BO></BOM></dis:AddObject></env:Body></env:Envelope>
Please note "Subject" is also listed as a mandatory field. For more information please search for the object "ServiceCalls" in the SDK help centre.
Hope this resolves the issue for you.
Regards,
Niall
SAP Business One Forums

Similar Messages

  • Service Call via RFC

    Hi all.
    I am currently starting with WDA and facing some problems in calling BAPI via RFC.
    We have a "plain" WAS without SD or other modules. Our data is distributed over multiple R/3 systems.
    When I try to implement a Service Call to the BAPI BAPI_CUSTOMER_GETLIST via RFC I got the error message that this FM is not available in the current system (WAS).
    Does anyone has experience in how to get this working?
    What is the best practice here?
    - Building wrapper on WAS which calls the FM via RFC on the other system?
    - Installing missing modules on WAS ?
    Any comment would be appreciated.
    Cheers,
    Sascha

    Hi again.
    To shorten development time we considered the following solution:
    We are generating web service proxy classes on the WAS for the BAPIs of the R/3 system we want to use. Afterwards we are generating wrapper function modules which will use these proxies. So we do not have to import all missing structrues cause these are generated automatically during proxy generation.
    I tested this already with BAPI_CUSTOMER_GETDETAIL2. Calling the wrapping fm which calls the service proxy works fine from se80. I do get a result via the service.
    Then i generated a service call for my WEBDynpro component using the wizard in WDA.
    Silly is that the generated code is not compilable cause of missing ,. Anyway after correcting I tried to run my webdynpro application and when the fm gets called via the generated service method I receive the following message:
    CODE           SOAP:111
    ERRORTEXT     Unallowed RFC-XML Tag (SOAP_EINVALDOC)
    Any ideas?
    Why is it working when i call the fm directly but not when calling it from my webdynpro app?
    Thanks in advance
    Sascha
    Message was edited by: Sascha Dingeldey
    Message was edited by: Sascha Dingeldey

  • Removing a linked Activity from a Service Call via the DI Server

    Has anyone done this or something similar? Below is the XML sent and received while trying to remove the last linked activity. I get a successful response but the Service Call isn't updated. If I try and remove an activity that isn't the very last I get an error. Am I doing something wrong, or is this a bug?
    (XML posted below as it isn't previewing properly)

    Original XML:
    <?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><GetByKeyResponse xmlns="http://www.sap.com/SBO/DIS"><BOM><BO><AdmInfo><Object>oServiceCalls</Object></AdmInfo><ServiceCalls><row><ServiceCallID>1</ServiceCallID><Subject>tecbician issue</Subject><CustomerCode>C20000</CustomerCode><CustomerName>Norm Thompson</CustomerName><ContactCode>1</ContactCode><ManufacturerSerialNum></ManufacturerSerialNum><InternalSerialNum>A6-000011</InternalSerialNum><ContractID>0</ContractID><ContractEndDate></ContractEndDate><ResolutionDate></ResolutionDate><ResolutionTime>0000</ResolutionTime><Origin>0</Origin><ItemCode>A00006</ItemCode><ItemDescription>HP 600 Series Inc</ItemDescription><ItemGroupCode>102</ItemGroupCode><Status>-3</Status><Priority>scp_Medium</Priority><CallType>0</CallType><ProblemType>0</ProblemType><AssigneeCode>1</AssigneeCode><Description></Description><TechnicianCode>0</TechnicianCode><Resolution></Resolution><CreationDate>20100323</CreationDate><CreationTime>2336</CreationTime><Responder>1</Responder><UpdatedTime>1446</UpdatedTime><BelongsToAQueue>tNO</BelongsToAQueue><ResponseByTime>0000</ResponseByTime><ResponseByDate></ResponseByDate><ResolutionOnDate></ResolutionOnDate><ResponseOnTime>1428</ResponseOnTime><ResponseOnDate>20100325</ResponseOnDate><ClosingTime>0000</ClosingTime><AssignedDate>20100323</AssignedDate><Queue></Queue><ResponseAssignee>1</ResponseAssignee><EntitledforService>tNO</EntitledforService><ResolutionOnTime>0000</ResolutionOnTime><AssignedTime>2337</AssignedTime><ClosingDate></ClosingDate><U_Tested>2</U_Tested><U_Comment>Updated via a web service through the DI Server2</U_Comment><U_Type>hmm</U_Type></row></ServiceCalls><ServiceCallActivities><row><LineNum>0</LineNum><ActivityCode>1</ActivityCode></row><row><LineNum>1</LineNum><ActivityCode>2</ActivityCode></row><row><LineNum>2</LineNum><ActivityCode>3</ActivityCode></row></ServiceCallActivities><ServiceCallInventoryExpenses><row><LineNum>3</LineNum><PartType>sep_NonInventory</PartType><DocumentType>edt_Invoice</DocumentType><DocumentPostingDate>20100325</DocumentPostingDate><DocumentNumber>1100001</DocumentNumber><StockTransferDirection>bos_TransferToTechnician</StockTransferDirection><DocEntry>96</DocEntry></row></ServiceCallInventoryExpenses></BO></BOM></GetByKeyResponse></env:Body></env:Envelope>

  • Parsley handling 2 service calls

    Hi,
    I am fairly new to Parsley.
    We have a Flex app which needs tons of data to display (gets many different resultsets of various kinds),
    so up until new were making 1 service call via REST-to-SOAP bridge,
    but it is often timeout (> 1 min),
    so we decided to split the call in 2 services (one is fairly light, and everybody needs that data,
    second is heavy and most users don't care about it).
    Results are displayed on the same tab.
    Can CallResponder process 2 service call results?
    Would it be done like that in Parsley:
    [CommandResult (type="resultset1"]
    protected handleResult1(obj1:Object) : void {,,,}
    and:
    [CommandResult (type="resultset2"]
    protected handleResult2(obj2:Object) : void {,,,}
    Can one Command handle 2 resultsets?
    Any suggestions?  Code samples?
    Please advise.
    There is nobody else around me who have done something similar.
    Using Flex 4.6 & Parsley 2.4
    Thank you in advance,
    Oleg

    Thanks Julie.
    I tested this and you are correct: if no serial number is entered into the service call then I am able to add it. We could log the serial number into the subject or remarks however the problem with this is that it will not allow us to accurately track service calls by individual products (The Service Calls tab on the Equipment Cards will not show any data).

  • URGENT: Service Call Activity Issue

    Hi guys, I have a seriously irritating issue concerning the linking of an activity to service call.
    As of Service Pack 01, Patch 36 (at least as far as I know) I get the following error when attempting to create and link an activity to a service call:
    Error Code: -5002
    Error Description: A service call activity does not exist
    I use the folliwing code;
    If oServ.GetByKey(MRI) Then
                    If DocType = "QT" Then
                        oAct = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oContacts)
                        oAct.Activity = SAPbobsCOM.BoActivities.cn_Task
                        oAct.CardCode = oServ.CustomerCode
                        oAct.DocEntry = DocID
                        oAct.DocType = 23
                        oDoc = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oQuotations)
                        If oDoc.GetByKey(DocID) Then
                            oAct.Notes = "Sales Quote: " & oDoc.Comments
                        End If
                        oAct.Details = "Sales Quote " & DocID & " auto created by MRI " & MRI & ""
                        If oAct.Add <> 0 Then
                            oApp.SetStatusBarMessage("Error adding Linked Document Activity for Sales Quote " & DocID & " : " & oComp.GetLastErrorDescription)
                            oLog.WriteLog("Error adding Linked Document Activity for Sales Quote " & DocID & " : " & oComp.GetLastErrorCode & oComp.GetLastErrorDescription, EventLogEntryType.Error)
                        Else
                            oServ.Activities.Add()
                            oServ.Activities.ActivityCode = oComp.GetNewObjectKey
                            oServ.Activities.SetCurrentLine(oServ.Activities.Count() - 1)
                        End If
    If oServ.Update <> 0 Then
                        oApp.SetStatusBarMessage("Error linking Expense Document " & DocID & ":" & oComp.GetLastErrorDescription)
                        oLog.WriteLog("Error linking Expense Document " & DocID & ":" & oComp.GetLastErrorCode & "-" & oComp.GetLastErrorDescription, EventLogEntryType.Error)
                    End If
    the Activity is added without any problem, but the error comes when linking it to the Service Call (oServ.Update)
    Can you please help, I'm going insane with this problem.

    this is how i got it to work:
    ServiceCalls sc = null;
    sc = (ServiceCalls)company.GetBusinessObject(BoObjectTypes.oServiceCalls);
    if (!sc.GetByKey(callId))
          throw new Exception("Failed to add service call activity! Service call does not exist!");
    if (sc.Activities.Count == 1)
             sc.Activities.SetCurrentLine(sc.Activities.Count - 1);
             string temp = sc.Activities.ActivityCode.ToString();
             if (!string.IsNullOrEmpty(temp) && !temp.Equals("0"))
                     sc.Activities.Add();
    else
             sc.Activities.Add();
    sc.Activities.SetCurrentLine(sc.Activities.Count - 1);
    sc.Activities.ActivityCode = int.Parse(lastAcctivity);
    if (sc.Update() != 0)
             company.GetLastError(out errorCode, out errorMsg);
              if (null != sc)
                      System.Runtime.InteropServices.Marshal.ReleaseComObject(sc);
                      sc = null;
    throw new Exception(errorCode + " -> " + errorMsg);
    You could either use that piece of code or make an insert in SCL5.

  • Syncing an E-Mail with OI to a service call

    We use the OI-Addon very much in our company and are quite happy with it except one thing: you cannot connect an e-mail with OI to a service call or create one in OI.
    When you click on 'Save E-Mail as Activity' on the second tab you can choose from a list to which item the activity shall be connected to; from this list you can select almost everything (Invoices, Delievery Notes,... but also Articles etc.), but not service calls.
    Since we get many e-mails concerning service calls it would be a great feature to be able to connect the e-mails to the service call directly with OI - could this be realised in one of the next PL?
    It also would be great if there was a possibility to create a new service call via OI, e.g. like creating a new contactperson.
    Thank you & best regards
    Peter Zschech
    Edited by: Peter Zschech on May 18, 2009 3:56 PM
    No one out there with the same issue?

    Absolutely same issue!!. This is one of the major links to using SBO in a Support / HelpDesk environment - By Service Call / By BP.
    In general the OI can be extended in many ways to be much more powerful than just copying info to be visible in either Outlook or SBO.

  • Javascript web service calls fail after 10.1.5/11.0.01 updates

    * Update #2 - I've confirmed that we are seeing errors because the HTTP request is being made as a POST using 10.1.5/11.0.01 in Chrome/Firefox/Safari.  Accessing the same file in IE, the request is made using a GET.  Using Reader 9.5.0 in Chrome also uses a GET.  Can someone please explain why the HTTP request is being submitted as a POST following the 10.1.5 update?
    * Update - I have found in my web service log that it is failing with a message that the attempted POST method is not allowed. Could the Reader updates be causing this call to be made as a POST when it was previously a GET?
    I am using PDFs with Reader Extensions enabled that make web service calls via javascript.  These calls have been working correctly in multiple environments for months and only began failing with the latest updates.  After the latest Reader updates, these calls fail when using Chrome, Firefox and Safari. 
    Internet Explorer works correctly.  Saving files locally and opening them in Reader also works correctly.  It is only running 10.1.5 or 11.0.01 in these specific browsers where this issue occurs.  10.1.4 and 11.0.0 do not experience this issue in any browsers. 
    I have tried disabling Enhanced Security and updating Trust Manager to allow Internet Access from PDFs.  Neither change corrected the problem.
    Can someone tell me what may have changed in 10.1.5/11.0.01 that would cause these calls to start failing?
    The javascript at issue looks like this:
    var serviceKeyResult.rawValue = Get(serviceKeyUrl)
    The error we get is "Error: Error attempting to read from file: {URL}"

    Thanks for pointing that out.  The javacript was implemented by a third party, so I was not aware that the function wasn't part of the standard APIs.  I'll get more detail on what is happening inside that method.
    For now we have updated our web services to accept both a GET and a POST to avoid this issue.

  • Service Call Issue

    Hi Experts,
         While Try to add Service Call document, Getting this error.
    [Microsoft][SQL Server Native Client 10.0]String data, right truncation 'Service Calls' (OSCL)
    Regards
    Mohamed Yousuf Ali M I

    Hi,
    Do you have stored procedure for service call? if yes, disable it and then try.
    Sorry, I am not answering for another thread for blocking service if solution is deleted.
    Thanks & Regards,
    Nagarajan

  • Series Primary overlaps object Service Call

    hI SAP gurus,
    i am trying to create new series in Document Numbering for  'Service Call' , it doesn't allow me to create Series Numbering and following Error is showing ...
    Series Primary overlaps object Service Call
    Does any one know how should i create a new Series for Service Call..?
    i appreciate your help.
    Thanks and Regards,
    kaviprashu

    hi,
    ok i will quote this for you
    Symptom
    It is a legal requirement in Brazil that service calls are numbered.
    Solution
    To facilitate the legal requirement that users can trace and manage service calls efficiently, it is now possible to assign service calls to sequential series numbering. All marketing document numbering rules (search, overlapping numbers, manual series, and etc.) are also applied on service calls. The following fields and objects are added:
    In the Document Numbering - Setup window, the service calls object is added.
    To access the Document Numbering - Setup window, choose Administration -> System Initialization -> Document Numbering.
    In the Series - Service Calls - Setup window, the 'Primary' series is added.
    For new and upgraded companies, the application automatically creates the 'Primary' series for service calls.
    In the Numbering Series - Setup window, the 'Primary' series is added.
    In the Service Call window, the No. fields (selection of series and number) are added.
    To access the Service Call window, choose Service -> Service Call.
    In the Relate Series to Document - Setup window, the service calls object is added.
    For the service reports (Service Calls, Service Calls by Queue, Response Time by Assigned to, Average Closure Time, Service Monitor, My Service Calls, My Open Service Calls and My overdue Service Calls, Service Contract document - subtab Service Calls and Customer Equipment Card - subtab Service Calls):
    Call No. (label text) is changed to Call ID.
    The Document No. field represents the new call no. field.
    Series column is added to service reports.
    The Check Document Numbering - Selection Criteria window also includes checking of the service calls sequence.
    To access the Check Document Numbering - Selection Criteria window, choose Administration -> Utilities -> Check Document Numbering.
    For new created service calls, no record will be written to History Change Log when you add service calls (the same as the system behavior in the marketing documents).
    Only after the actual update on an already added service call, a history record will be added.
    There is no change in the already existing Call ID field, the behavior of this field stays the same.
    Other terms
    service calls, series, numbering, B1, sequential
    Header Data
    Released on     15.08.2011 15:48:33
    Release status     Released for Customer
    Component     SBO-SER-SCL Service Call
    Priority     Recommendations/additional info
    Category     Advance development
    References
    This document is referenced by:
    SAP Business One Notes
    1606253           Overview Note for SAP Business One 8.81 patch 07
    Validity
    Software Component
    Version
    SAP BUSINESS ONE
    8.81
    regards,
    Fidel

  • 781084 - Cannot add document which needs approval to a Service Call

    Hi Experts,
    Is there any update on this error per SAP Note 781084?
    Symptom:
    When linking a sales document, which needs to be approved via an
    approval procedure, to a Service Call under the Expenses tab page, the
    document will not be displayed in the Service Call window after its
    approval.
    Cause
    Definition problem.
    Solution
    A DRQ number 3383528 was opened.
    IM 2653636.
    I am now using 8.82 version and the issue still exist. Any help would be greatly appreciated.
    Thanks,
    Don

    You can add the document to the service call once it has been approved. For instance:
    1) Create service call
    2) go to Expense tab, create a new Sales Order
    3) Sales Order goes to Approver (at this point, the sales order doesn't appear on the expense tab)
    4) When the Sales Order has been approved and added to the system, go back to the Service Call > Expense Tab > > Expense Details > New Document > Order
    5) At this point, the Sales Order window opens in Add Mode. Press Ctrl-F, and go to the Approved Sales Order. Click OK.
    6) the Sales Order should appear on the expenses tab in the Service Call.
    Hope this helps.
    Reza

  • WLPI - Problem with AI Service Call in Task with AI Service start - Variables

    Within WLPI I cannot succesfully call an AI service with variables that have been
    collected via an AI start. These variables have been collected ok as I have done
    an XPath on the variable and succesfully stored them in a string Variable. So
    a succesfully AI start is working. The issue is when I try to pass these values
    I have collected in their respective string variables to the next task which I
    will be executing an AI Service. I do this by setting a workflow variable and
    using the schema for the AI service. In the XML structure screen, I have put the
    string variable at the respective element. So on the left I have my element and
    on the right I have inserted my value (i.e, $strLastName).
    When I run the workflow, I do not see any inserts on the AI service I am calling.
    However, when I hard code a value in the XML schema "HELLO " + strFirstName it
    of course inserts Hello but not the value (i.e, strFirstName). So I know I have
    the correct assignment of variable to be set etc. Also, without the hardcoding
    it is inserting a blank row (i.e, value='').
    Please, help with this issue.

    Dear anonymous,
    I have created an AI application view and a BPM workflow that demonstrates how to
    populate an AI service call with strings extracted from an AI event response
    document. This workflow also demonstrates concatination of literal strings with
    string variables.
    Here are some steps that you will need to follow to setup this AI application view
    and workflow:
    1. startweblogic from either the
    'samples' or 'mydomain' found under WLI_HOME/applinteg/config. (Note, if you start
    from 'mydomain', be sure to populate your database repository with the scripts in
    WLI_HOME/repository/, WLI_HOME/processintegrator/ddl, and
    WLI_HOME/applinteg/dev/dbms/src/sql.)
    2. Open a web browser to http://<machine>:<port>/wlai
    Examples:
    from samples domain
    http://localhost:7603/wlai
    Login as system/system
    from mydomain
    http://localhost:7601/wlai
    Login as admin/security
    3. Create a folder named 'DBMS' and go into that folder
    4. Create a folder in the 'DBMS' folder named 'DBMS_A' and go into that folder
    5. Create an application view named 'db_av1'
    6. Add an event that triggers on insert named 'insEvt'
    7. Add a service named 'updTemp' that executes the following SQL...
    UPDATE <db info>.CUSTOMER_TABLE SET CITY=[CITY VARCHAR]WHERE LASTNAME=[LASTNAME
    VARCHAR]
    (Note: Replace '<db info>' your database schema and/or catalog information)
    8. Add a service named 'insSvc' that executes the following SQL...
    INSERT INTO <db info>.CUSTOMER_TABLE (FIRSTNAME, LASTNAME, CITY, EMAIL) VALUES
    ([FIRSTNAME VARCHAR],[LASTNAME VARCHAR],[CITY VARCHAR],[EMAIL VARCHAR])
    (Note: Replace '<db info>' your database schema and/or catalog information)
    9. Add a service named 'listCustomers' that executes the following SQL...
    SELECT * FROM <db info>.CUSTOMER_TABLE
    (Note: Replace '<db info>' your database schema and/or catalog information)
    10. Click 'Continue' deploy the the application view
    11. In the Deploy Application View screen make sure to specify an event router with
    the port corresponding to your domain. (e.g.
    http://localhost:7603/DbmsEventRouter/EventRouter)
    12. Bring up studio using 'studio_wlai.cmd/sh'
    13. Import the attached workflow package 'TestXmlVar.jar'
    14. Trigger the workflow my testing 'insSvc' from the Application View Summary web
    page. Fill in the service parameters with a firstname, lastname, city, and email.
    Press test to start the test.
    15. List the contents of CUSTOMER_TABLE by testing the 'listCusomers' AI service or
    by doing a select on that table in your database.
    Results:
    You should notice that the customer you inserted has a city name that is now in the
    form "New "<city>" City".
    Look at the Start node actions to see the population of the city and lastname string
    variables. Look at the request cocument in the AddToCity task for the updTemp
    service call by clicking edit on the request document variable. You will notice that
    the LASTNAME field was populated with the strLastName variable and the CITY element
    is populated with the strCity variable with "New " and " City" appended to both ends.
    Hope this works for you,
    Jim
    anonymous wrote:
    Within WLPI I cannot succesfully call an AI service with variables that have been
    collected via an AI start. These variables have been collected ok as I have done
    an XPath on the variable and succesfully stored them in a string Variable. So
    a succesfully AI start is working. The issue is when I try to pass these values
    I have collected in their respective string variables to the next task which I
    will be executing an AI Service. I do this by setting a workflow variable and
    using the schema for the AI service. In the XML structure screen, I have put the
    string variable at the respective element. So on the left I have my element and
    on the right I have inserted my value (i.e, $strLastName).
    When I run the workflow, I do not see any inserts on the AI service I am calling.
    However, when I hard code a value in the XML schema "HELLO " + strFirstName it
    of course inserts Hello but not the value (i.e, strFirstName). So I know I have
    the correct assignment of variable to be set etc. Also, without the hardcoding
    it is inserting a blank row (i.e, value='').
    Please, help with this issue.[att1.html]
    [TestXmlVar.jar]
    [jhinkey.vcf]

  • Expences in service call

    Hi all!
    I create a service call with VIP template contract that has coverage Part.
    When i add an expence for this service calll through Invoce.
    Do customer pay this expence ? i see balance of this customer is increase.
    CAn you explain for me?
    Thank you!

    Please go through SAP Note: 861724 - How to stop posting to BP Receivable in Service Call Expense
    Symptom
    If we check the checkbox (Part, Labor, and travel) in Service Contract ->coverages tab, then in Service Call -> Expense tab, we add the expenses (Invoice with parts of item), the checkbox 'Bill' besides the invoice is uncheck. Afterwards, we still need to pay for that invoice.
    Other terms
    Bill, Service, Expense, Service Call, invoice
    Solution
    When 'Parts' in the Service -> Service Contract -> Coverage tab is checked, the "Bill" box in the "Expenses Details" window will be unchecked after you add an AR Invoice via Service -> Service Call -> Expense tab -> Expense Details -> New documents.
    If you do not want to pay to this customer (post to the customer's receivable), please do not add the AR invoice but add "Delivery" document or "Transferred to Technician" (Service -> Service Call -> Expense tab -> Expense Details -> New documents )
    Hope this SAP note will help you understand system behaviour and a solution how to deal with this situation.
    Regards
    Satish

  • Timeout to Web Services using via Proxy Server

    Hello,
    I'm wondering if anybody can help.
    I have a couple of preset web services on the coldfusion web server. As far as I know these have never worked since it's original installation back in June 2011.
    Whenever I attempt to refresh one of the web services using CF administrator I am seeing the following error message:
    Unable to refresh webservice.
    Unable to read WSDL from URL: https://www.****.cfc?wsdl.
    Error: java.net.ConnectException: Connection timed out: connect.
    The server does not have a direct connection to the internet as it is connected to the internal company network which uses a proxy server for internet connectivity.
    I am suspecting that CF is attempting to connect to the internet without the knowledge of the proxy server.
    I have looked high and low but unable to locate anything in CF admin to add a proxy server.
    I'm hoping somebody can reply with a simple solution to fix the above.
    Many Thanks,
    Andy

    Andy, two things.
    First, the problem could be proxy-related, but I notice also that the URL has https. And in that you’re getting a connection timeout, it could be that the destination server (at that URL in the web service call) is set to only allow SSL calls (or perhaps even calls to that specific site, directory, or file) from a specific IP address. Try visiting that URL from a browser running ON THAT SERVER (where CF is installed). It does not good to test the URL from your local development workstation. That would not be the same IP address from which the request would come when run via CF.
    Second, as for specification of proxy info, here’s something to consider: the CF Admin interface showing web services is populated by a call from within CFML code (using CFINVOKE/cfobject/createobject) invoking that web service. If you can find the code that is really calling the web service, you should find that you can specify the proxy info there. See:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_i_10.html (cfinvoke)
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_m-o_14.html (cfobject)
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions-pt0_23.html (createobject)
    Note that with createobject, you do it using a new (for CF8) argstruct. See the docs there for more, or my blog entry:
    http://www.carehart.org/blog/client/index.cfm/2007/9/5/cf8_hiddengem_createobject_argstruc t
    Let us know if any of this helps.
    /charlie

  • Creating a service call using DI API

    Hi all,
    I have written code to connect to businessone.It is connecting.But after that the error is coming....
    code written is.....
    String c="C40001";
                        getConnection();
                        System.out.println("Connected");
                        IDocuments objServiceCall=SBOCOMUtil.newDocuments(company,SBOCOMConstants.BoObjectTypes_oServiceCalls);
                        objServiceCall.setCardCode(c);
                        objServiceCall.setDocDate(new Date());
    int i=objServiceCall.add();
    String callId=company.getNewObjectKey();
    Error:
    com.sap.smb.sbo.wrapper.com.ComFailException: Invoke of: GetBusinessObject
    Source: SAPbobsCOM.Company.6.7
    Description: You are not connected to a company
         at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Native Method)
         at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Unknown Source)
         at com.sap.smb.sbo.wrapper.com.Dispatch.callN(Unknown Source)
         at com.sap.smb.sbo.wrapper.com.Dispatch.call(Unknown Source)
         at com.sap.smb.sbo.api.Company.getBusinessObject(Unknown Source)
         at com.sap.smb.sbo.api.SBOCOMUtil.newDocuments(Unknown Source)
         at in.mobileone.www.b1.CreateServiceCall.main(CreateServiceCall.java:35)
    Exception in thread "main"
    Is it the correct approach or not.
    any one guide me in this issue.
    Thanks&Regards
    Madhu

    Hi Gianluigi,
        What you said is correct.At that time my system has some problem with businessone.Now the company object is creating.But the error is showing at
    the line of code....
         objServiceCall.setCardCode("C40001");
    no mapping found for cardcode...
    Is the above send code is correct? or there is another way to approach to create a service call through DI API.
    Thanks
    Madhu

  • How can I associate an A/P invoice to a service call?

    Hi,
    Customer wants this:
    1. They (Co. A) gets a service call from their customer say for lump sum of 400 dollars.
    2. They (Co. A)  give out a contract to technician say at 45 dollars an hours and travel expenses. This is SERVICE ITEM for a total expense of say 45*2+120=210.
    3. Technician (A Vendor BP in SAP Business one) produces a PO. Co. A pays off the Technician.
    How can I create a Service Call to show both ends of incoming revenue and outgoing expense in the service call?
    Appreciate your help.
    Thank you.

    Dear Syed Aleem,
    I have described some ideas, but if these ideas do not help you, please come back to us with more details of what you need.
    1. They (Co. A) gets a service call from their customer say for lump sum of 400 dollars.
    Here you can create the servce call with the information in the General Tab and in the Remark and in the subject. If this is not enough I would suggest to create an activity and write your remark and content in the activity.
    You can create an activity clicking on the Activity tab. In the activity there is a tab called linked documents and you can add documents linked to the activity and service call.
    2. They (Co. A) give out a contract to technician say at 45 dollars an hours and travel expenses. This is SERVICE ITEM for a total expense of say 45*2+120=210.
    You can use anothe activity or you can add Return from Technician under the Expenses tab of the Service call.
    3. Technician (A Vendor BP in SAP Business one) produces a PO. Co. A pays off the Technician.
    Now, create another activity (or your first one) and add the Purchase order and the payment to it.
    Please, let me know if my suggestions help you.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

Maybe you are looking for