Web service to File scenario

hello experts
I would like to know how to configure WS to File Scenario.
(if possible all the steps will be appreciated)
thanks
Kfir

Hi kfir goldwasser,
Here is a scenario i'm explaining webservices(SOAP)  to file scenario step by step:
SENDER SOAP ADAPTER: The sender SOAP adapter is basically used to send content from remote clients or Web service servers to the XI.
To do the end to end scenario let us consider a simple scenario
IR:
1. source data type
2.target data type
3.MT for Both
4.Message interface for both
5.message mapping
6.interface mapping
ID:
1)Define Serder Comunication channel type SOAP.
in DEFAULT XI PARAMETER you must put Message interface and Namespace of serder structure defined in IR
2) Define Receiver Communication channel.
3)define Receiver Determination
3)define Interface Determination
4)Define Sender agreement
5) Define Receiver Agreemen.
6)Active your changes.
DEFINE WEB SERVICE:
7)go to tool>enviroment>define Web services and put this string
http://<Host>:<Port>/XISOAPAdapter/MessageServlet?channel=:<Bussines_System>:<Communication Channel>.
Example: http://srv-xi01-adm:50000/XISOAPAdapter/MessageServlet?channel=:SCR_D:scr_d_soap_customer_sender
8)next step select MI of list
9)en next step you must define your sender BS and Message Interface.
10) Save Web service.
Test ur service with for example XML-Spy
Steps to make a request using the XML SPY:
1. Open the XML SPY, in the menu go to SOAP  Create new SOAP request
2.it will open a new window you will provide the path wsdl file that you have recently save .
3.Click on OK button a new window will be opened which shows the SOAP request
4.In the menu choose SOAP  Send request to server
5.Asynchronous Request: If your request is successful you will receive a SOAP response which will be empty response in an asynchronous request .
to configure file receiver adapter take in mind these blogs
File Receiver with Content Conversion
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
For webservice to file scenario:
Plz Do check the following blog:
Invoke Webservices using SAPXI
In your case, receiver is file.. so you need to create Message Interface etc for the file output..
Also refer this document to understand the steps-
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
For SOAP see below links
RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f222711d10c0
An Overview of SOAP
An Overview of SOAP
http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
Regards,
Vinod.
Edited by: Vinod Reddy on Jul 1, 2008 9:46 AM

