The wsdll file less of ?xml version="1.0"?

Today I created webservice with NWDS. I successfully created the webservice and I can see it through http://localhost:50000/wsnavigator.  But when I viewed the wsdl of the service, I found the wsdll file less of <?xml version="1.0"?>. You konw, as an xml file it must has this header to prove it is an xml file. I used NW7.1 and followed the "Creating the HelloWorld Web Service" help document. It is on http://help.sap.com/saphelp_nwce10/helpdata/en/46/917a26cf75581ce10000000a1553f7/frameset.htm
My question is why the WSDL less of <?xml version="1.0"?>. Is it a bug of NW, or I did something wrong when I created the WS?
Thanks & Regards

Hi Glen,
Interesting Find.
There are two very interesting things to note:
1. The WSDL URL : http://localhost:50000/HelloService/HelloBean?wsdl
Plz. note the "?" in the url. This kind of approach is mostly used to pass parametres to servlets.
2. The Following is the HTTP Log of the Service call.
POST /HelloService/HelloBean HTTP/1.1          // Pst method call confirms finding no 1
Host: localhost:50000
Content-Type: text/xml; charset=utf-8
Connection: close
Content-Length: 368
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><yq1:sayHello xmlns:yq1='http://sap.com/tutorial/helloworld/'><name>Gaurav Modgil</name></yq1:sayHello></SOAP-ENV:Body></SOAP-ENV:Envelope>
It seems that the server is using some Java App/servlet to read the Application Program and produse the result as XML, So maybe the strict adherence to XML was not required in this case.
Note the Last Line where the version information is also passed along with other parametres.
The Result output is a generated XML given below.
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SOAP-ENV:Body>
    <ns2:sayHelloResponse xmlns:ns2="http://sap.com/tutorial/helloworld/">
      <return>Hello, Gaurav Modgil.</return>
    </ns2:sayHelloResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
So my Conclusion is "There is no bug in NW7.1 :)....."
Hope you Agree
Thanks and regards,
Gaurav
Edited by: Gaurav Modgil on May 15, 2008 4:52 PM

