How to convert XML file to WSDL file

Hi SAP gurus
I am trying to create a wsdl file from a BAPI.
I have followed all the steps and finally using transaction WSADMIN, I create the webservice. When I select SAVE AS (in the explorer window) it gives me an option with .XML.
However, when I try to bring it up in Altova XML spy so that i can test it by calling this webservice (SOAP call) looks like the wsdl doesn't ahve the necesarry header etc.,
Is there a tool to create wsdl out of this xml. Any help will be highly appreciated.
Tks
Ram

Thanks Lim for the response
Yes I have already done that. I even used 'wsconfig' and 'wsadmin' and as the last step it displayed the wsdl file in the interent explorer and that is when I did File -> SAVE AS and created a .XML file.
When I open this from ALTOVA XML SPY, to test the webservice, it gives me the error as follows
"Could not find a definition element in the WSDL file"
Following is the FILE THAT I AM USING IN ALTOVA
=================================================
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <SOAP-ENV:Body>
          <m:ZBAPIQC xmlns:m="urn:sap-com:document:sap:rfc:functions">
               <CONVERT>X</CONVERT>
               <LS_BEHAVE_WHEN_ERROR>P</LS_BEHAVE_WHEN_ERROR>
               <LS_QUOTATION_CFGS_INST>
                    <item>
                         <CONFIG_ID>000001</CONFIG_ID>
                         <INST_ID>00000001</INST_ID>
                         <OBJ_TYPE>MARA</OBJ_TYPE>
                         <CLASS_TYPE>001</CLASS_TYPE>
                         <OBJ_KEY>C-1100</OBJ_KEY>
                    </item>
               </LS_QUOTATION_CFGS_INST>
               <LS_QUOTATION_CFGS_REF>
                    <item>
                         <POSEX>000010</POSEX>
                         <CONFIG_ID>000001</CONFIG_ID>
                         <ROOT_ID>00000001</ROOT_ID>
                    </item>
               </LS_QUOTATION_CFGS_REF>
               <LS_QUOTATION_CFGS_VALUE>
                    <item>
                         <CONFIG_ID>000001</CONFIG_ID>
                         <INST_ID>00000001</INST_ID>
                         <CHARC>TEST</CHARC>
                         <VALUE>ABC</VALUE>
                    </item>
               </LS_QUOTATION_CFGS_VALUE>
               <LS_QUOTATION_HEADER_IN>
                    <DOC_TYPE>QT</DOC_TYPE>
                    <SALES_ORG>1000</SALES_ORG>
                    <DISTR_CHAN>12</DISTR_CHAN>
                    <DIVISION>00</DIVISION>
                    <REQ_DATE_H>2009-03-19</REQ_DATE_H>
                    <PURCH_DATE>2008-12-19</PURCH_DATE>
                    <INCOTERMS1>CIP</INCOTERMS1>
                    <INCOTERMS2>Testing</INCOTERMS2>
                    <PMNTTRMS>ZB01</PMNTTRMS>
                    <DLV_BLOCK>01</DLV_BLOCK>
                    <QT_VALID_F>2019-12-30</QT_VALID_F>
                    <QT_VALID_T>2019-12-30</QT_VALID_T>
                    <PURCH_NO_C>SA200812150959</PURCH_NO_C>
                    <SD_DOC_CAT>B</SD_DOC_CAT>
                    <DUN_COUNT>0</DUN_COUNT>
               </LS_QUOTATION_HEADER_IN>
               <LS_QUOTATION_ITEMS_IN>
                    <item>
                         <ITM_NUMBER>000010</ITM_NUMBER>
                         <PO_ITM_NO>000010</PO_ITM_NO>
                         <MATERIAL>C-1100</MATERIAL>
                         <PLANT>1000</PLANT>
                         <SHIP_POINT>1000</SHIP_POINT>
                    </item>
               </LS_QUOTATION_ITEMS_IN>
               <LS_QUOTATION_PARTNERS>
                    <item>
                         <PARTN_ROLE>SP</PARTN_ROLE>
                         <PARTN_NUMB>0000001012</PARTN_NUMB>
                    </item>
               </LS_QUOTATION_PARTNERS>
               <LS_QUOTATION_SCHEDULES_IN>
                    <item>
                         <ITM_NUMBER>000010</ITM_NUMBER>
                         <SCHED_LINE>0010</SCHED_LINE>
                         <REQ_DATE>2019-03-18</REQ_DATE>
                         <DATE_TYPE>a</DATE_TYPE>
                         <REQ_QTY>1</REQ_QTY>
                    </item>
               </LS_QUOTATION_SCHEDULES_IN>
               <RETURN>
                    <item>
                         <TYPE>a</TYPE>
                         <ID>aaaaaaaaaaaaaaaaaaaa</ID>
                         <NUMBER></NUMBER>
                         <MESSAGE>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</MESSAGE>
                         <LOG_NO>aaaaaaaaaaaaaaaaaaaa</LOG_NO>
                         <LOG_MSG_NO></LOG_MSG_NO>
                         <MESSAGE_V1>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</MESSAGE_V1>
                         <MESSAGE_V2>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</MESSAGE_V2>
                         <MESSAGE_V3>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</MESSAGE_V3>
                         <MESSAGE_V4>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</MESSAGE_V4>
                         <PARAMETER>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</PARAMETER>
                         <ROW>0</ROW>
                         <FIELD>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</FIELD>
                         <SYSTEM>aaaaaaaaaa</SYSTEM>
                    </item>
               </RETURN>
          </m:ZBAPIQC>
     </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Similar Messages

  • How to convert XML file to an internal table ?

    Hi All,
    I want to do a batch input program. The source data would be given as an excel file . I would like to know how to convert XML file to internal table properly. Please help me out..
    Thanking you in advance ..
    Shankara Narayanan T.V

    Hi Shankar,
    use 'ALSM_EXCEL_TO_INTERNAL_TABLE' FM.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
             EXPORTING
                  filename                = p_file1
                  i_begin_col             = '1'
                  i_begin_row             = '5'
                  i_end_col               = '40'
                  i_end_row               = '16'
             TABLES
                  intern                  = it_intern
             EXCEPTIONS
                  inconsistent_parameters = 1
                  upload_ole              = 2
                  OTHERS                  = 3.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    LOOP AT it_intern.
          AT NEW row.
            CLEAR it_intern.
          ENDAT.
            CASE lv_flag.
        Production Version
              WHEN  1.
                it_master-matnr      =   it_intern-value.     
              WHEN  2.
                it_master-werks      = it_intern-value.
              WHEN  3.
                it_master-verid      = it_intern-value.
              WHEN  4.
                it_master-text1      = it_intern-value.
              WHEN  5.
                it_master-fdate     = it_intern-value.
          AT END OF row.
            APPEND it_master.
          ENDAT.
        ENDLOOP.
    -Anu
    Message was edited by:
            Anupama Reddy

  • How to convert XMl file to XSD file

    how to convert XMl file to XSD file ?
    i have a xml file format  it has to be converted to xsd file through ABAP .
    Regards
    Anbu B

    i got the answer....
    Regards
    Anbu B

  • How to assosciate webservice to a WSDL file

    Hi
    I tried developing webservice(EJB as RPC) in weblogic server and installed and its working fine if i call it from client.
    I am using java2WSDL(axis) tool to create a WSDL file and WSDL2Java to create stubs for client to call.I am struck in linking webservice to use the wsdl file which i have created.
    I manually tried to add my WSDL file to the WAR file of my application and also Updated the web.xml file of the Web application adding a mime-mapping.
    I am able to access the WSDL file in browser as http://bt885094:7001/webservice/user.wsdl
    But my client tries to access the service "http://bt885094:7001/webservice/C2PUserService" which has an associated WSDL file defined as http://bt885094:7001/webservice/C2PUserService?WSDL which needs to be checking for http://bt885094:7001/webservice/user.wsdl
    Could anyone tell me how to assosciate webservice to a WSDL file.
    thanks in advance

    Thank you everyone for your help. As a complete newbie I found this nice walkthrough tutorial in onjava(i dont mean to spam).
    1. View: Take a peek at the existing Fibonacci code.
    2. Java2WSDL: Generate the WSDL file for the given Fibonacci interface.
    3. WSDL2Java: Generate the server side wrapper code, and stubs for easy client access.
    4. FibonacciSoapBindingImpl: Fill in wrapper to call the existing Fibonacci code.
    5. Deploy: Deploy the service to Apache Axis.
    6. Client: Write a client that uses the generated stubs, to easily access the Web service.
    Given the webservice endpoint and the method name, I think I can now consume the web service using steps 3,4, and 6.

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • Anyone know how to convert a 3D sphere .STL file into a .igs file?

    Anyone know how to convert a 3D sphere .STL file into a .igs file?

    And for what? Why? This would be kinda atrocious and awful, but weird things happen...
    Mylenium

  • How to convert XML into word doc or pdf

    hi all ,
    i ve to create a xml with specified alignment,but while taking print out alignments changing according to IE's alignment.
    So, Plz some one tel me whether any solution is there in xml itself or it have to be convert into word doc or PDF.If so, tell me an idea for how to convert xml file into Word doc or PDF.

    thanx ,i saw about FOP in xml.apache.org site and i learned something abt tat . But i dont know how to download FOP package from apache..
    Actually they gave links to download
    like http://ftp.wayne.edu/apache/xml/fop
    inside tat link they mentioned as parent,Directory,binaries,sources and tar files.From this i dont know how to download?
    Plz can someone tell a solution..

  • How to convert XML into XSD Using Altova XML Spy

    Hi,
    How to convert XML file into XSD Using Altova XML Spy.
    I want to use that XSD as an External Def in my IR
    Regards
    Suman

    hi
    Following is the path where you could get the PDF's and zip file.
    https://www.sdn.sap.com/irj/sdn/howtoguides?rid=/webcontent/uuid/5024a59a-4276-2910-7580-f52eb789194b [original link is broken]
    please check out the following Heading, and at the bottom corner you will find the download option where you will get the zip file:
    How to Generate XSD Schemas from Existing MDM 5.5 Repositories
    You can download xomlite45.jar from sdn
    copy the jar file to your java installation location like c:>java in
    Java –jar xomLite45.jar MyFile.xml
    then you get correspondig MyFile.xsd
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf0e8a97-0d01-0010-f0a2-af3b18b7f4eb

  • How to convert XML file to PDF

    Hi there,
    Does anyone know by any chance, how to covert XML file to PDF? Thanks

    Hello,
    You can convert most of the files in PDF by using the Print menu.
    Open the file you want to save in PDF and choose in the menu bar File > Print....
    You will see a will the Print window and at the left, click on the PDF button.
    Choose in the menu “Save as PDF...”
    Insert the name and you can also set security settings (like a password) and click on the “Save” button.
    Hope this will help.
    EDIT : (oups, dsimagry posted as the same time of me)

  • How to convert xml file to xsl using java

    Hi all,
    I have an XML file with which i need to convert(transform) it to an xsl file using java.
    I am new to converting xml file to xslt.Please send me if u have code .
    Thanks in advance
    regards
    Ram

    You seem to be asking the wrong question. An XSL file can be used to transform an XML file, but transforming an XML into an XSL does not make sense. The API for running XSL transforms on the Java platform is described here:
    http://java.sun.com/javase/6/docs/api/javax/xml/transform/package-summary.html

  • How to convert  XML file to excel file

    To convert XML file to excel file. what are the jar files required. also tutorial to convert XML File to excel file

    Gotta use your own imagination.
    I'd have a root tag <excel-spreadsheet>. Under that I'd have a <worksheet> tag for each worksheet. Under that I'd have a <row> tag for each row. Each <row> tag would have <column> tags, with "name" attribute, and the spreadsheet entry as the value.
    The problem is that you can't really map everything that will go into a spreadsheet into this stream (e.g., graphs, stray cells, etc.) It maps well to tables, but that's it.

  • How to convert a password protected pdf file?

    How do I convert a password protected pdf file to Word?

    Yup. You all are right. I ordered Adobe Acrobat today and the order is still processing. I can get to Adobe Acrobat.com but that too does not work. I guess I will have to wait until my order is processed before I get the keys to the kingdom. Thanks for your help and please forgive my ignorance.Regards,Bob

  • How to Convert Binary Data in Binary File

    hi,
    my telecom client puts a binary file which is asn.1 encoded with BER.
    how to handle binary data in java.
    how to convert binary to hexa to ascii format
    how to convert binary to octet to ascii format
    please help me in this.
    regards,
    s.mohamed asif

    You don't need to convert the data.
    Only you can do is print it in that formats, like it:
    public static String byteArrayToHex(byte[] b) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < b.length; i++)
             sb.append(Integer.toHexString(b&255) + " ");
    return sb.toString();
    take a look at this
    http://java.sun.com/docs/books/tutorial/essential/io/

  • How to convert labview program to .exe file?

    Is it possible to convert VI file into .exe file? How to go about doing it?

    hi
    you simply need to use the application builder - included in LabVIEW professional version or you buy this tool separately.
    Remark: On target machine the Run time engine (for free) has to be installed.
    regards
    wha

  • How to convert a directory of .doc files to flashpaper swf files

    Hi,
    We are looking forward to use flashpaper as a preview system
    for showing documents in our ASP.NET app.
    We require .NET APIs that can be used to convert office/pdf
    files to flashpaper2 files.
    Is this possible or supported? If yes then How can we achieve
    this.
    TIA,
    gaurav rehan
    Mumbai.

    Turn off the view in Acrobat option in the Adobe PDF printer and then just drag and drop them on the printer. You may have to figure out where to send them or accept the default, again an option in the printer.

Maybe you are looking for

  • Formatting a date like: Friday 24th January

    Formatting a date like: Friday 24th January Is there any way using the Java API to get the 'th' or 'st' bits on the numbers. I can't see it in java.text.SimpleDateFormat Thanks.

  • Problems with import of static files/images

    I have a series of static files (such as jquery/jquery ui libraries) that we have been storing in WORKSPACE_IMAGES. We had hoped to be able to export the static files and use our automated build process to import the files via sqlplus. However, I hav

  • Who will write the SOAP message

    when wrting simple Webservice .Who will write the SOAP message? weather it generate automatically? or we need write? is there any automatic tools are there to generte the SOAP message? Please send me a Simple Webservice Example? Thanks in advance Raj

  • External Button Help

    How do I make an external URL link with a button?  I cannot seem to figure out this basic code, or either I am just doing it wrong somehow... putting it in the wrong place or something.  I'm using CS4. Thanks.

  • Bug in paged results

    I think there is a bug in paged search results. After choosing a forum the forum Id is discarded when selecting other pages, either by "next page" link or by the page number link.