Similar Messages

  • Web Service to FTP scenario - MAPPING.NO_MAPPINGPROGRAM_FOUND error

    Hi,
    I am developing a  Web Service to FTP scenario in XI, I am testing the interface by writing a client program using AXIS. when I invoke the service from the client, it is able to hit the service and writing the file to FTP with the data However the client is program  receiving a fault with the below error.
    "SystemError:<context/><code>MAPPING.NO_MAPPINGPROGRAM_FOUND</code><text>Unable to determine name of mapping program</text>"
    I set quality of service to 'Exactly Once' on the SOAP sender adapter.
    Would appreciate any help on this.

    Hi,
    What is the URL to which you are posting the SOAP message?
    Is it?
    http://<host>:<j2ee-port>/XISOAPAdapter/MessageServlet? channel=<party>:<service>:<channel>
    If yes, then like mentioned the QOS is picked from the Sender SOAP adapter.
    But, if the URL is ,
    http://<server>:<ABAP-port>/sap/xi/engine?type=entry&version=3.0&Sender.Service=<YourService>&Interface=<YourNamespace>%5E<YourInterface> 
    Then you need to give the QOS as <b>,&QualityOfService=ExactlyOnce</b> appended to the above URL.
    More, /people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
    Regards
    Bhavesh

  • Web Service to IDoc scenario: No receiver could be determined error

    Hi. I am working on a web service to IDoc scenario. I am receiving this error:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Identification
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I've taken the XML message being sent to me and tested the mapping and I've completed the test configuration in the IB. Both work fine. Any ideas? I've been looking into this for a couple of days, so I've been through all the previous posts I could find.
    Thank you.
    Nicole

    hi,
    This is not related to receiverdetermination ,whether you creaeted or not.
    It is somthing related to receiver systemwhich was configured in Receier determination.
    check the target BS is correct or not or the inbound interface.
    Did you configured the proper receiver technical system..
    OR
    Check the Receiver Determination is configured correctly. i.e R/3
    Verify all the configurations like SM59, Partner Profile/Logical systems. etc. Also check in SM58 of R/3 system.Make sure that All the objects are activated in the Directory.Refresh the cache.Verify is the business system is pointing to correct R/3 system . Go to Business system/Service->Menu->Adapter specific identifiers in the directory
    You can test your configuration with sample
    payload.
    In ID goto to TOOLS -
    > Test Configuration for testing.
    Hope in this way you can still find at which point the interface goes wrong.

  • (261936172) Q general Where are the Web Service source files?

    Q <general> Where are the source files for a Web Service created
    with WebLogic Workshop stored? How do I deploy the Web Service
    on a different WebLogic Server? Is there a way to bundle the
    Web Service project files manually to distribute them?
    Is there a way to configure the directory where Workshop stores
    the files?
    ANSWER: (by Adam Fitzgerald, [email protected]) The .jws files are stored
    in the project folder. This can be located on a local system, although by default
    they are in c:\bea\wlserver700b\sample\workshop\applications. The Web Service
    structure is understood by WLS 7.0 so by archiving the appropriate folder you
    can transfer the Web Service in its entirety from one deployment to another.

    Hi Dean,
    In SharePoint 2013 Designer, the help files are online. They provide tons of general information regarding SharePoint Designer 2013.  You can also find help files at:
    http://technet.microsoft.com/en-us/library/jj219638%28office.15%29.aspx .
    And find a great set of information on SPD 2013 and the new Workflow architecture here:
    http://msdn.microsoft.com/library/office/jj163986(v=office.15)
    More information, please refer to the link:
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/08/07/welcome-to-sharepoint-designer-2013-customer-preview.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Web Service mapping file

    You will be greatly appreciated if you can help me on following question:
    In a web service mapping file, under <java-xml-type-mapping> element, either <anonymous-type-qname> or <root-type-qname> is valid element according to schema. My question is which one should be used under which situation?
    Thanks,
    Michael
    ===========
    Mapping file
    ===========
    <java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"
    version="1.1">
    <package-mapping>
    <package-type>test</package-type>
    <namespaceURI>http://test/</namespaceURI>
    </package-mapping>
    <java-xml-type-mapping>
    <java-type>test.Status</java-type>
    <anonymous-type-qname>{http://test/}Status</anonymous-type-qname>
    <qname-scope>complexType</qname-scope>
    ==========
    Schema
    ==========
    <xsd:sequence>
    <xsd:element name="java-type" type="j2ee:java-typeType">
    <xsd:annotation>
    <xsd:documentation>The java-type element is the fully qualified class name of a Java class, primitive, or array type.</xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    <choice>
    <xsd:element name="root-type-qname" type="j2ee:xsdQNameType"> <xsd:annotation>
    <xsd:documentation>The root-type-qname identifies the WSDL QName of an XML type.
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="anonymous-type-qname" type="j2ee:string">
    <xsd:annotation>
    <xsd:documentation>The anonymous-type-qname identifies the WSDL QName of an anonymous XML type.
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    </choice>

    I am stuck here with the same problem - don't know what to do with the (required) Mapping File.
    Has anyone found out?
    Please let me know.
    Best,
    Philipp
    [email protected]

  • WEB SERVICE TO ORACLE SCENARIO

    Hi all,
    I have to develop a web services to Oracle scenario. My problem is that I need to executed selects and stored procedure at runtime in the mapping. I mean that i need to check some values from the inbound during the mapping execution I did that before in Sap R/3 but i don´t know how to execute it in a Database.
    Many thanks for your help!!!
    Regards
    Noelia

    hi,
    you can use standard API to do this lookup in
    the mappings:
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Dashboards web service config file set up

    I am new to dashboards and want to understand, how do we make a web service connection to the dashboard?
    We previously had the web services set up and never got a chance to set it up, but now there is a need to set it up in our own machines.
    The issue exactly being faced right now is:
    we tried setting up the web service config file and it works when we execute it ( i.e. I get a URL) but it comes as
    http://localhost:2910/QueryService.asmx
    which we tried using as  " http://localhost:2910/QueryService.asmx?wsdl " in the dashboard connection manager and i am able to get the methods (runSQLQuery etc).
    When trying to see the dashboard in the bo Infoview, we get the below error:
    To access external data, add a Cross Domain policy file  to the external data web server.
    Please help me in understanding the issue and significance of all these things.
    Any help would be appreciated.
    Thanks,
    Khushboo

    First of all change localhost to proper host name or IP address in connection.
    You need to place crossdomain policy file in the root of the web server. Please check this for details:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40c58930-c78f-2f10-cf82-8b90999065cc?overridelayout=t…
    http://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html

  • Merging web-services.xml files

    Good day,
    Is there an easier way to merge a custom web-services.xml file with the
    one generated by servicegen? It makes it very difficult to have a clean
    build when you have to go in and edit the web-services.xml to add your
    own types.
    Thanks,
    Sean

    This is no good tool to merge web-services.xml.
    You can run servicegen once and get the web-services.xml file, then modify
    it as you need.
    In your automatic build process, run autotype, then use wspackag to package
    your customized web-services.xml.
    Thanks,
    -Neal
    "Sean Garagan" <[email protected]> wrote in message
    news:[email protected]..
    Good day,
    Is there an easier way to merge a custom web-services.xml file with the
    one generated by servicegen? It makes it very difficult to have a clean
    build when you have to go in and edit the web-services.xml to add your
    own types.
    Thanks,
    Sean

  • Why i am I getting Error (5,8) TestCas for a Web Service Test File Generate

    why i am I getting the following error for a Web Service Test File Generated by jdeveloper when i run it:
    Error (5,8) TestCase not Found
    Error(12,14):constructor Object(java.lang.String) not found in java.lang.Object

    actually i removed that error by added the junit.jar to my libraries but i am getting a new error when accessing the webservice with a Jdev generated web service proxy:
    WARNING: Unable to connect to URL: https://mytest.test.com/WebService/MyTest_1.0/soap.soap due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
    java.rmi.RemoteException: ; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
         at project7.proxy.runtime.MyTestSoapBinding_Stub.echoOfficeLocation(MyTestSoapBinding_Stub.java:11977)
         at project7.proxy.MyTestClient.echoOfficeLocation(MyTestClient.java:1276)
         at project7.proxy.MyTestClient.main(MyTestClient.java:38)
    Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:174)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:150)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:176)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:113)
         at project7.proxy.runtime.MyTestSoapBinding_Stub.echoOfficeLocation(MyTestSoapBinding_Stub.java:11961)
         ... 2 more
    Process exited with exit code 0.
    looks like something to do with the certificate or keystore... how do you add the keystore to JDev.. i tried the JDK cacert but that doesnt work...

  • Importing test data into "Web Service Navigator Test Scenario" fails

    Hello,
    I'm using NW 7.2 Java and have the following problem: when I try to import a XML file containing test data as scenario in the web service navigator and when I execute the scenario or just click on the details of on entry, all input parameters are gone except the first one!
    The XML file was created by the web service navigator itself. I added a few sample web service calls using the web service test function and exported the resulting scenario afterwards. The XML file looks like this (some parameters blackened):
    <?xml version="1.0" encoding="UTF-8"?>
    <rn1:services WSILURL='' xmlns:rn0='java:sap/standard' xmlns:rn1='http://www.sap.com/webas/2007/02/ws/wsnavigator/' xmlns:rn3='http://schemas.xmlsoap.org/soap/encoding/' xmlns:rn2='http://www.w3.org/2001/XMLSchema'>
      <rn1:service name='OrderService' namespace='http://test.sap.com/Scenario/OrderService/' WSDLURL='host:port/sapws/scenario-processes-models_OrderService/OrderService_SAP_DEFAULT_PROFILE_Service/HTTPAuthOverHTTP_1?wsdl&amp;mode=ws_policy'>
        <rn1:operation name='receiveOrder'>
          <rn1:input>
            <Customer>Customer1</Customer>
            <Product>Product1</Product>
            <Quantity>100</Quantity>
            <DeliveryDate>2010-08-19T14:06:24.691+02:00</DeliveryDate>
            <BlockedOrder>false</BlockedOrder>
          </rn1:input>
          <rn1:output></rn1:output>
        </rn1:operation>
        <rn1:operation name='receiveOrder'>
          <rn1:input>
            <Customer>Customer2</Customer>
            <Product>Product2</Product>
            <Quantity>200</Quantity>
            <DeliveryDate>2010-08-19T14:06:24.691+02:00</DeliveryDate>
            <BlockedOrder>false</BlockedOrder>
          </rn1:input>
          <rn1:output></rn1:output>
        </rn1:operation>
      </rn1:service>
    </rn1:services>
    Thanks in advance for any comments on that issue!!!

    Hi
    Hi,
    You can use XML editors like XMLSPY to send the SOAP request or SOAP client tool provided by SAP for this purpose.
    SOAP client- https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/downloads/tools/sap%20nw%20application%20server/sap%20soap%20client%20tool%20download.abst
    Various methods to Testing SOAP
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7ccd3e4e-0501-0010-95ae-afa58cb46b75
    http://www.soapui.org/gettingstarted/your_first_soapUI_project.html
    Hope it helps,
    Regards,
    Abhishek

  • Deploying web service ear file

    Hi,
    I've developed a simple web service using NetWeaver Developer studio 2.0.5 and created an .ear file for deployment to SAP WAS 6.2.  While trying to load ear file from the deploy tool it throws an error - "Unable to load ear file".  Has anyone seen this error before?  Any problems with the NetWeaver and SAP WAS versions? Any suggestions on how to deploy a web service on SAP J2EE 6.2?

    Hi Dipesh,
    well, if you are using J2EE Engine 6.20 you cannot deploy directly from the NetWeaver Developer Studio (as far as I know, this feature is available only after 6.30/6.40 versions).
    Also, web services are only partially implemented on J2EE Engine 6.20! So it is possible that the web service you've developed with the Developer studio depends on features that are not available on J2EE Engine 6.20. My recommendation is to give a try to the J2EE Engine 6.40, if possible for you at all.
    Finally, there is an alternative to Deploy Tool for deployment on the J2EE Engine 6.20. This is the DEPLOY shell command that you can execute in the server console. For more info about that, refer to the Shell Commands Reference section in the Administration Manual for J2EE Engine 6.20 located here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/administration manual for sap j2ee engine 6.20.pdf
    Hope that helps!

  • Reading an xml file in the web services java file

    I want to read some data in the webservices file.so i am writing my own xml file through which i want to read data.but i am not able to read xml file from web services file.also , i am not able to put xml file in the .ear file,as there is no such tag in servicegen script through which i can add xml file in the .ear file.
    i know in case of servlets,i will specify context-param attributes in web.xml,and i can access those in my servlet.can i do anything like this for webservices,and i am not using any servlets for web services.
    kindly tell any solution.

    One possible option to parse an xml-file to a flex XML object:
    public function parseConXML(source:String):void
                    xmlLoader = new URLLoader();
                    xmlLoader.load(new URLRequest(source));
                      // Eventlistener: if URL loaded --> onLoadComplete function
                      xmlLoader.addEventListener(Event.COMPLETE, xmlLoadComplete);
                public function xmlLoadComplete(evt:Event):void{               
                    var xml:XML = new XML();
                     // ignore comments in XML-File
                    XML.ignoreComments = true;  
                       //ignore whitespaces in XML-File
                     XML.ignoreWhitespace = true;
                    // XML-Objekt erstellen
                    xml = new XML(evt.target.data);
                   //AFTERWARDS use your xml as your wish

  • SAML2.0 for web services - sender-vouches scenario

    We would like to configure this scenario using SAML2.0 assertion tickets. We are on ECC 6 EhP6.
    Configuration in SAML2 has been completed - no WS security policy has been configured in order to support the sender-vouches scenario.
    WSS_SETUP has run to use SAML.
    When configuring the web services we are using https for transport and SAML for authentication - the wsdl generated in this case references SAML1.1 and as result we get an error of  Wrong token type received. Endpoint expects SAML 1.1 token.
    The question is: can SAML2.0 be used for sender-vouches scenarios or not?
    Any input or help would be greatly appreciated.
    Thank you,
    Miklos

    Hi Miklos,
    Yes you can use SAML2.0 for Sendor-vouches scenarios.
    Please see the below link for configuration process:
    http://help.sap.com/saphelp_nw73/helpdata/en/b5/014086933d4576bba1b4c7e9533f4b/content.htm
    I hope it will be helpful for you.
    Regards,
    Gourav
    Message was edited by: Gourav Kumar Jena

  • Web Service WSDL File Generation

    hello everybody, I have an outbound interface with sender soap adapter to work as a web service, I tested it by generating the wsdl file in the integration directory, and I tested it with altova xmlspy and it works really fine, but now I have a problem another aplication needs to call the webservice, but when they try to import the wsdl file it turns out that in their system they can only import rpc files and not document style files, is there a way to generate a RPC file from an xi interface, or is there a third tool to do this conversion, or what needs to be done, has anyone found this problem before??? thanks in advance.
    Regards,
    Julio Cesar

    Hi ,
    As far as I am aware of ...
    3 SOAP encoding styles are there :
    SOAP Remote Procedure Call (RPC) encoding, also known as Section 5 encoding, as defined by the SOAP 1.1 specification and later defined in SOAP 1.2 as RPC encodings and conventions
    SOAP Remote Procedure Call Literal encoding (SOAP RPC-literal,) uses RPC methods to make the call but uses an XML do-it-yourself method for mar-shaling the data.
    SOAP document-style encoding, also known as message-style or document-literal encoding.
    Kindly Check this Link out
    http://msdn.microsoft.com/msdnmag/issues/03/05/XMLFiles/

  • Trouble compiling web service client file

    Hi,
    I am trying to deploy a test web services implementation on JBoss 3.2.1 and Axis 1.1RC2. The problem is, I cannot even compile my client code (the one that invoke the web services)...it seems that the java compiler cannot locate the following packages:
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    even though I have set my classpath (in the environment var part of my Win2k box) to: C:\axis-1_1RC2\lib\axis.jar;C:\axis-1_1RC2\lib\jaxrpc.jar;C:\axis-1_1RC2\lib\saaj.jar;C:\axis-1_1RC2\lib\commons-logging.jar;C:\axis-1_1RC2\lib\commons-discovery.jar;C:\axis-1_1RC2\lib\wsdl4j.jar;C:\axis-1_1RC2\lib\;C:\axis-1_1RC2\[rest of classpath truncated]
    Has anyone experienced something similar? I'll award Duke dollars to the first person getting the right solution. Thanks!
    Here are the error messages:
    C:\web_clients>javac DataUserClient.java
    DataUserClient.java:1: package org.apache.axis.client does not exist
    import org.apache.axis.client.Call;
    ^
    DataUserClient.java:2: package org.apache.axis.client does not exist
    import org.apache.axis.client.Service;
    ^
    DataUserClient.java:3: package javax.xml.namespace does not exist
    import javax.xml.namespace.QName;
    ^
    DataUserClient.java:26: cannot resolve symbol
    symbol : class Service
    location: class DataUserClient
    Service myWebServ= new Service(url, "StandardPersonData");
    ^
    DataUserClient.java:26: cannot resolve symbol
    symbol : class Service
    location: class DataUserClient
    Service myWebServ= new Service(url, "StandardPersonData");
    ^
    DataUserClient.java:27: cannot resolve symbol

    Hi,
    I had the same problem with my client too. The problem is with your classpath. You have to set it at the command prompt as well as editing the setclasspath.bat file. The full path to where you libs are stored is required. eg:
    set classpath=%classpath%;C:\axis-1_1\lib\axis.jar;C:\axis-1_1\lib\jaxrpc.jar...etc
    I tried to set the classpath using %axisDirectory%\lib\axis.jar ...etc but it didnt work for whatever reason. The above method seems to eliminate all errors. At the moment im just running axis 1.1 under tomcat 4.1.
    Hope that helps :-)

Maybe you are looking for