Defining webservice?

Hi All,
Currently i'm working on Webservice->XI->RFC scenario and while defining webservice in ID we define provide values for the following URL.
http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
my question is wht are the values do we need to provide for Host & Port and from where i can get values for these fields?
Regards
Sami

Hey,
these are the steps for defining and deployinh web service.
these are the steps in your NDS
Step 1)
     Goto Windows->Open Perspective->J2EE development.
Step 2)
     Goto File->new->Ejb module(give project name).
Step 3)
     Right Click on the <project name> eg. work_ejb select new->Ejb.
Step 4)
     Give an appropriate EJB name and default package (eg. com.xxx.yyy).
     Also select stateless Ejb.
     Click next then next and then next.
Step 5)
     Add method with an appropriate name.
     Mention the return type and also assign the required parameters.
     Logic is written in the EJB module bean.
Step 6)
     Right click on the <project name> and build.
     Creates .jar
Step 7)
     Goto File->new->Enterprise Application project(to create EAR)
Step 8)
     Give project name, assign EJB and build.
     Creates EAR.
Step 9)
     Right Click on the EJB.
     Goto new->Web services.
     Specify name of the web service.
     Specify EAR in the WEB service.
Step 10)
     Build EAR.
     Build Ejb.
Step 11)
     Goto Windows->Prefrences->SAP j2EE engine.
     Give the message server host name.
Step 12)
     Right Click on EAR and deploy.
Step 13)
     Goto-> http://<host name>:<port no.>/index.(of your WAS on which you have deployed web service)
Step 14)
     Choose the web service name,test it and download it(default WSDL).(This will include the entire URL including the host name and port)
Step 15)
     Import port(WSDL) in External definition of SAP PI.
reward points if useful.
regards,
       Milan

