C# pass array in SAP XI Web Service

SAP XI created a WSDL file. I add web reference in Visual Studio 2003.
Calling a Read Bill_Of_Material and last parameter is
"ref ZBOM[] Bill_Of_Material"
I can not figure out how to create this last parameter. Looks like everything else is working.
This last parameter looks like this in the SAP SOAP Client :
     <BILL_OF_MATERIAL>
          <item>
               <IDNRK/>
               <OJTXB/>
               <POSNR/>
               <POSTP/>
               <MENGE/>
               <MTART/>
          </item>
     </BILL_OF_MATERIAL>
Thanks

SD,
Check this weblog for step by step procedure:
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
Here instead of deploying in XI you will deploy your webservice in the legacy system.
If you want to test this webservice then check this weblog:
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
---Satish

Similar Messages

  • Passing array of UDT in web service method

    I have a backend Java class with method that takes an array of User Defined Type:
    public example.ws2j.service.StatusCodeVO[] getAllStatusCodes(DepartmentCodeVO[]
    deptCode)
    StatusCodeVO[] resp = new StatusCodeVO[2];
    resp[0].setName("Christy");
    resp[0].setStatusCodeID(150L);
    resp[1].setName("Bawiz");
    resp[1].setStatusCodeID(110L);
    return resp;
    And run serviceGen, everything deploys fine. When I invoke this method from the
    generated web service homepage I get the following error. Is the problem happening
    during receipt or return from the call? How do I diagnose? I can attach my java
    class & build.xml if you'd like... THANKS!
    javax.xml.rpc.soap.SOAPFaultException javax.xml.rpc.soap.SOAPFaultException at
    weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459) at
    weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:339) at
    weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:271)
    at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:244)
    at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:306)
    at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:198)
    at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:124)
    at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:224)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)

    Hello,
    There are two issues, one is the generated webservice test page and the second is the actual webservice itself. The test page does
    its best to introspect and create sample data, but it could have problems. The actual service in this case could be doing just
    fine. You could try generating a client from the service (using clientgen) and see if it works OK. Also, after you build and
    deploy the service, get the WSDL and post it here, it may give us a better clue to what is happening.
    Thanks,
    Bruce
    Peter wrote:
    I have a backend Java class with method that takes an array of User Defined Type:
    public example.ws2j.service.StatusCodeVO[] getAllStatusCodes(DepartmentCodeVO[]
    deptCode)
    StatusCodeVO[] resp = new StatusCodeVO[2];
    resp[0].setName("Christy");
    resp[0].setStatusCodeID(150L);
    resp[1].setName("Bawiz");
    resp[1].setStatusCodeID(110L);
    return resp;
    And run serviceGen, everything deploys fine. When I invoke this method from the
    generated web service homepage I get the following error. Is the problem happening
    during receipt or return from the call? How do I diagnose? I can attach my java
    class & build.xml if you'd like... THANKS!
    javax.xml.rpc.soap.SOAPFaultException javax.xml.rpc.soap.SOAPFaultException at
    weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459) at
    weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:339) at
    weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:271)
    at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:244)
    at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:306)
    at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:198)
    at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:124)
    at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:224)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)

  • Passing array of long as Web Service parameter

    Hello,
    Is it possible in apex pass array as paramater ? I have method with one paramater Long[]: Numbers. Any idea, plsease.
    Thank you.

    This might be helpful. You can create an application process (Shared Component) and call it while passing arrays.
    Passing an array with htmldb_get
    It isn't specifically about longs but, you should be able to move from their string to their numeric representations.
    -Joe

  • Calling SAP ME web services with out reference names

    Hello,
    When calling SAP ME web services from non SAP clients, is there a way the users can by pass the reference names? Just pass SFC details instead of SFCREF.
    example:- Data collection web service expects SFCRef:- SFCBO:<SITE>,<SFC> rather than that, what we are expecting is just pass SFC name and get response from ME.
    -Adarsha.K.S

    Hi Adarsha,
    ME always accepts references only.you can do this in two ways,
    1. Form a string with respective business object + site + object and pass.(ex: SFCBO:<SITE>,<SFC>) and then pass as reference.
    2. through SOAP UI request XML. ex:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">
       <soapenv:Header/>
       <soapenv:Body>
         <ParametricRequest_sync xmlns="http://sap.com/xi/ME">
      <ParametricRequest>
      <SiteRef>
      <Site>SITE1</Site>
      </SiteRef>
      <me:SfcRef>
      <me:Sfc>SFC1</me:Sfc>
      </me:SfcRef>
       <DcGroupRef>
      <DcGroup>ABC</DcGroup>
      <Revision>A</Revision>
      </DcGroupRef>
      <ParametricMeasure>
      <MeasureGroup>ABC</MeasureGroup>
      <MeasureName>PARAM1</MeasureName>
      <Actual>1</Actual>
        </ParametricMeasure>
      <ResourceRef>
      <Resource>RESOURCE1</Resource>
      </ResourceRef>
      <me:OperationRef>
                    <me:Operation>OPERATION1</me:Operation>
                    <me:Revision>A</me:Revision>
            </me:OperationRef>
      </ParametricRequest>
      </ParametricRequest_sync>
       </soapenv:Body>
    </soapenv:Envelope>
    hope this helps.

  • How to send a XML file from  SAP    to   WEB SERVICE

    Hi folks,
    i m creating a XML file with purchase order data, while saving the purchase order.now i need to send this XML file to some WEB SERVICE i.e to some perticular address in WEB.
    can anyone give the step by step procedure to do this web service configuration? it's really urgent.
    points must be awarded.
    Thanks & Regards
      pabitra

    Hi all,
    i need to send some purchase order data from SAP to WEB SERVICE. while saving the purchase order, i want to send some data from SAP to WEB SERVICE ( a perticular address in WEB).
    i want to see those datas in xml format in WEB.
    Now i am using SAP 4.7 version. Is this web service configuration is possible or not?
    In SE37, i can not see the CREATE WEB SERVICE option in utilitities--> More utilities menu.is it possible in 4.7???
    can anyone give any suggestion ? it's very urgent.
    Thnaks
    pabitra

  • C# Calling SAP RFC/Web Service Failure

    Hi SAP Experts,
    I am facing this problem. When an external system is calling my SAP RFC/Web Service, the external system(which is not SAP) is not getting the correct value. But when I test the RFC in SAP GUI It is working correctly. When I test between SAP server A & SAP Server B it is working correctly which is the recepient server is getting the correct value. What might cause this problem ? Urget help is needed here. Thanks.

    Hi Hadi,
    U need to expose a custom RFC as a Web Service. This is a simple web service that returns Customer Data (from kna1) based on the Customer ID which we provide as input.
    In the RFC, U have to declare an internal table (G_RET) in the tables section of the RFC.
    Now, U have to test the web service, U can see a check box with NULL option beside the G_RET.
    cheers,
    Hema.

  • Example using an SAP RFC (web service)

    Is there a good example out there for using an SAP RFC (web service) with Xcelsius 2008?  I cannot seem to get it to work.  I am trying to use the SAP sample RFC called BAPI_FLIGHT_GETLIST.  If someone can get an example to work using this BAPI, I would love to see it.
    Thanks,
    Kenneth

    hi sap guys.. can ne 1 send me the complete documents on tc- st01.. system trace...  i'll be thankful to you. Iam new to this forums can i dont know how  to posta  queston... just iam posting this queston in one of  the queston's reply. Please help me out abt TC- ST01 and how to post a queston in this forums..
      Thanks in Advance.
      Regards,
      Younus

  • "Load or Replenish" SAP ME web service

    Hi Experts,
    I am looking for SAP ME web service which will DO a Load/Replenish from other system. Does any one knows SAP ME provide? If not, any good idea to propose without SDK development?
    Thanks!

    Hi,
    I cannot understand what you mean. Load/Replenish is loading one inventory into one slot. You mean I can use assembly point function to do that? I know SAP ME provide assembly point web service to consume component, but I think load/replenish is just PUT one inventory onto a slot of machine not consume yet.

  • How to integrate Microsoft and SAP using Web Services?

    Hi All
    How to integrate Microsoft and SAP using Web Services? If any one has document please send it to me. My id is [email protected]... Please
    Help me
    Best Regards
    Ravi Shankar

    Hi Ravi,
    This is for Customizing Email and Other Web Services.
    Create addresses
    The address maintenance of R/3 users is carried out either via the R/3 User Maintenance (Transaction SU01) or the Private office settings (Transaction SO12):
    Address --> Other communication...
    Selection of the required communication service.
    Enter address.
    Copy or save.
    b) Configuration of SAPconnect (Transaction SCOT)
    Set communication method
    4.0 + 4.5: Goto --> Customizing --> Communication methods
    as of 4.6: Settings --> Communication methods
    Set the method of the required communication service to the value 'SAPCONNECT' and save the setting.
    Customized the same for Internet mailing.
    C) If you want to Transfer Table Structure Values from SAP R/3 to Web Services then
           1. Create BAPI and Transfer whichever things you want.(Note: The Structure
               of BAPI should be similar to Web Structure (Datatypes).
           2. Create a BDC and Schedule it in the Background.
    Hope it helps you, Awaiting for the Reward Points.
    Thanks
    Subrato Chowdhury

  • Retrieve error message of SAP provided web service in web service response

    Hi All,
    We have a SAP provided web service that sometimes fails to process data it is called with. This is not a problem as the data sometimes is just plain wrong (i.e. date field contains text). However, the error is only logged in SAP and can only be queried using SRT_UTIL.
    The problem is that the error is not reported back via the response. How can we set up the web service so that the error could be displayed by the calling party without logging into SAP?
    Thanks for the help in advance.
    Best Regards,
    Daniel

    Hi Calvin,
    The WS is indeed synchronous. The problem is not whether the error is captured or not. It is captured indeed but it is logged inside SAP only and not returned via the Web Service response mechanism. The error message says that error message can be retrieved using SRT_UTIL.
    This is a major problem as the users of the outside system calling SAP have no right to use SRT_UTIL to track down the error. They need to contact SAP basis in order to get to the end of it.
    What we need to achieve is to get back the same error message that can be seen with SRT_UTIL via the web service.
    Thanks.

  • C# pass array as parameter in SAP XI web service

    I can get this to work if all parameters are strings.
    This new web service retrieves Bill Of Material. Last parameter appears to be an array and it's a reference parameter. The tooltip in VS2003 is "ref ZBOM[] BILL_OF_MATERIAL"
    I create an array object
    public SAPBOMTest.refREADBOM.ZBOM[] myZBOM;
    I use myZBOM for the last parameter. It compiles OK in VS2003. I then get a SOAPReadResponse error.

    There is an error in your SQL.

  • Data Federator - Array as input to web service.

    Hi,
    I have an ASP.NET web service method that takes in an array of string for input. I am adding this web method as a data source in Data Federator. However when I look at the method's parameters in Operations Selection in Data Federator, the array of string becomes a string. It seems that Data Federator only passes one element value as an array to the method. Is there any way for Data Federator to see the array correctly so that I can pass an array of string to the web method via Data Federator?
    Thanks.

    hi,
    Data Federator does not support array types as input parameters. For the moment there is no Data Federator workaround for this limitation (the only possibility is to modify the WebService definition).
    thanks.

  • Integrating FIM with SAP using web services connector

    Hi 
    I am implementing the FIM web services connector to integrate with SAP. The MS connector config guide for SAP documentation seems to me missing some content or at least I think it might be written for an earlier version of
    SAP than the version we are working with(different screenshots, options, etc). The version of SAP we have implemented is EHP6 for SAP ERP6 which I believe translates to ECC6.
    SAP web services have been configured and FIM performs successful discovery of the wsdl endpoint and BAPI operations as expected. Our issue is that FIM fails to run a full import. From the digging around web service config and error logs two observations comes
    out:
    1. FIM Full Import workflow does not render correctly through the web service configuration tool and complains of a duplicate attribute "xml:space is a duplicate attribute on line on line 424 on position 103". Review of the wsconfig generated by the
    webservice config tool points to an variable supplied to a construct the query to a BAPI of HR infotype 0006. Extract below:
    ...<InArgument x:TypeArguments="d:BAPIP0006L" xml:space="preserve">[If(Not IsNothing(addressInfo) AndAlso Not IsNothing(addressInfo.item), addressInfo.item, Enumerable.Empty(Of BAPIP0006L)()).
    OrderByDescending(Function(a) DateTime.ParseExact(a.VALIDBEGIN, dataSourceDateFormatValue, Nothing)).
    ThenByDescending(Function(a) Integer.Parse(a.RECORDNR)).FirstOrDefault()]</InArgument>...
    I can only guess that it means the query should keep the spaces within the string it passes to SAP but this is where my understanding stops.
    2. SAP returns errors about not implementing a BAPI EMPLOYEE_GETDATA function which is not part of the exposed BAPI operations. Well the obvious solution to this would be expose this missing operation (which is undocumented in MS config guide) however this
    BAPI is a core requirement to retrieve person information. I would be hugely surprised if this operation was not factored into the config. This makes me think that to understand this better I need to resolve issue 1 first and get the rendering sorted first. 
    Has anyone come across the above issues with a recent implementation with this connector? Or help point me in the right direction? 
    any help would be greatly appreciated!
    thanks!!

    Hi Joe,
    you most probably missed the sentence "Add the required BAPI’s in the function group and select those required BAPI’s and click continue." in the "Connector for SAP.docx" document on page 8. In other words your webservice does not provide the required
    BAPIs.
    In the "DefaultSAPECC_6.wsconfig" the workflows for import and export require specific BAPIs.
    Also make sure that your Service Definition has got the same name as in the documentation and the workflow template.
    I was fighting with this for the last 4 days but in the end got it working.
    Hope this helps
    Chris

  • Flex and SAP Netweaver Web Service Security

    HTTPS should just work, please repost here if it doesn't.  In regards to the username and password, the browser will prompt you just like it would when you log into a normal system.  The "challenge" box will come up and you can log in there.  If you have already signed in and navigated to the page using SSO2 tickets the flex app will use that token to gain access to the system.
    More broadly, I never use the AS proxy generator or the MXML webservices to do this.  I find that that directly using the actionscript classes is easier to debug, see my post:  http://www.danmcweeney.com/57

    >
    Irvan Bastian wrote:
    >
    > 1. I really don't know know to connect from Flex to web service when it's run in the SSL HTTPS way. Can you give me a sample code ? (i think it will use DEFAULT_DESTINATION_HTTPS component from mx.rpc.soap.WebService)
    I believe just using https as the location of the WSDL will make the Flex framework switch to use https, that and make any destinations https.
    >
    Irvan Bastian wrote:
    > 2. About the user and password, I alerady using
    > fooService.setRemoteCredentials("username", "password"); but the browser still prompt the username and password. I must type it once again to pass the HTTP Basic Authentication. How can I type the use and password in the program only to pake the browser doesn't prompt anything and pass the HTTP Basic Authentication silently.
    setRemoteCredentials does not do what you think it does, this method is used for, quoting the Flex Docs, "These are passed from the proxy to the endpoint.  If the useProxy property is set to false, this property is ignored."
    I have to look into setting the "Authorization" header directly, for a version you couldn't do it, I think you can now, but can't remember if it is restricted to certain HTTP verbs.
    >
    Irvan Bastian wrote:
    > 3. What is "SSO2 tickets" ??
    These are the SAP single sign on tickets, they show up in headers as MYSAPSSO2 values.

  • Sending an array of images via web service

    Hi!
    Is it possible to send an array of images using DataHandler[]?
    Thank you!
    Good Day!
    grazieee

    Hi Michael,
    Can I have an example of the JAX-RPC handler method?
    Thank you!!
    Good Day!
    grazieee..
    ================================================================
    "Michael Wooten" <[email protected]> wrote:
    >
    You can return a DataHandler[], but you can't currently pass one to a
    WLS (or WLW)
    web service opertion :-)
    For now, you should consider using a JAX-RPC Handler to achieve the same
    effect.
    Regards,
    Mike Wooten
    "grazieee" <[email protected]> wrote:
    Hi!
    Is it possible to send an array of images using DataHandler[]?
    Thank you!
    Good Day!
    grazieee

