Skip to Content
avatar image
Former Member

Add a Service Call using B1WS

Hi,

I'm using B1WS and I'd like to add a Service Call.

What can I do? I don't have found the ServiceCall object for the DI Server.

Help me,

thank you

Marco

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 08, 2008 at 07:37 PM

    Hello Marco,

    Take a better look at the sdk help file. In this file you can find more info about the di-server.

    search for: "Get Service Call XML Schema"

    Regards Teun

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Teun,

      I have see the GetServiceCallInputXMLSchema, but I don't think that is the object that I'm searching for.

      I'd like to find an object like BusinessPartnersService, on wich I can add BP,BPAdress, etc..using DI Server.

      Now I want to add a Service Call, but I don't have found the object.

      If you know how can I use GetServiceCallInputXMLSchema to Add a service call, every idea is good for me!

      Regards

      Marco

  • Oct 09, 2008 at 05:49 AM

    Hello,

    Sorry to tell you that Service Call service is not available in B1WS. The offered services in B1WS list below:

    AccountCategoryService
    uF071	AccountsService
    uF071	AlertManagementService
    uF071	AlternativeItemsService
    uF071	ApprovalStagesService
    uF071	ApprovalTemplatesService
    uF071	BankStatementsService
    uF071	BusinessPartnersService
    uF071	CompanyService
    uF071	CorrectionInvoiceReversalService
    uF071	CorrectionInvoiceService
    uF071	CorrectionPurchaseInvoiceReversalService
    uF071	CorrectionPurchaseInvoiceService
    uF071	CreditNotesService
    uF071	DeliveryNotesService
    uF071	DownPaymentsService
    uF071	DraftsService
    uF071	FormPreferencesService
    uF071	InventoryGenEntryService
    uF071	InventoryGenExitService
    uF071	IncomingPaymentsService
    uF071	InvoicesService
    uF071	ItemsService
    uF071	MessagesService
    uF071	OrdersService
    uF071	PurchaseCreditNotesService
    uF071	PurchaseDeliveryNotesService
    uF071	PurchaseDownPaymentsService
    uF071	PurchaseInvoicesService
    uF071	PurchaseReturnsService
    uF071	PaymentDraftsService
    uF071	ProductionOrdersService
    uF071	ProductTreesService
    uF071	ProjectsService
    uF071	QuotationsService
    uF071	ReportFilterService
    uF071	ReportLayoutsService
    uF071	ReturnsService
    uF071	SeriesService
    uF071	SpecialPricesService
    uF071	StockTransferService
    uF071	UserMenuService
    uF071	VendorPaymentsService
    uF071	WizardPaymentMethodsService

    Kind Regards

    -Yatsea

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 09, 2008 at 06:03 PM

    Marco,

    The DI Server provides the same objects as the DI API to you. Where the "Services" do not supply to you a ServiceCalls service, you can use the ServiceCalls object that is available via the DI API. While this is not a "service" like the Business Partner Service I think that using the available object for Service Calls should help you.

    Eddy

    Add comment
    10|10000 characters needed characters exceeded

    • Yes, you can, not typo error:

      1.you can get the xml schema for Service Call with request:

      <?xml version="1.0" encoding="UTF-16"?>
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Header>
        <SessionID>32D83BB6-F3AD-985F-D4BC-655B3D9ACBE2</SessionID>
      </env:Header>
       <env:Body>
        <dis:GetBusinessObjectXmlSchema xmlns:dis="http://www.sap.com/SBO/DIS">
         <Object>oServiceCalls</Object>
        </dis:GetBusinessObjectXmlSchema>
       </env:Body>
      </env:Envelope>

      or you can get it from in DI

      oSerCall.GetByKey()
      oSerCall.SaveAsXml()

      2.You can call GetByKey for ServiceCall with

      <?xml version="1.0"?>
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Header>
      <SessionID>4</SessionID>
      </env:Header>
      <env:Body>
      <dis:GetByKey xmlns:dis="http://www.sap.com/SBO/DIS">
      <Object>oServiceCalls</Object>
      <ServiceCallID>1</ServiceCallID>
      </dis:GetByKey>
      </env:Body>
      </env:Envelope>

      3.You also can add, update, delete with same function ServiceCall object in DI.

      just pass the Service Call XML

      <?xml version="1.0" encoding="UTF-16"?>
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Header>
        <SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
       </env:Header>
       <env:Body>
         <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add BP">
         <!--please for the service call xml here you want to add-->
         </dis:AddObject>
       </env:Body>
      </env:Envelope>

      please go to sdk help search "AddObject" , "UpdateObject" "RemoveObject" for further info. Thanks

      Kind Regards

      -Yatsea