Similar Messages

  • Why Define WebService system occur error in VC7.0?

    i used SDN How-to document <Creation of VC Model Using Exchange Rate Web Service>.
    iVC7.0>tools->define web services), i use webservices URL :http://www.webservicex.net/CurrencyConvertor.asmx/WSDL
    but VC7.0 System display Failure.
    error info: Invalid web service URL .
    how to solve this problem,pls help me.3ks.

    Hi,
    the WSDL file is not accessible; try this one:
    http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
    should work now.
    best regards,
    Andreas

  • Define WebService System

    Hi,
    I have a lot's of problem with the defined ws systems.
    The origin is that, as I understood, I have to define a WebService System each time I update the webservice definition else VC don't see the modifications.
    Actually, I have today multiple systems pointing to the same webservice. (I tried to delete them in portal System Administration/System Configuration/Content/Visual Composer but I wonder if I didn't break something !?)
    Could you help me to delete thoses systems and maybe explain me how to force VC to read the wsdl definition if updated ?
    thanks a lot,
    Thomas.

    Hi Thomas,
    If you are using EP6 or later, there is a way of clearing the PCD cache (which includes cached metadata from RFC, JDBC or web service connections).
    If you navigate to System Administration > Support > Portal Content Directory > PCD Administration, you will see a screen which allows you to either remove specific objects from the cache, or to flush the entire PCD cache.
    If you then close all Internet Explorer windows and log into VC again, you should see the updated WSDL.
    This is also mentioned in SAP Note 868887.
    Regards,
    Sascha

  • How to define the Webservices in except through WebDynpro.

    Hi friends,
                     Can anyone tell me about how to create the webservices?[ except in Webdynpro.].
      We want to give the input data as userdefined way, not in a file. can u tell me how to proceed ?

    Hi,
    Creation of webservice in XI
    Step 1:
    Create the DT,MT & MI(Synch/Asynch-outbound/Inbound)
    step2
    Create webservice for sender ( Integration Directory ->tools ->define webservice.
    It will generate the webservice and save it as .wsl file.
    " Award points if helpful"
    Regards,
    Jayasimha Jangam

  • How to use Webservice in Visual composer

    Hi,
    We have developed a RFC in R3 and converted it into Webservice. We want to use this in the Visual composer. Can anyone suggest some steps how to use this RFC in Visual composer?
    I tried the option in Tools--> Define webservice System and gave the following parameters:
    new system name = WDP (system name which we use)
    new system alias = WDP_VC (system alias which we created)
    webservice url = URL of the webservice which we have created and got in WSDL
    when we create it gives an error the URL is incorrect.
    Kindly let me know if these values are correct and suggest the steps to be followed. Also, if there are any prerequiste steps to be done before using this webservice.
    Thanks and Kind regards,
    Rajbarath.

    Hi,
    The option you described refers to defining a new web service system in the portal system landscape. So if you already have it defined - you don't have to define it again.
    As for the actual error you're getting, check that:
    1. The url is indeed accessible, and points to a wsdl. You can do this by simply inserting it in the browser's address bar and making sure you get a wsdl file in the response.
    2. Make sure that you don't need to authenticate, i.e. provide a user and password. Maybe you just forgot to provide these arguments.
    Lastly, keep in mind that this 'Define Web Service System' option is just a shortcut. Generally, you would define a web service system in the portal, like any other system, using the web service connector.
    Hope this helps,
       Lior

  • Need Inputs - Creation of webservice in SAP R3 through PI

    Hi Experts,
    Need inputs that my client wants me to  create an webservice in SAP/R3 through PI and they (client) will call it by  their 3rd party software.
    Webservice contain fields like :- Comany_Code, Location_Code,Item _code etc.
    SAP -
    > PI ---> 3rd party
    Is this possible through PI ? Please comment !
    Thanks.

    Hi,
    If you have such kinda requirement , then it is easy to create WSDL(webservice) on PI System..
    Create a normal Xi Interface with normal Steps .....
    Your Sender DataType will be acc to Your requirement as clients want...
    go to tools - Define webservice ... ( will Use Outound Service Interface and namespace)
    read the template and Put values in there . This will genrate a WSDL for you , 
    You Can give this Genertaed , WSDL File to Client to consume in their application and Pass data to it ..
    Hope it helps ..
    Regards
    Prabhat Sharma.

  • Webservice Connection error in PI 7.1

    Dear all,
    I got the following error , when im tring to post the SOAP request. It is SOAP to RFC synchronous scenario .
    [ HTTP operation 'POST' could not be performed on URL'/XISOAPAdapter/MessageServlet? channel=:servicexxx:CCxxx' due to an error: A connection with the server could not be established. ]
    we are using remote desktop connection to work with all xi java stack, here we have  developed IR and ID object . and using local machine for abap stack ..like moni, smq1 etc.
    Is it the problem ?
    Vijay

    Dear all,
    whats the URL we have to mention  in webservice.
    1)http://host:50100/XISOAPAdapter/MessageServlet?channel=:service:CCxxx
    or
    2) the proposed URL when we are defining webservice in ID .
    "https://host/XISOAPAdapter/MessageServlet?senderParty=&senderService=BSXXX&receiverParty=&receiverService=&interface=SI_XXX&interfaceNamespace=httpXXXX
    -Drumi

  • How to combine multiple webservices into one WSDL file

    Gurus,
    I have 4 four webservices(ws1,ws2,ws3 & ws4) defined in XI. Normally in XI when we define webservice ,WSDL file will be generated for each interface. Now I have 4 related interfaces, so 4 WSDL files will generated. Suppose if I have 100 webservices then 100 WSDL files need to be generated & need to send to other party to consume our services, which is very tedious task & to track also. So is it possible to combine related webservices into one WSDL file? Your inputs will be highly appreciated.
    Regards,
    Santhosh

    Hi,
             Instead of trying to combine the interfaces, you can try to define your interface mapping with 4 sender interfaces with in one interface mapping . I think this may give you the result you are expecting.
                      If you want entire content to be in one interface , then, define single interface which can accomadate, all message ocntent of all 4 interfaces.Means your sender message to contain the 4 datatypes internally.
    Regards,
    Reyaz

  • TREX - search via webservice call

    Hi All,
    We would like to access the trex functionality to search in the ECC DMS (Document Management System) via a webservice call.
    I could not yet find any standard defined webservices for this purpose.
    Can anyone tell me whether what I'm searching for exists?
    Kind regards
    Joris

    Hi Joris,
    there are Webservice APIs on the level of EP-KM (here called IMS for "index management services") and on the level of SAP NetWeaver Enterprise Search. The TREX engine itself does not expose any APIs for project development.
    Best, Karsten

  • How to publish WSDL as Webservice in XI 3.0

    Hello,
    My Scenario is  SOAP --XI -- R/3(Proxy). XI version is XI 3.0 and SAP R/3 4.7
    Generated a WSDL for SOAP Sender(ID>Tools>Define webservice)
    I want to know  how can i publish this  WSDL as webservice.
    Appericiate your help.
    Srinivas
    Edited by: Srinivas on Apr 20, 2010 11:42 AM

    Generating the WSDL file (as you have already done) and then providing it to the sender application so that they send the message according to the format and to the target URL (your PI system) means that you have published your WSDL.....and this logic remains the same till the latest available version of SAP XI/ PI.....just that when you say SAP PI7.1 it is only addition of functionality on how the WSDLs are published.
    the application team is not required to publish the WSDL....they are required to consume it.
    Regards,
    Abhishek.

  • Testing Webservices in XI with XML Spy

    Hi ,
          I am trying to define a Webservice in XI from the ID by going to Tools -> Define Webservice( the usual way ) and I got the WSDL.I am trying to use the same from XML Spy to send SOAP messages to XI.But there is something wrong in the link generated.Does somebody has a prior exp or idea about what needs to be done exactly to get it running.
    Regards,
    Sudip.

    Hi Bhavesh,
                        I was trying the second option to send it to the integration server directly. But the error which I get it as follows
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP:Body>
              <SOAP:Fault>
                   <faultcode>SOAP:Server</faultcode>
                   <faultstring>System Error</faultstring>
                   <detail>
                        <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context/>
                             <code>RCVR_DETERMINATION.MESSAGE_INCOMPLETE</code>
                             <text>Message is incomplete. No Sender found</text>
                        </s:SystemError>
                   </detail>
              </SOAP:Fault>
         </SOAP:Body>
    </SOAP:Envelope>
    But this is a working scenario.
    link which is generated is as follows
    http://bsw6220:51000/sap/xi/engine?type=entry&version=3.0&Sender.Party=http%3A%2F%2Fsap.com%2Fxi%2FXI%3AXIParty%3AAttachmentAdapter&Sender.Service=LockBoxFileCreationAtProvider&Interface=http%3A%2F%2Fsap.com%2Fxi%2FAP%2FGlobalization%5EUS_BAI2_IN_INTERFACE
    Any idea what went wrong?
    Regards,
    Sudip.

  • Webservice-- XI -- R/3

    Hi!
    I'm really new in XI and I need to make a scenario webservice --> XI --> R/3 (synchronous).
    SOAP from webservice to XI and XI adapter from XI to R/3. I need help with configuring SOAP adapter communication channel. I've tryed to use this https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    but it did not help. I don't know do I need both sender and receive SOAP adapter or just sender because it is synchronous and what is target URL in receiver SOAP adapter and where do I find it if I need it.
    Will appreciate any help.
    Thanks in advance,
    Snj

    Hi,
    This got it all..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
    If at all you have uploded wsdl file for the webservice you no need to create data types for the same even for the same as RFC also.
    Create message mapping and drag the wsdl file which you have imported as External Definiations and there you will be having request and response parameters..Do the mapping accordingly(according to your requirement).
    Mapping like:
    Wsdl(Request)XI>RFC (Input parametrs)
    RFC (out parameters)XI-->wsdl(Response)
    Create message interface with Synchronous for outbound
    No need of DT,MT if at all if you import the wsdl file.
    If incase the wsdl is not provided then you need to create DT, MT and have to  Define Webservice as below
    /people/sap.user72/blog/2005/11/17/xi-how-to-publish-wsdl-generated-from-xi-to-uddi
    Hope i am clear.
    Please let me know if you have any queries..!
    Please refer for SOAP >XI->R/3
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    /people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
    soap to soap scenario
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    sap to webservice
    /people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies
    Thanks
    swarup
    Edited by: Swarup Sawant on Mar 18, 2008 12:05 PM

  • Publishing XI exposed webservices in the UDDI Server of SAP WAS JAVA 640

    Hi Friends,
        I have a question regarding publishing a WSDL created via XI (Integration Directory) to a UDDI Server of SAP WAS JAVA 640. Can I publish the WSDL generated from XI in the UDDI Server provided as a part of SAP WAS 640 ?  I know that the WSDL will be specific  for a client( sender) but I feel that its better than emailing the WSDL to the client after generating it in the integration directory. Any relevant documents, links explaining how to do that will be appreciated.
        The above question was asked by Siva Maranani before. His question was as below .
    "I know that whenever a webservice is developed using NDS it can be deployed in WebAs and the same can be registered in UDDI ( webAs acting as UDDI registry).
    Now my requirement is to register a WSDL file (which describes) for an external webservice. Can WebAs be used as a UDDI registry..?
    I like to know if this is possible or not..? if yes.. how..?"
    Waiting for the reply...
    Thanks & Regards,
    Mathew

    Hi Naveen,
               Thanks for the quick response. I tried the steps mentioned in the link.
    1. Successfully created a new local UDDI registry in SAP WAS..
    2. Assigned users etc.
      The place I am getting stuck is..
    "Make sure that the Web Service Definition has already been created and configured".
    I have a WSDL document created via Define webservice in the XI integration directory.(We are successfully able to call the webservice using this WSDL via .net & xmlspy)
    Where should I upload this WSDL ? so that the users will able to download/reference it w/out myself emailing to them.We dont/won't have NDS installed in our landscape.
    I understand that whenever a webservice is developed using NDS it can be deployed in WebAs and the same can be registered in UDDI ( webAs acting as UDDI registry).
    The requirement is to register a WSDL file generated via XI w/out using NDS.
    Did you able to  publish a WSDL file generated via XI in the local UDDI w/out using NDS ?
    waiting for your reply
    Thanks a lot,
    Mathew

  • Java application -- webservice ---   XI  ( RFC )  ?

    Hi friends ,
                <b>        My scenario is like I want  via web service  I need to pass request to RFC and get the response back . This calling webservice is external java application .</b>
                       Can u please tell me What steps i  have to do in XI  ?
                       I have to do synchronous Interface between RFC and webservice right ?
                       <b>First I have done  this scenario  by  designing IR  and in Configuration I have used SOAP Sender and RFC Receiver adapter .  Using Synchronous Interface</b>
                       Using Tools -- > Define WebService . I have Defined that   as WebService . I has creatd the WSDL File for me.
                       I have  given the SWDL file and the URL like the following
      http://xidev:8021/XISOAPAdapter/MessageServlet?channel=:BS_DISTANCE_CHECK_SOAP:CC_DistanceCheck_SOAP_Sender
                            If i copy and paste this URL in my pc .It is showing the Message Servlet  Status OK . and some informations also it is giving .
                      But the java guys try to use this URL in their web service calling module it is not working .
            <b>          The way what i have done is corret ?</b>  or something i have to do ? 
                   <b>   What input i have to give to Java Guys to call the webservice ?</b>
                           Can you please give your suggestions asap
    Best Regards .,.
    V.Rangarajan

    Hi Bhavesh  ,
                      Thanks for your reply.
                   Then  that URL and WSDL File  Which i have given to the Java guys is  enough ?
                    I  have one doubt .I don't know  much about  the webservices .
                    Don't we need SOAP Receiver Adapter for this ?
                    How the external application will get back the result ?
    Best Regards .,
    V.Rangarajan

  • Create an XI webservice and import it to the NWDS

    Hi all,
    i created a webservice via the "define webservice" option in XI/PI. But when i try to use it in my NWDS the following error occurs:
    Exception on creation of service metadata for WSDL URL ......
    I read multiple threads and blogs about defining a webservice via XI but perhaps i still made something wrong.
    The XI scenario is an IDOC (ORDERS.ORDERS05) in xml format that lays on a server. By a senderagreement it is importet to XI. From there the receiver businesssystem sends it to the R3 system.
    How would you create the webservice in XI? Let's say the outbound interface is called MI_ORDERS_OUT. As the inbound interface i use the IDOC "ORDERS.ORDERS05".
    Sorry but i've really got no idea whats wrong with the created webservice. A pre-defined webservice like the google.wsdl works fine.
    Thanks and Regards,
    Steven

    Hi Hui, hi Chilla
    thanks for your answers but thats what i did.
    At least i'm wondering why i can't import the created webservice in my NWDS. It always aborts with the error mentioned above.
    Perhaps i'll describe what i did to create the webservice. The XI interface is running accordingly. But now i want to start the interface in my NWDS in a WebDynrpo application using a webservice which is created in XI.
    The outbound interface is:  MI_SO_IDOCTEST_ORDERS_OUT
    inbound interface            :  ORDERS.ORDERS05
    communication channel  :  SO_IDOCTEST_ORDERS_FILE_OUT
    SOAP sender channel    :  SO_IDOCTEST_SOAP_OUT
    (configured with interface name : MI_SO_IDOCTEST_ORDERS_OUT and
                           interface namespace :  http://sycor/xi/sotemp02)
    In "define webservice" i entered the following values:
    SOAP URL                    :  http://sygosrv02:50000/XISOAPAdapter/MessageServlet?channel=:BS_SOTEST_T:SO_IDOCTEST_SOAP_OUT
    Specify the interface       :  MI_SO_IDOCTEST_ORDERS_OUT
    the next vaules are not needed for the SOAP adapter as i understood, so i filled anything in.
    Perhaps I'm trying to do a scenario that won't work in this way, but what do i have to change to make it work?
    Thanks and regards,
    Steven
    Edit:
    basicly i want to do this:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555
    but the import of the created XI webservice does not work. And now i have no idea why i can't even import it. Is it because of the interface message type which is of course ORDERS.ORDERS05?
    Message was edited by:
            Steven

Maybe you are looking for

  • Output type WMTA not Determinig

    The message WMTA for creating Automatic TO Confirmation in cross-docking deliveries is not determined reliably. The message is not directly determined during goods reciept posting from the receving warehouse (as should be the case) but only after you

  • Information to user who creates PR for spare parts & service PR from order.

    Hi experts, Is there any standard workflow available by which the maintenance user will get message in his SAP inbox , whether material has been recieved for the Purchase requisition created through maintenance order as well as manual PR by t-code ME

  • Modification Check

    Dear All, i Have an issue in which in standard FI transaction FBL5N when i see in development on pressing of " dynamic Selection Tab " on the first screen of FBL5N i get different screen as compared to test or production now according to functional i

  • Why do some  ipod cases have two holes on the top

    Why do some ipod cases have an extra hole next to the camera hole?

  • Unable to download loops after re-install of OS

    I had just ran the software update, downloaded the package, then I re-installed my OS. I am now on 10.8.2, and can't download the loops! Apple software update says I am up to date!