Maybe you are looking for

  • Leopard in the Enterprise

    I'm partner in a small company with 7 employees. We are all Mac fans and would like to be able to work collaboratively with our Macs. I originally came from a Windows work-environment where I got to know Microsoft Exchange and Microsoft SharePoint. B

  • Error while writing data to View Object programmetically

    Hi, I want to create a poplist with dynamic values. For the same, I have created a View Object(CustomVO) using the VO wizard.The view object does not have a datasource.I have added 2 transient attributes(TubeCode and TubeName).The viewobject is attac

  • Reading Characteristics of a DMS Document if the one does not exist yet

    Hi, Whenever a document is created with classification from transaction CV01N, an entries is being made into the tables of DB for the entered classification of the document. In this case I can get the characteristic values of document classification

  • .sca delpoyment exception in CE

    Hello:      When I try to deploy an sca file (BPMDMTECHN05_0.sca) it shows me the following error... An error occurred while deploying the deployment item 'sap.com_com.sap.pct.mdm.tech.systems'.; nested exception is:      com.sap.engine.services.dc.g

  • Data transfer from G4 to mini?

    I'm just setting up a new Mac mini, Intel core duo 1.83 GHz, running OS 10.10. It appears to be failing to do a FireWire transfer of accounts and data from my old G4. It tells me the FireWire connection is established, and the G4 screen shows the Fir