ABAP Web Service with tables

Hello,
<br>
<br>
We need to build a web service with a predefined message in our ERP (ABAP), without PI or WebAS JAVA.
<br>
<br>
We thought it should be a simple task, because we had no problem with many other applications and systems when building the same service, but were not able to build it with SAP ABAP, probably as a consequence of our lack of knowledge on ABAP SOAP runtime.
<br>
<br>
We have an external asynchronous process that delivers information to many other systems using web services (information diffusion). Concecuently, the web service call's structure is determined by the caller, so we have to fulfill this structure if we want to receive the info.
<br>
<br>
The owner of the process defined a very simple service call, in which one kind of  "record" can be repeated 1 to n times:
<br>
<br>
<br>
<br>
<br>
<br>
&lt;reglasSuscripcion&gt;
<br>
            &lt;!Zero or more repetitions:&gt;
<br>
               &lt;nombre&gt;?&lt;/nombre&gt;
<br>
               &lt;valor&gt;?&lt;/valor&gt;
<br>
               &lt;nombre&gt;?&lt;/nombre&gt;
<br>
               &lt;valor&gt;?&lt;/valor&gt;
<br>
               &lt;nombre&gt;?&lt;/nombre&gt;
<br>
               &lt;valor&gt;?&lt;/valor&gt;
<br>
<br>
               &lt;nombre&gt;?&lt;/nombre&gt;
<br>
               &lt;valor&gt;?&lt;/valor&gt;
<br>
&lt;/reglasSuscripcion&gt;
<br>
<br>
<br>
In order to receive this info, we have to implement an abap web service handler to accept this kind of call, the same way other applications/systems have already done.
<br>
<br>
We tried to build a RFC function call and create a web service with the wizard and it resulted in a web service with the following WSDL:
<br>
<br>
&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style"&gt;
<br>
<br>
<br>
<br>
         &lt;reglasSuscripcion&gt;
<br>
            &lt;!Zero or more repetitions:&gt;
<br>
            &lt;item&gt;
<br>
               &lt;nombre&gt;?&lt;/nombre&gt;
<br>
               &lt;valor&gt;?&lt;/valor&gt;
<br>
            &lt;/item&gt;
<br>
<br>
<br>
<br>
&lt;item&gt;
<br>
               &lt;nombre&gt;?&lt;/nombre&gt;
<br>
               &lt;valor&gt;?&lt;/valor&gt;
<br>
            &lt;/item&gt;
<br>
         &lt;/reglasSuscripcion&gt;
<br>
<br>
<br>
<br>
We found two main problems:
<br>
<br>
1.- When "wrapping" the RFC as a WS with the wizard, for a table datatype it automatically includes the <item></item> tag, so we break the predefined calling rules.
<br>
<br>
2.- The namespace is fixed by the wizard, and we would like to use a common namespace for all the "susbscribers", logically, the namespace fixed by the information diffusion service.
<br>
<br>
We also tried to find info on the outside-in approach for building a web service from the WSDL, but all the info we found required the ESR and we have no PI, just the ERP.
<br>
<br>
Any ideas on how to proceed?
<br>
<br>
Thanks in advance,
<br>
<br>
Joseba M. Iturbe
<br>
<br>
Edited by: Soporte Desarrollo on Mar 5, 2010 10:56 AM

#2.  I've recently had to "zap" some namespaces in an ECC5 system because the calling (TIBCO) system didn't appreciate the default SAP "urn" default - something to do with multiple colons in the address.  There were, I think, just three table this affected, all VEP* ones.  I think I should have been able to change these via the virtual interface in SE80 except that the ECC5 code was a bit "light" in this respect, so you may be able to do this now in SOAMANAGER in ECC6 (btw,  I also had to re-save the WS definition within WSCONFIG and re-activate the virtual interfaces after this "zap" to generated the associated handler class again).
#1. Given your "name / value" pairs represent a complex type, then it might be better practice to have them as "item" which is probably why SAP proposes it this way... what does your custom function module parameter list look like?
Jonathan