Similar Messages

  • How to chage the welcome file in web.xml using creator?

    Hi guys,
    I want to set the welcome file in web.xml to index.html but every time I run my project in creator, creator replaces index.html by faces/index.jsp. I need the index.html to check if the browser enables cookies & javascript and then I redirect to index.jsp. If I change the web.xml in a common editor, build the war-file with ant and deploy the project with tomcat, everything is fine. but how can I change it in creator?
    thanks in advance

    Sorry, that doesn't make much sense.
    The XML you gave is a configuration file for txt2xml utility. It doesn't represent the output format.
    Are you a user of this utility?

  • Skipping the content conversion if the input file is an xml file.

    Hi,
    My source folder contains both text files and xml files.
    I want to skip the content conversion if the input file is an xml file and the same Content conversion as to work if the input file is a text file.
    Is there any way to achieve this?
    Regards
    Divia

    Hi,
    I think u hv to create 2 separate Communication Channels.............. 1 for XML (without Content Conversion), & other for TXT with Content Conversion.
    In 1st CC give file name as *.xml & in 2nd give file name as *.txt
    Thanks,
    Maheshwari

  • Insert Encoding tag into xml file. ?xml version="1.0"?

    I am using oracle 10g.
    I am using dbms_xmlgen.getxml function to generate xml data for oracle tables. I use utl_file to write data back into xml file.
    Oracle is generating the file in the following manner...
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <RSLT_ID>1</RSLT_ID>
    </ROW>
    </ROWSET>
    I want to change the following xml header to have encoding information in it as follows...
    <?xml version="1.0" encoding = "AL32UTF8"?>
    How do I achieve that?
    Any suggestions?

    I want to change the following xml header to have encoding informationIn 10g I think you could use a xmlroot hack:
    SQL> select xmlroot(xmlelement(e, dummy), version '1.0" encoding="AL32UTF8') xml from dual
    XML                                                    
    <?xml version="1.0" encoding="AL32UTF8"?>              
    <E>X</E>                                               
    1 row selected.

  • How to convert the TEXT file into an XML using plsql code

    Hi all ,
    I need to convert an TEXT file into an XML file how can i do it
    Below is my sample TEXT file .
    TDETL00000000020000000000000120131021115854ST2225SKU77598059          0023-000000010000
    I want the above to be converted into the below format
    <?xml version="1.0" encoding="UTF-8"?>
    <txt2xml>
      <!-- Processor splits text into lines -->
      <processor type="RegexDelimited">
      <regex>\n</regex>
            <!--
            This is used to specify that a message should be created per line in
            the incoming file;
            NOTE: this was designed to work with all the processors, however it
            only works correctly with 'RegexDelimited' processors (check the
            enclosing top processor type)
             -->
             <maxIterationsPerMsg>1</maxIterationsPerMsg>
      <!-- For lines beginning with FHEAD (File Header) -->
      <processor type="RegexMatch">
      <element>FHEAD</element>
      <regex>^FHEAD(.*)</regex>
      <processor type="RegexMatch">
      <element>OriginalLine</element>
      <regex>(.*)</regex>
      <consumeMatchedChars>false</consumeMatchedChars>
      </processor>
      <processor type="RegexMatch">
      <element>LineSeq,Type,Date</element>
      <regex>^(\d{10})(\w{4})(\d{14})$</regex>
      </processor>
      </processor>
      <!-- For lines beginning with TDETL (Transaction Details) -->
      <processor type="RegexMatch">
      <element>TDETL</element>
      <regex>^TDETL(.*)</regex>
      <processor type="RegexMatch">
      <element>OriginalLine</element>
      <regex>(.*)</regex>
      <consumeMatchedChars>false</consumeMatchedChars>
      </processor>
      <processor type="RegexMatch">
      <element>LineSeq,TransControlNumber,TransDate,LocationType,Location,ItemType,Item,UPCSupplement,InventoryStatus,AdjustReason,AdjustSign,AdjustQty</element>
      <regex>^(\d{10})(\d{14})(\d{14})(\w{2})(\d{4})(\w{3})([\w ]{13})([\w ]{5})(\d{2})(\d{2})([+-]{1})(\d{12})$</regex>
      </processor>
      </processor>
      <!-- For lines beginning with FTAIL (File Tail) -->
      <processor type="RegexMatch">
      <element>FTAIL</element>
      <regex>^FTAIL(.*)</regex>
      <processor type="RegexMatch">
      <element>OriginalLine</element>
      <regex>(.*)</regex>
      <consumeMatchedChars>false</consumeMatchedChars>
      </processor>
      <processor type="RegexMatch">
      <element>LineSeq,TransCount</element>
      <regex>^(\d{10})(\d{6})$</regex>
      </processor>
      </processor>
      </processor>
    </txt2xml>
    Thanks

    Sorry, that doesn't make much sense.
    The XML you gave is a configuration file for txt2xml utility. It doesn't represent the output format.
    Are you a user of this utility?

  • How can I convert the binary file content to XML message

    Dear friends,
    I poll the binary file from a ftp server but the payload only includes the binary content, no XML structure in the payload, I hope to convert the binary content to a element node within the XML structure, how can I do that? via content conversion?
    Thanks and regards,
    Bean

    Read the binary file stream using java I/O standard functions and convert the read stream to Base64 format. Now map this content to one of the field in target XML structure.
    You need a java mapping for this.
    what is your target system?
    Thanks,
    Gujjeti.
    Hi Gujjeti,
    Thanks a lot for your kind help, my target system is R/3.
    Can I achieve that with a UDF or a simple way?
    Regards,
    Bean

  • Why does viewing the same file in two diff. versions of Photoshop give diff. results?

    Hey,
    Our designers use CS2 for their work. All of the designs that they work on are in black and white. When the same file is opened at a given zoom %, the files seem to have a different view for CS2 and CC. The print size ofcourse is the same, but our work involves viewing designs of 700 dpi at 3-5% and the difference in viewing the same files matters.
    We want to upgrade our software, because CC is way better in so many other functions but this is the only thing that is stopping us from doing so. Please let me know if there's a way to fix this or is it just something we have to accept with the upgrade.
    I will share screenshots of both the version with the same file soon.
    Thanks.

    Thanks for the suggestion, Chris.
    Same issue, new question - don't ask me why I did this, but while both Photoshop and the now corrupted file were open, I changed the name of the folder containing the file, then continued to save the open version of the file without first closing it and reopening it from the newly renamed folder. Could this have caused both files in that folder to become corrupted in different ways? The other file that gives me the "file is empty" error was not open at the time, but it was in that folder. I'm thinking maybe by changing the path to the files while Photoshop was running, that could have triggered this. ?? I have 3 1TB internal drives raided to read as 1 drive, so I'm really hoping that one of these disks is not dying on me as you suggested. I was also backing up an external drive using BackBlaze when this all occurred - any possible connection? How can I find out if one of my three raided drives (and which one) might be going bad?
    Thanks!!

  • Can I get hold of the setup file for an earlier version of Desktop Manager

    Hello,
    I've been using my Blackberry Bold 9700 trouble free for well over 18 months now.  The other day I was prompted to upgrade the OS to level 6, which I did with no problem.  I then noticed that there was also an upgrade for the Desktop Manager software.  I also upgraded this (to version 6).  I'm now really wishing I hadn't....
    Ever since the upgrade I get the BSOD upon initially connecting my BB.  I uninstalled the desktop manager and did a complete reinstall.  This, if anything made matters worse as I then found that any USB device would cause the BSOD once I plugged it in.
    The only way I've been  able to solve this is by totally uninstalling the Desktop Manager and then also going and uninstalling and then reinstalling all the USB controllers from the Windows device manager.
    All I really need the desktop manager for is to tether my BB to get internet acces when I'm off site, and I'd really like to go back to the earlier version but cannot find anywhere to download the setup file.
    I'm running XP Pro by the way.  It's obviously an incompatibility with something on specifically on my laptop which is causing the problem.  I tried installing Desktop Manager 6 onto another laptop running XP Pro and it seems to be fine on there.  I've not really got the time to mess around with this much more though so would prefer just to downgrade back to the previous version on this laptop if someone could point me in the right direction to get hold of the setup file.
    Many thanks.

    Skeets181 wrote:
    I also want to revert back to previous OS. Can you give me the site addy where you downloaded. Thanks
    Skeets
    Device OS, or the Desktop Software.
    Please be specific about what you need.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Replacing the cookies file with a previous version

         I have a corrupted cookies file, as far as I  an see.  I want to replace it with a previous version--I have time machione.  Where in the library files is the cookies file located?

    Hi
    Home/Library/Cookies/Cookies.plist

  • How to display the rdf file column in XML Publisher

    Hi
    I have used the formula bar and returned the value to diaplay in xml output .so that i can use in template.But i could not find the value which i returned in rdf.
    Can anybody suggest me do i need to change/modify in any other places to find my column/value in xml output.
    Thanks

    no need to do any specific changes.
    if you have a formulae column in RDF it will definitely show up in your xml output,
    see if you are doing any silly mistake like,
    RDF not saved peoperly,
    .RDF is not replaced with the updated version or something like that

  • How can i restrict the selecting file type to XML and TXT in file upload..

    Hi,
    I am using Struts Upload Bean. I am also using html:file tag in the JSP. Now when i click on the browse button, A file dialogue window appears. The problem id the i want to show only text and xml files in the dialog box. Now the files of type combo box in the dialogue box is showing *.*, *.html, *.pictures (jpg/gif) options. In place of this i need to show only txt and xml files. How can i restrict the file type to XML and TXT
    Regards,
    Sudheesh...

    Hi,
    the demo doesn't keep track of this. If you want then this feature isn't implemented. You will also see that the document is uploaded in a directory without changing the file name (e.g. adding the SR number). This however can be done and would be the way to do it
    Frank

  • How to mention the "dtd" file when loading xml file

    i am using the JAXP parser for parsing and loading my xml file.In the file i have mentioned the dtd like
    <!DOCTYPE screensmanagement SYSTEM "scrReg.dtd">
    But after doing some manipulations, when i save the file through JAXP parser at the same location from where i loaded, then "dtd header" is not saved with my xml File and when i again parse the xml file then parser does not find the "dtd" file coz it is not been saved with xml source.
    How can i get aroud this problem.
    Merry Chrismis

    when serializing the DOM, use this: transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, scrReg.dtd");
    Merry Chrasmas too ;-)

  • How to delete the recorded file in imovie(ipad version)

    I am try a lot of way to delete it but still can't do it. T____T

    Here is a manual that may help:
    http://help.apple.com/imovie/ipad/1.4/index.html

  • Stub generation problem with the wsdl file

    Hi all
    I'm trying to write a simle webservice client based on JAX. My webservice is working fine I've tested it with a standalone app. In my webservice I'm using complex type. Problem is that i can't generate properly stubs. This is a msg I'm getting during the generation
    warning: ignoring operation "getEmployee": message part does not refer to a schema element declaration
    warning: Port "EmployeeIFPort" does not contain any usable operationsBecause of that my method to get the Object from the webservice is not generated.
    This is the wsdl file.
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="EmployeeService" targetNamespace="urn:Foo" xmlns:tns="urn:Foo" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <schema targetNamespace="urn:Foo" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Foo" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
          <complexType name="Employee">
            <sequence>         
              <element name="name" type="xsd:string"/>
              <element name="surname" type="xsd:string"/>
           <element name="age" type="xsd:int"/>
         </sequence>
         </complexType>
        </schema>
       </types>
      <message name="EmployeeIF_getEmployee">
        <part name="String_1" type="xsd:string"/>
        <part name="String_2" type="xsd:string"/>
        <part name="int_3" type="xsd:int"/>
      </message>
      <message name="EmployeeIF_getEmployeeResponse">
        <part name="result" type="tns:Employee"/>
      </message>
      <portType name="EmployeeIF">
        <operation name="getEmployee" parameterOrder="String_1 String_2 int_3">
          <input message="tns:EmployeeIF_getEmployee"/>
          <output message="tns:EmployeeIF_getEmployeeResponse"/>
        </operation>
      </portType>
      <binding name="EmployeeIFBinding" type="tns:EmployeeIF">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <operation name="getEmployee">
          <soap:operation soapAction=""/>
          <input>
            <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
          </input>
          <output>
            <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="EmployeeService">
        <port name="EmployeeIFPort" binding="tns:EmployeeIFBinding">
          <soap:address location="http://localhost:8080/EmployeeService/getEmployee"/>
        </port>
      </service>
    </definitions>However the complex type class Employee is generated properly as well as other stub classes like the interface EmployeeIF, EmployeeIF_getEmployee_RequestStruct and EmployeeIF_getEmployee_ResponseStruct (I mean i think they are generated properly). As I said befor the problem is that the webservice method from the EmployeeIF.getEmployee() is not generated in the EmployeeIF_Stub. Any ideas why? I'm using WTK 2.5
    thx in advance :)

    Here i Followed  Url &sap-user=XXX&sap-password=YYY to the WSDL-URL with XXX and YYY being your username and password and you will be authenticated.
    Later i Struck. Actual my requirement is I have two views i want to take a value from the first view and then return value displayed in the second view. All input/output parameters are the taken from the WSDL file. Can you please Help me.

  • How to change XML version in outbound XML file generated in XI

    Hi, I am getting following two records in the beginnning of my out bound XML file.
    <?xml version="1.0" encoding="utf-8" ?>
    <ns0:MT_WPUUMS01_Salesdata xmlns:ns0="http://ws-sapretail-pos.com/salesdata">
    Is there any control in XI to modify these two lines, in outbound files.
    Also, for inbound files, is there any way to process messages successfully, even if XML files from other systesm comes in different formats (xml version tag and nso tag lines)

    <?xml version="1.0" encoding="utf-8" ?>
    <ns0:MT_WPUUMS01_Salesdata xmlns:ns0="http://ws-sapretail-pos.com/salesdata">
    these two lines will be added when you create the  Message type name
    MT_WPUUMS01_Salesdata  is the message type name
    http://ws-sapretail-pos.com/salesdata"> is the name of your namespace......
    so if you want to chage these two lines in each XML build your MT and namespace accordingly.......
    even when you are importing the XML from o ther systems, you dnt have to worry about these tages as you import them in external definitation and select them only in message interface........should not be a problem if you import the XML from other systems
    whole conecpt is when you add these two lines it will convert the XSD to XML so when you have the XML form other system you only need to crer ate the WSDL out of it...
    let me know if i am not clear or if i understood your question wrong....