Similar Messages

  • Call ABAP Web Service with Java code only

    Hi all,
    First of all, I am writing script in Adobe form but am not using the one in SAP.
    I am trying to call the web service and process the result with script open (i.e. no dataconnection created), because I am trying to do that in a dialog.
    I can call a non-SAP web service without problem, but I am not able to call a simple web service with only a single string input, anyone have any example?
    Here is the SOAP for input:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions">
       <soapenv:Header/>
       <soapenv:Body>
          <urn:Z_RFC_GET_STAFF_BANK_INFO>
             <A_STAFF_ID>0123456</A_STAFF_ID>
          </urn:Z_RFC_GET_STAFF_BANK_INFO>
       </soapenv:Body>
    </soapenv:Envelope>
    Here is my code to call:
         var cURL = "http://some-host-name:port/sap/bc/srt/wsdl/bndg_DEDB492BB032E7F1B09F001CC4FBCEC9/wsdl11/allinone/ws_policy/document?sap-client=300";
         var response = SOAP.request(
              cURL: cURL,
              oRequest: {
                   "urn:sap-com:document:sap:rfc:functions:Z_RFC_GET_STAFF_BANK_INFO": {
                        A_STAFF_ID: "0123456"
    Regards
    Bill

    Hello I have the same problem, were you able to execute the WS through the JS code now?
    I would like to call an ABAP WS using JavaScript to return complex structures that I would like to manage directly with JS.
    I tried with this code and I get the error "RaiseError: Acrobat Raise." when the request is executed:
    var WSUrl = "http://<server>:<port>/sap/bc/srt/wsdl/bndg_4D15C75529330AF1E10000000A150429/wsdl11/allinone/ws_policy/document?sap-client=500";
    var VendorNumber = xfa.form.DATA.DATAFLOW.SF_HEADER.VENDOR_NUMBER.rawValue;
    try {
    // Create request structure, read Input out of text field
    var request = {
              "urn:sap-com:document:sap:soap:functions:mc-style:ZWsTest" : {ILifnr: VendorNumber}
    SOAP.wireDump = true;
    // Call web service using SOAP object
    var response = SOAP.request ({
            cURL: WSUrl,
            oRequest: request
    //        cAction: "urn:sap-com:document:sap:soap:functions:mc-style"
    } catch (e) {
        xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
    with this other code I get the error "SOAPError: CX_ST_MATCH_ELEMENT:XSLT exception.System expected element 'ILifnr'":
    try {
        var myProxy = SOAP.connect(WSUrl);
        var result = myProxy.ZWsTest( { ILifnr: VendorNumber } );
        xfa.form.DATA.DATAFLOW.SF_HEADER.E_DESCRIPTION.rawValue = result;
    // Display the response in the console:
       console.println("Result is " + result);
    } catch (e) {
        xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
    in the second option, if I make the field ILifnr optional the call is succesfully performed but the parameter is not passed to the WS. So the call is working.
    Using stand-alone LiveCycle designer 8.1 and Adobe Reader 8
    Any suggestions?
    Many thanks,
    G.
    Edited by: Guillem Mateu Navalón on Jan 13, 2011 1:13 PM

  • Web Services with table element dont work

    I, am trying to use a web service that returns a xml with code and description.
    When i test the web service it works fine but when i use it in a page doesnt work at all.
    There is no parameters to call and the response is:
    <?xml version="1.0" encoding="utf-8" ?>
    - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <soap:Body>
    - <instituicaoResponse xmlns="http://tempuri.org/">
    - <instituicaoResult>
    - <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    - <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="pt-PT">
    - <xs:complexType>
    - <xs:choice maxOccurs="unbounded">
    - <xs:element name="Table">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="INST" type="xs:decimal" minOccurs="0" />
    <xs:element name="DESCRICAO" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    - <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    - <NewDataSet xmlns="">
    - <Table diffgr:id="Table1" msdata:rowOrder="0">
    <INST>0</INST>
    <DESCRICAO>Beneficiários - SAMS Norte</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table2" msdata:rowOrder="1">
    <INST>1</INST>
    <DESCRICAO>Utentes - SAMS Norte (ex.Benef)</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table3" msdata:rowOrder="2">
    <INST>2</INST>
    <DESCRICAO>Beneficiários - SAMS Sul e Ilhas</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table4" msdata:rowOrder="3">
    <INST>3</INST>
    <DESCRICAO>Beneficiários - SAMS Centro</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table5" msdata:rowOrder="4">
    <INST>4</INST>
    <DESCRICAO>Beneficiários - PALOP's (excl. Benef. BCA)</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table6" msdata:rowOrder="5">
    <INST>6</INST>
    <DESCRICAO>Utentes - SAMS Sul e Ilhas</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table7" msdata:rowOrder="6">
    <INST>7</INST>
    <DESCRICAO>Funcionários do SBN/SAMS</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table8" msdata:rowOrder="7">
    <INST>10</INST>
    <DESCRICAO>Utentes - Banco Comercial Angolano</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table9" msdata:rowOrder="8">
    <INST>15</INST>
    <DESCRICAO>Utentes - SAMS Centro</DESCRICAO>
    </Table>
    </NewDataSet>
    </diffgr:diffgram>
    </instituicaoResult>
    </instituicaoResponse>
    </soap:Body>
    </soap:Envelope>
    Can anyoone tell me waht is the problem, thanks

    As far as I can tell the problem is the null namespace attribute on the NewDataSet element:
    <NewDataSet xmlns="">As I understand it, either a namespace value should be given, or the xmlns attribute should not appear at all. If it's removed from the source XML then the data can be extracted:
    SQL> l
      1  with webservice as (
      2    select  xmltype(q'{
      3  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      4  <soap:Body>
      5  <instituicaoResponse xmlns="http://tempuri.org/">
      6  <instituicaoResult>
      7  <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
      8  <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="pt-PT">
      9  <xs:complexType>
    10  <xs:choice maxOccurs="unbounded">
    11  <xs:element name="Table">
    12  <xs:complexType>
    13  <xs:sequence>
    14  <xs:element name="INST" type="xs:decimal" minOccurs="0" />
    15  <xs:element name="DESCRICAO" type="xs:string" minOccurs="0" />
    16  </xs:sequence>
    17  </xs:complexType>
    18  </xs:element>
    19  </xs:choice>
    20  </xs:complexType>
    21  </xs:element>
    22  </xs:schema>
    23   <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    24   <NewDataSet xmlns="">
    25   <Table diffgr:id="Table1" msdata:rowOrder="0">
    26  <INST>0</INST>
    27  <DESCRICAO>Beneficiários - SAMS Norte</DESCRICAO>
    28  </Table>
    29   <Table diffgr:id="Table2" msdata:rowOrder="1">
    30  <INST>1</INST>
    31  <DESCRICAO>Utentes - SAMS Norte (ex.Benef)</DESCRICAO>
    32  </Table>
    33   <Table diffgr:id="Table3" msdata:rowOrder="2">
    34  <INST>2</INST>
    35  <DESCRICAO>Beneficiários - SAMS Sul e Ilhas</DESCRICAO>
    36  </Table>
    37   <Table diffgr:id="Table4" msdata:rowOrder="3">
    38  <INST>3</INST>
    39  <DESCRICAO>Beneficiários - SAMS Centro</DESCRICAO>
    40  </Table>
    41   <Table diffgr:id="Table5" msdata:rowOrder="4">
    42  <INST>4</INST>
    43  <DESCRICAO>Beneficiários - PALOPs (excl. Benef. BCA)</DESCRICAO>
    44  </Table>
    45   <Table diffgr:id="Table6" msdata:rowOrder="5">
    46  <INST>6</INST>
    47  <DESCRICAO>Utentes - SAMS Sul e Ilhas</DESCRICAO>
    48  </Table>
    49   <Table diffgr:id="Table7" msdata:rowOrder="6">
    50  <INST>7</INST>
    51  <DESCRICAO>Funcionários do SBN/SAMS</DESCRICAO>
    52  </Table>
    53   <Table diffgr:id="Table8" msdata:rowOrder="7">
    54  <INST>10</INST>
    55  <DESCRICAO>Utentes - Banco Comercial Angolano</DESCRICAO>
    56  </Table>
    57   <Table diffgr:id="Table9" msdata:rowOrder="8">
    58  <INST>15</INST>
    59  <DESCRICAO>Utentes - SAMS Centro</DESCRICAO>
    60  </Table>
    61  </NewDataSet>
    62  </diffgr:diffgram>
    63  </instituicaoResult>
    64  </instituicaoResponse>
    65  </soap:Body>
    66  </soap:Envelope>}') xml
    67    from dual)
    68  select
    69            extractvalue(
    70             value(t)
    71           , '/Table/INST'
    72           , 'xmlns="http://tempuri.org/"') inst
    73          , extractvalue(
    74             value(t)
    75           , '/Table/DESCRICAO'
    76           , 'xmlns="http://tempuri.org/"') descricao
    77  from
    78            webservice ws
    79          , table(
    80           xmlsequence(
    81             extract(
    82                 ws.xml
    83               , '//instituicaoResponse/instituicaoResult/diffgr:diffgram/NewDataSet/*'
    84*               , 'xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns="http://tempuri.org/"'))) t
    SQL> /
    no rows selected
    SQL> l 24
    24*  <NewDataSet xmlns="">
    SQL> c/ xmlns=""//
    24*  <NewDataSet>
    SQL> /
    INST DESCRICAO
    0    Beneficiários - SAMS Norte
    1    Utentes - SAMS Norte (ex.Benef)
    2    Beneficiários - SAMS Sul e Ilhas
    3    Beneficiários - SAMS Centro
    4    Beneficiários - PALOPs (excl. Benef. BCA)
    6    Utentes - SAMS Sul e Ilhas
    7    Funcionários do SBN/SAMS
    10   Utentes - Banco Comercial Angolano
    15   Utentes - SAMS Centro
    9 rows selected.This is not an APEX problem: try the XML DB, but I think the problem lies in the web service XML rather than in Oracle or your XPath expressions...

  • Consuming SAP web services with tables

    I'm doing kind of feasibility study on consuming SAP web
    services from CF.
    So far so good, but I'm stuck dealing with tables
    (import/export parameters in SAP world).
    I know how to receive a table object from SAP functions:
    * With Apache Axis v1.2: pass an empty CF structure as a
    parameter
    * With Apache Axis v1.4: pass an empty CF array as a
    parameter
    Then the parameter is filled with data (replaced with Java
    object) and we can just parse the object accordingly.
    My question here is whether or not we can pass a *table with
    actual records*.
    For example, I want to pass a table with multiple records to
    update DB records under SAP.
    I tried passing (1) CF array of structure and (2) Java
    ArrayList with no chance.
    The web service call itself completes without errors (no
    method signature error), but the SAP function seems to see the
    parameter as an empty table.
    Anyone has been successful with this case?
    Any suggestion would be much appreciated.

    Thanks Dan,
    Unfortunately CF query object didn't work either.
    Now I'm looking at the code generated by Flex Builder to see
    how the classes are like ;-)
    It's just an ArrayCollection of simple value objects
    (representing a row).
    So CF array of structure or Java ArrayList looks a reasonable
    approach though they don't at all.

  • ABAP Web Service with XI and SOAP

    Hi everybody!
    What we are trying to implement is the following szenario:
    SAP ERP HCM
    SAP XI (Netweaver 2004s)
    Our customers shall call a Web Service on the HCM system over the XI system transmitting 2 parameters (IDs) and get back a xml document with a list of hr related information.
    This is how we started (or want to go on) with the outside-in method:
    1. set up data types and message interface in XI integration repository
    2. generate a proxy in HCM with the transaction SPROXY and implement the service
    3. set up a communication scenario in XI integration directory using the SOAP adapter
    But there are some questions left:
    - how many message interfaces must be set up for the described scenario?
    - is the SOAP-adapter the correct adapter for that scenario?
    - how do we send back the xml information list?
    - is synchronous communication correct?
    - how can we test that scenario?
    We are new to XI and SOA so we'd appreciate any help. thanks in advance!

    how many message interfaces must be set up for the described scenario?
    You would need two message interfaces. One for the outbound for the sender and one for the inbound for the receiver. There should be request and response message types for each message interface since this is a synchronous scenario.
    is the SOAP-adapter the correct adapter for that scenario?
    SOAP adapter is correct for the web service scenario
    how do we send back the xml information list?
    You will need to design the XML information list in the Integration Repository on the message interface.
    how can we test that scenario?
    You can use third party Soap UI Client such as SOAP UI Client or XML Spy to try calling the webservice.

  • Problem with ABAP Web service

    Hello Experts,
    Some unusual thing is happening.
    Till this time my scenario was HTTP to RFC. So i have imported RFC in XI and its structure was perfact.
    Tables having cardinality as 1...1, and fields were having cardinalities as 0....1.
    Now we have planned to switch to the proxies and ABAP Web services. I have created the ABAP Web service with the same function module and imported it into the External definations.
    When i am trying to use it into the mapping, Table cardinalities are 1....1 and fields are also having cardinalities as 1...1.
    Now because of that i hv to map all the fields with some constants, but m not comfortable with it as there are nearly 1000 fields.
    Do anyone of you have any idea what might be the problem? or how can i solve it.
    Hope the question is clear.
    Please help in this problem.
    Thanks,
    Hetal

    Hello Hetal,
    This is happening because when you genarte the Webservice out of a Function Module, all the fields in your are mendatory in the generated WSDL.
    This can be avoided. The WSDL that you have generated for your webservice, can be manually edited in Stylus studio etc to change the cardinality and make it optional. We also did the same in one of our scenario and it is working fine.
    As you are mapping these fields with constants, so it doen't make a difference if those are optional too.
    Just edit the WSDL/xsd and reimport it.
    Thanks
    -Kulwant

  • Publish Abap Web Service in ICF virtual host

    Hello
    We have configured our abap aplication server with two virtual host in SICF
    one the default_host that listen in http 8080 port and other virtual host that
    listen in http 8090 port.
    We need define some ABAP web services that listen in default_host:8080  and other virtual host in virtualhost2:8090.
    We define de web service with SE80 wizard and then create the configuration end point
    with SOAMANAGER.
    Our problem is that soamanager ever create the entrie of endpoint in sicf transaction, under default_host:8080 service tree not under virtualhost2 service tree. and so we can not call
    the web service like http://virtualhost2:8090/sap/bc.... because don't exist, only exist
    http://defaul_host:8080/sap/bc....
    we try to copy the entry of the tree under virtualhost2 in the proper place of the tree,
    but when call the webservice with soaui the system report the error:
         No Web service configuration for this access path: ""
    i can see that there are entries in the table SRT_CFG_SRV_ASGN that are related with this
    problem, because assign the url of the endpoint of the ws to virtual host, but i don't
    know how the system generate this entries.
    someone know how call ABAP web service with icf virtual host?
    thanks
    regards
    diego

    Hi Trevor
    For test purpose i can do it works.
    The key point is create the proper entry in the table SRT_CFG_SRV_ASGN that refer to the correct VIRTUAL_HOST.
    When you genreate the endpoint of the service with soamanager, the system generate an entrty in this table with the fiel VIRTUAL_HOST = 0, you can copy this entry and change only two fields.
    VIRTUAL_HOST = <the number of your virtual host>
    HASH --> you can calculate this field with the FM CALCULATE_HASH_FOR_CHAR, in the parameter DATA contatenate the content of the fiels VIRTUAL_HOST and URL (be careful with the upercase), this function module return you the hash.
    (First you have to replicate the icf tree that soamanager create under your virtual host tree)
    With this configuration i can call to my WS over the virtaual host, using soaui.
    I hope this can be useful for you.
    Regards
    diego

  • Authorizations for testing of ABAP Web Services

    Can somebody tell me which authorizations/roles I need to assign to a user with SAP WAS 6.40 ABAP so that he will be able to test a simple ABAP Web Service with the Java Service home page of this service?
    I tried this with the roles SAP_BC_DWB_ABAPDEVELOPER and SAP_BC_WEBSERVICE_ADMIN but this seams not to be enough and I could not find a hint on how I could find out what is going wrong.
    The user gets an error message on the top of the service home page when he submitted the service request:
    "An error has occurred. Maybe the request is not accepted by the server:
    Authority check failed"
    The service is configured with standard authentication. On the service test page the user gets a login screen which he passes successfully. The error occurs afterwards when the services test is executed.
    Many thanks!
    Best regards, Birgit

    Hi,
    1. log on to SAP system with user XXX .
    2. Do your steps to call webservice from JAVA Service home page - use the same user id for log on.
    3. As soon as you see the error message as you mentioned
    Run transaction SU53 in the target SAP system . This should tell you the authority object where the failure had happend.
    Hope this helps.
    Regards
    Raja

  • How to use web service with ABAP Web Dynpro

    Hi.
         do you know, how to web service with ABAP Web Dynpro?

    Hi,
    If you have a webservice ready with you then you can generate a proxy from SE80 and you can use that. You just have to create a port and assign to that generated proxy(CLASS) and you are good to go.
    Let me know if you need more information.
    Thank You,
    Gajendra.

  • Calling an Abap Web Service from IBM WebSphere with a MYSAPSSO2 Cookie

    Hello,
    I have the following problem :
    I have to develop a proof of concept between IBM Web Sphere 5.1 and SAP AS JAVA 7.0.
    I have created an IBM sevlet in Web Sphere, I use a specific redirect from an SAP AS Java to call it, this way I can have a SAP Logon Ticket, and I manage to call an ABAP module function with JCO with SSO.
    Scenario 1 : browser  + authentication --> AS Java redirect servlet MYSAPSSO2 cookie -> IBM WebSphere servlet JCO -> Abap module function (ECC5)
    This scenario works fine.
    I have to do the same scenario with a Web Service and I don't know what to do.
    I try to use jax-rpc handlers but I don't know how to pass my cookie from my servlet to my handler.
    Scenario 2 : browser + authentication --> AS Java redirect servlet MYSAPSSO2 cookie -> IBM WebSphere servlet JCO -> Abap Web Service (ECC5)
    Has someone already done that  ?
    Regards,  Julien.

    Julien,
    Why are you using 5.1....go for 6.0 and its cake walk, i have integrated WebSphere 6.0 with R/3 uysing xi.....in a week.
    Scenario changed to:--
    Browser+ authentication --> WebSphere AS servlet request --> XI --> RFC/bapi --> abap webService
    Hope that helps
    Regards
    Ravi

  • SSO and ABAP Web Services

    I am opening this thread on behalf of my colleague Bala regarding SSO and ABAP Web Services.
    We have gone through single sign on options and found several options are available within 5.0.
    We would like to know the options available for SAP ABAP web services access from a Non-SAP system with user authorization but without Portal/ITS installation.
    Also I would like to avoid any hard coding of user id in Non-SAP system .
    Could you provide any information.
    Thanks,
    Bala

    We have gone through single sign on options and found several options are available within 5.0.
    Tell me what are the several options and what is your Non-SAP system?
    without Portal/ITS installation.
    ITS is now an integral part of ECC 5.0 system. So would not need a seperate installation, unlike earlier versions.
    AB

  • Error while running ABAP web service

    Hi,
    I have WAS 6.4 with ABAP STACK and NetWeaver '04. I created an ABAP web service, it was deployed successfully, but while running it I am getting an error that "Settings for J2EE do not exist".
    Do I need to configure anything to rectify this error....?
    Plz suggest me.
    Thanks,
    Ravindra.

    hello, please i attend too developpe a web service client in java to access to a webservice server PHP, I use axis api, but when i launch my web service client, I receive, all content of the wsdl file from server. please somebody can I help me

  • Call a ABAP Web Service externally

    Hi Experts,
    I have a question on ABAP Web Service:
    is it possible for Company A to call a ABAP Web Service from Company B externally? If yes, how would the it be done? How would the authority be controled? The calling of a Web Service externally, is there anything to do with XI?
    Looking forward to your help!
    Thanks!
    Hua

    Yes it is possible.  It is possible with or without XI (based upon the WebAS release you are on).  WebAS 640 has extensive functionality over WebAS620.  Authority can be controlled in several different ways (HTTP authentication -Basic or HTTPS, Client Certificates, WebService Profiles). 
    There is lots of good on-line help and  a sub-area of Web AS on SDN dedicated to Web Services where you can find many of your answers.
    You can also check out my weblogs.  I have written on the subject of ABAP WebServices without XI several times.  There are real world examples from my compnay.
    One thing that I might add is that that if you are going to call outside of your company's network you will likely have to configure the client proxy settings in transaction SICF.

  • Consuming web services with a java application

    Hello,
    I want to consume an ABAP generated web service with a stand-alone Java application. I am very new to this topic and need some hints how this functionality could be achieved.
    How is the web service accessed by the Java application? What about security issues?
    Thank you in advance for your replies! They will be appreciated.
    Kindest regards

    Hi
    See this Help and Examples
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e2/36a53dc1204c64e10000000a114084/frameset.htm
    Kind Regards
    Mukesh

  • Consuming ABAP Web Service in Non SAP system

    Hi
    I have created an ABAP web service form the RFC and configured it in the SOAMANAGER. I have tested it in Web Service Navigator using the URL and it is working fine.
    Now I am trying to access it from the Non SAP system using Java Code. I am able to access the WSDL using the URL from the step 1 but not able to receive any output when providing inputs.
    So I am not sure if I am missing any configuration on the Provider System (SAP) or on the Consumer system (Non SAP) to access the web service. As far I have not configured anything on the consumer system. Please let me know how to consume the web service in the Non SAP system.
    Thank you,
    Rohit

    not necessarily an answer to your question, but i find that when creating SAP web services, before we create the code for consuming them, I always test them with the SOAPUI package. with this test suite you can import the WSDL, and run individual tests, seeing the input, output, exceptions, etc. This is a good way to check the connection, the flow and the service logic, before writing any code. This will also let you know whether it is a WS issue, or an issue with your code.
    just a thought, from someone who has been there...
    http://www.soapui.org is where you can find the SOAPUI. It helped me out a lot.
    Dave

Maybe you are looking for