Maybe you are looking for

  • Palm Centro / Windows Vista 64bit

    Has anyone figured out how to sync music to a Palm Centro using Windows Vista 64bit?  My understanding is that there is not a USB driver for Vista 64.  I can already HotSync my Centro using Bluetooth, that works (albeit slow) but can't sync music and

  • I can't get this to work! (hard to describe in topic) (please read)

    My other class, DivideGenes, is supposed to divide the genes created in Genes in half (to create a sperm cell). I do this by 1. copying the array 2. finding random indexes in the array 3. coppying the values of the random indexes to a different array

  • NetBeans6 UML code generation

    Hi I am trying to generate code from some UML diagrams in Netbeans 6. I selected the objects I want to generate code from, then right-clicked on the objects selected, from the menu I need to choose generate code option. But there is no generate code

  • Colour should be different

    Hi I created a web dynpro application.In that i created labels,input fields,dropdown ,checkbox...... My question is how we can change the colour Example :  Label-----Inputfield Label must be different color,,Input field must be diferent color. Please

  • After Effects GPUSniffer crash SOLVED

    I have seen several people with the problem "GpuSniffer" when After Effects is loading. (I have a Nvidia GTX 760 graphic card) In my case the solution has been: ****First: Install the CUDA drivers (after do this the "gpusniffer crash" dissapeared but