Creating WSDL file using Netbeans and JAX-WS

I have created a web service called calculator in Netbeans IDE.
I build the project and deployed in Tomcat.
When I accessed WSDL file i getting as follows
*<?xml version="1.0" encoding="UTF-8" ?>*
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://actions.calculator.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://actions.calculator.com/" name="calculatorService">
- <types>
- <xsd:schema>
*<xsd:import schemaLocation="http://localhost:8080/calculator/calculator?xsd=1" namespace="http://actions.calculator.com/" />*
*</xsd:schema>*
*</types>*
etc.......
here schema is imported from another file...
I need schema to included in the WSDL file itself.
How can i get a WSDL file like this??
I am using Netbeans 5.5 and JAX-WS 2.0

Hi,
Change the <soap:binding style="document"... to <soap:binding style="rpc"... and see if that works.
I'm not sure how to get <soap:binding style="document"... working yet - I'm not that experienced in web services yet.
Hope this helps and is not too late.
Regards,
Greg Nye

Similar Messages

  • Want To create Zip file  using java,And Unzip without Java Program

    I want to create a zip text file using java, I know Using ZipOutputStream , we can create a zip file, , But i want to open that zip file without java program. suppose i use ZipOutputStream , then zip file is created But for unZip also difftrent program require. We cant open that zip file without writing diff java program.
    Actually i have one text file of big size want to create zip file using java , and unzip simply without java program.Its Possible??
    Here is one answer But I want to open that file normal way(
    For Exp. using winzip we can create a zip file and also open simply)
    http://forum.java.sun.com/thread.jspa?threadID=5182691&tstart=0

    Thanks for your Reply,
    I m creating a zip file using this program, Zip file Created successfully But when im trying to open .zip file i m getting error like "Canot open a zip file, it does not appear to be valid Archive"
    import java.io.*;
    import java.util.zip.*;
    public class ZipFileCreation
         public static void main (String argv[])
         try {
         FileOutputStream fos = new FileOutputStream ( "c:/a.zip" );
         ZipOutputStream zip = new ZipOutputStream ( fos );
         zip.setLevel( 9 );
         zip.setMethod( ZipOutputStream.DEFLATED );
    //     get the element file we are going to add, using slashes in name.
         String elementName = "c:/kalpesh/GetSigRoleInfo092702828.txt";
         File elementFile = new File ( elementName );
    //     create the entry
         ZipEntry entry = new ZipEntry( elementName );
         entry.setTime( elementFile.lastModified() );
    //     read contents of file we are going to put in the zip
         int fileLength = (int)elementFile.length();
         System.out.println("fileLength = " +fileLength);
         FileInputStream fis = new FileInputStream ( elementFile );
         byte[] wholeFile = new byte [fileLength];
         int bytesRead = fis.read( wholeFile , 0 /* offset */ , fileLength );
    //     checking bytesRead not shown.
         fis.close();
    //     no need to setCRC, or setSize as they are computed automatically.
         zip.putNextEntry( entry );
    //     write the contents into the zip element
         zip.write( wholeFile , 0, fileLength );
         zip.closeEntry(); System.out.println("Completed");
    //     close the entire zip
         catch(Exception e) {
    e.printStackTrace();
    }

  • Can we create TDMS file using C# and retrieve the data using a diadem

    I want to write a tdms file from a dot net application and to use the diadem to retrieve the data and to create a user defined report

    Hello,
    If you want this kind of output, you can use Java Mapping e.g
    1. Create your data type like this:
    CHARSET 0..1
    LOADMODE 0..1
    CODEFORMAT 0..1
    CURRENCY 0..1
    SUPPLIERID_DOMAIN 0..1
    ITEMCOUNT 0..1
    TIMESTAMP 0..1
    UNUOM 0..1
    COMMENTS 0..1
    FIELDNAMES 0..1
    DATA 0..unbounded
    ENDOFDATA
    2.In your message mapping assign all the constants. You might want to concat all the values of the FIELDNAMES and output them to DATA
    3.In your Java Mapping, replace all the XML fields including ,, with ,''',
    4.In ID, do not use FCC.
    Hope this helps,
    Mark

  • Error creating WSDL file

    Hi all,
    I'm trying to create a WSDL file with wsdeploy from my server classes, but it fails. My build.xml process-war syntax is somewhat similar to that of the Hello example, and the procedure is just the same; first create WEB-INF, then create portable war-file and finally create deployable war-file. The deployable war, src-jaxrpc.war is created, but it doesn't contain the WSDL file. Here are its contents:
    META-INF/MANIFEST.MF
    src/Harj2IF.class
    src/Harj2Impl.class
    WEB-INF/classes/src/LibImpl.class
    WEB-INF/classes/src/LibIF.class
    WEB-INF/web.xml
    WEB-INF/jaxrpc-ri-before.xml
    WEB-INF/Library_model.xml.gz
    WEB-INF/web-before.xml
    WEB-INF/jaxrpc-ri-runtime.xml
    The error message I get with wsdeploy is this:
    [exec] info: created temporary directory: D:\Service\build\wsdeploy-generated\jaxrpc-deploy-ec04fc
    [exec] info: processing endpoint: Library
    [exec] error: class java.lang.StackTraceElement does not have a public accessible empty constructor
    [exec] info: created output war file: D:\Service\dist\src-jaxrpc.war
    My config.xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
         xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl location="http://localhost:9080/src-jaxrpc/src?WSDL"
    packageName="src"/>
    </configuration>
    And my jaxrpc-ri.xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <webServices
    xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
    version="1.0"
    targetNamespaceBase="http://com.test/wsdl"
    typeNamespaceBase="http://com.test/types"
    urlPatternBase="/ws">
    <endpoint
    name="Library"
    displayName="Example Library v.1.0"
    description="A simple Web application"
    interface="src.LibIF"
    implementation="src.LibImpl"/>
    <endpointMapping
    endpointName="Library"
    urlPattern="/src"/>
    </webServices>
    My LibIF.java looks like this:
    package src;
    import java.rmi.Remote;
    import java.io.IOException;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import java.rmi.RemoteException;
    public interface LibIF extends Remote {
    public boolean initDocument(String fileName) throws IOException, ParserConfigurationException, SAXException, RemoteException;
    public boolean addB(String fileName) throws IOException, RemoteException;
    public boolean removeB(String fileName) throws IOException, RemoteException;
    public boolean showB(String fileName) throws IOException, ParserConfigurationException, SAXException, RemoteException;
    public boolean findB() throws IOException, RemoteException;
    public boolean rewriteB(String fileName) throws IOException, RemoteException;
    Could someone even suggest any solution based on this information?

    Are u trying out the example frm that Web Service Book frm that some publisher, He must be using xrpcc. Ok
    .........For WSDL file not to be created there are few reasons and in them I kno one. For wsdeploy tool to create the wsdl file it reads the jaxrpc-ri.xml file and the war file.
    ........for the proper working of this, the impl file shd have methods which throw Remote exceptions and no errors, of course It does compile in the earlier command execution but.. few minute errors like the above might prevent the creation of wsdl file, chk these and try
    ........Hope it wrks..........|ABY|

  • Adding jar file in my gerareted jar file using netbean 4.0

    Hi,
    I write an application de process XML file using JDOM. I add the JDom package jar file to my project and everything work fine. But when I generate, my project jar file using netbean 4.0, my generated jar, is not working with the XML files anymore. Everything seems like it didn't include the JDOM jar file?
    Thanks for any help to fix the problem.

    I find that you can not use command-line such as java -classpath add classpath
    it can not work, I use netBeans4.0 i don't whether because of netbeans or java itself.
    you can add classpath in jar's Manifest.mf file
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.2
    Created-By: 1.5.0_01-b08 (Sun Microsystems Inc.)
    Main-Class: chat.Main
    // add this line
    Class-Path: dir\*.jar //(jar file name)
    X-COMMENT: Main-Class will be added automatically by build

  • Can't create a file using fm 'File_Get_Name'

    hi gurus,
    Can you please help me with this issue. There's a program that have to create a file using the said fm. It was working before when it was set in OS NT. But when the settings and codes have been changed to UNIX, the program was able to generate the program. But the file doesn't exist. It seems it  doesn't create a file in that server.
    What else do I need to check?
    Points will be rewarded. Thanks
    Here's the code for your reference:
    CALL FUNCTION 'FILE_GET_NAME'
           EXPORTING
    *         CLIENT                  = SY-MANDT
                logical_filename        = 'Z_SYSBRIDGE' 
             OPERATING_SYSTEM        = SY-OPSYS
    *         PARAMETER_1             = ' '
    *         PARAMETER_2             = ' '
    *         USE_PRESENTATION_SERVER = ' '
    *         WITH_FILE_EXTENSION     = ' '
    *         USE_BUFFER              = ' '
           IMPORTING
    *         emergency_flag          =
    *         file_format             =
                file_name               = ltfile-out_path
           EXCEPTIONS
                file_not_found          = 1
                OTHERS                  = 2.

    Hi Maui,
    Did you check SM69, where the code that ties to this FM creates a file after it execute your FM...
    SM69 are os commands that does UNIX execution or other OS commands...
    or maybe you have missed another FM like FM 'SXPG_OS_COMMAND' or of some sort.
    Thanks
    William Wilstroth

  • Creating new file using report generation express vi

    Hello,
    In my application, I need to write certain data in excel sheet. For that I created an excel template and I used the express vi in report generation toolkit to save the appropriate data in appropritate columns. I need a new file created everyday by that day's name and write the data to it rest of the day. I am having problems creating new file using this express vi. I tried using the low level vi's but not been able to it properly.
    Attaching my code and excel template.
    Please help.
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    excel write2.vi ‏119 KB
    Book2111.xltx ‏8 KB

    r_te wrote:
    The thing is everyday there cannot be a file provided.
    Sure there can.  Don't you see the input on the Express VI for a file? "Path To Save Report" is the name of the input you want.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Reading XML file using BAPI and then uploading that xml file data into SAP

    I am getting a xml file from Java server. I need to take
    data from this file using BAPI and need to upload into SAP using SAP.
    Please tell me how to read XML files using BAPI's.

    <b>SDIXML_DATA_TO_DOM</b> Convert SAP data (elementary/structured/table types) into DOM (XML
    <b>SDIXML_DOM_TO_XML</b>  Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
    <b>SDIXML_DOM_TO_SCREEN</b> Display DOM (XML)
    <b>SDIXML_DOM_TO_DATA</b>
    data: it_table like t001 occurs 0.
    data: l_dom      TYPE REF TO IF_IXML_ELEMENT,
          m_document TYPE REF TO IF_IXML_DOCUMENT,
          g_ixml     TYPE REF TO IF_IXML,
          w_string   TYPE XSTRING,
          w_size     TYPE I,
          w_result   TYPE I,
          w_line     TYPE STRING,
          it_xml     TYPE DCXMLLINES,
          s_xml      like line of it_xml,
          w_rc       like sy-subrc.
    start-of-selection.
      select * from t001 into table it_table.
    end-of-selection.
    initialize iXML-Framework          ****
      write: / 'initialiazing iXML:'.
      class cl_ixml definition load.
      g_ixml = cl_ixml=>create( ).
      check not g_ixml is initial.
      write: 'ok'.
    create DOM from SAP data           ****
      write: / 'creating iXML doc:'.
      m_document = g_ixml->create_document( ).
      check not m_document is initial.
      write: 'ok'.
      write: / 'converting DATA TO DOM 1:'.
      CALL FUNCTION 'SDIXML_DATA_TO_DOM'
        EXPORTING
          NAME               = 'IT_TABLE'
          DATAOBJECT         = it_table[]
        IMPORTING
          DATA_AS_DOM        = l_dom
        CHANGING
          DOCUMENT           = m_document
        EXCEPTIONS
          ILLEGAL_NAME       = 1
          OTHERS             = 2.
      if sy-subrc = 0.  write  'ok'.
      else.             write: 'Err =', sy-subrc.
      endif.
      check not l_dom is initial.
      write: / 'appending DOM to iXML doc:'.
      w_rc = m_document->append_child( new_child = l_dom ).
      if w_rc is initial.  write  'ok'.
      else.                write: 'Err =', w_rc.
      endif.
    visualize iXML (DOM)               ****
      write: / 'displaying DOM:'.
      CALL FUNCTION 'SDIXML_DOM_TO_SCREEN'
        EXPORTING
          DOCUMENT          = m_document
        EXCEPTIONS
          NO_DOCUMENT       = 1
          OTHERS            = 2.
      if sy-subrc = 0.  write  'ok'.
      else.             write: 'Err =', sy-subrc.
      endif.
    convert DOM to XML doc (table)     ****
      write: / 'converting DOM TO XML:'.
      CALL FUNCTION 'SDIXML_DOM_TO_XML'
        EXPORTING
          DOCUMENT            = m_document
        PRETTY_PRINT        = ' '
        IMPORTING
          XML_AS_STRING       = w_string
          SIZE                = w_size
        TABLES
          XML_AS_TABLE        = it_xml
        EXCEPTIONS
          NO_DOCUMENT         = 1
          OTHERS              = 2.
      if sy-subrc = 0.   write  'ok'.
      else.              write: 'Err =', sy-subrc.
      endif.
      write: / 'XML as string of size:', w_size, / w_string.
      describe table it_xml lines w_result.
      write: / 'XML as table of', w_result, 'lines:'..
      loop at it_xml into s_xml.
        write s_xml.
      endloop.
      write: / 'end of processing'.
    end of code
    Hope this will be useful.
    regards
    vinod

  • How to include external .js file into .ear file using NetBean 5.5.1?

    is it possible to include external .js file into .ear file using NetBean 5.5.1? if not, then where should I placed the external .js file and how to write the src="xxx" element? (that is , how to write the path of "xxx"?)
    I am using JBOSS 4.2.2 GA as server
    thx!!

    Even this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?

  • Creating INDD file from INX and visa versa

    Hi
    My task is to create a inx file from indd file and that was easy. I just use
    var myDocument = app.open(File(sourceFileName));
    //save INX
    myDocument.exportFile(ExportFormat.INDESIGN_INTERCHANGE, File(destinationFilePath+".inx"));
    but my problem is that I now have a more that one INDD file and one INDB file and client ask me to make INX file from it.
    (I;m just a developer and I never use InDesigner application at all so is it possible? and how?
    and than I have to form INX file create INDD file , text file and all Linking files in Links folder.
    I found a
    var myDocument = app.open(File(sourceFileName));
    myDocument.packageForPrint(myLinkFolder, false, true, false, true, true, true, "", false);
    but problem is that I got only INDD file and for some reason the newly create INND file has a name undifined_1.indd (I found that this is a file name that script foud from INX file ?!?) LInks file is empty.
    Is it possible that he create package and put all eps file there !?!

    I'm a designer not a developer, so I'm not sure I'll be helping but<br />the normal behavior when opening an INX file is creates an untitled<br />.indd file.  This is is typical.  I'm not sure how you would<br />automatically rename back to what it was previously. Have you tried<br />packaging the indd file BEFORE you make the INX file?  Also InDesign<br />has the ability to embed the images in the file or link them to<br />external files. You might check to see if that is done, by checking<br />the links pallet.  Unfortunately I'm not following what you're<br />starting goal and end goal is.  I'll be helpless with the programming<br />end, but any questions regarding how InDesign would typically do it,<br />I'm happy to help with.<br /><br />Rosie<br />Trying to learn scripting by osmosis (tucks her laptop under her pillow)<br /><br />On Wed, Feb 18, 2009 at 4:31 AM, lpastor74 <[email protected]> wrote:<br />> A new discussion was started by lpastor74 in<br /><br />> but problem is that I got only INDD file and for some reason the newly<br />> create INND file has a name undifined_1.indd (I found that this is a file<br />> name that script foud from INX file ?!?) LInks file is empty.<br />><br />> Is it possible that he create package and put all eps file there !?!<br />><br />> ________________________________<br />> View/reply at Creating INDD file from INX and visa versa<br />> Replies by email are OK.<br />> Use the unsubscribe form to cancel your email subscription.<br />><br />>

  • No ability to create PDF Files using Acrobat 6.01_6.06 after installing Word 2010. (Windows XP)

    Since installing Word 2010 (upgrading from Word 2003) there are no visable PDF Icons nor ability to create PDF Files using Adobe Acrobat 6.06.  Operating system is Windows XP.  Browser is IE8.  Various attempts to bypass this situation have not been successful.  No problems had been experienced earlier using Acrobat 6.01 through 6.06 with Word 2003 and earlier Word versions during the passed 10 years or so.  Adobe's support is not responding to recognize mentioned situations, nor is there any a solution to fix the problem.  Low volume small businesses,with limited need to create PDF files, are being considerably burdened to substante a $200 investment to upgrade to Acrobat X, which may as well not be the solution.  It is appealed for Adobe Forums readers to share similar experiences with possible fixes at hand.  Responses will be greatly appreciated.  Thank you...

    Your response is greatly appreciated, Bernd...
    Unfortunately, those of us who milk software packages for eons such as
    Acrobat 6.06 Standard, a full version of Acrobat X is quoted to be $299
    with no ability to upgrade since 7.0 is the cutoff which remains to be
    only $139.
    It seems to me, Military personal, retired or just ole toots who did
    their think, would offer considerations such as Staples, Lowe's, and
    other big boxes offer.  Such is greed for some who do not consider 
    alternatives above their noses...
    Thank you,
    Skip

  • How to create a user using XML and specifying addional attributes that are objects

    I'm trying to create a user using XML and specifying some attributes that are objects and not sure how to do it. How would I set the DirectoryUserAcl to Public?
    Here's the xml file:
    <?xml version = '1.0' standalone = 'yes'?>
    <SimpleUser>
    <UserName>mike2</UserName>
    <Password>abc123</Password>
    <AdminEnabled>false</AdminEnabled>
    <HomeFolderRoot>/home</HomeFolderRoot>
    <HasContentQuota>false</HasContentQuota>
    <DirectoryUserAcl> ??? </DirectoryUserAcl>
    <DefaultAclBundleAcl> ??? </DefaultAclBundleAcl>
    <HomeFolderPolicyBundleAcl> ??? </HomeFolderPolicyBundleAcl>
    </SimpleUser>

    I figured out the answer:
    <?xml version = '1.0' standalone = 'yes'?>
    <SimpleUser>
    <UserName>mike2</UserName>
    <Password>abc123</Password>
    <AdminEnabled>false</AdminEnabled>
    <HomeFolderRoot>/home</HomeFolderRoot>
    <HasContentQuota>false</HasContentQuota>
    <DirectoryUserAcl classname="SystemAccessControlList" refType="name">Public</DirectoryUserAcl>
    </SimpleUser>
    null

  • Issue in Creating  EAR File Using ANT in ADF 11g of Jdeveloper11g IDE

    Hi
    Rookie to this ADF 11g Framework and during the exploring of ADF 11g gone through ADF essentials in OTN and i did sample application of ANT build script and in the ADF Essentials of Ant i came across creating build.xml,build.properties and finally creating WAR file and currently i want to create EAR file so that EAR file can be deployed to my oracle Weblogic server.But ADF Essentials of ANT is totally confined to build.xml,build.properties,WAR file only ! Can any one suggest me the template build.xml of EAR file of any Sample Application so that i can come across what are the patterns,jars,excluded names,included names of EAR .
    Thanks In Advance,
    Regards
    RK

    RK,
    There are a few options. If I were doing this today, I'd just use ojdeploy (and the ojdeploy ANT task) to create the EAR file with a minimum of fuss (refer to the JDeveloper docs for more information).
    If you wanted to create an EAR file using the same technique that I used in the ADF Development Essentials article, just follow the same techniques - create an EAR file using JDeveloper and unzip it to discover the structure of what it should look like.
    Best,
    John

  • How to creating pdf documents using c# and Adobe SDK

    I downloaded Adobe SDK and go through the samples given in sdk. But i couldn't find any sample code how to create PDF file using C# code.
    Please, help me with this.
    Thanks.

    For desktop-based solutions, look at the Adobe Acrobat SDK which enables development around Acrobat itself. Or if you wish a stand-alone solution (for either desktop or server), we offer the Adobe PDFLibrary, which is the same technology used by all of Adobe's applications.
    For the server, we have our LiveCycle products including LC Generator.
    Leonard

  • How do you create *.exe files using Labview6.0

    I shall be grateful if anyone can give me the following info or direct me as to where i can find it..
    (a) What is the procedure of creating executable files using labview6.0
    (b) Do i require any other components other than the labview base package.

    In addition to previous post,
    a) after buying Application Builder (which is included only in LV6i Professional Package), you'll notice a new entry in LV Tools menu (Build Application or Shared Library[DLL]). This opens App Builder (a panel where you can setup many parameters for the VI/LLB to 'build'). It's not complicated and you can use default values for the first try (after selecting your VI)
    b) here is the link to start with App Builder [http://sine.ni.com/apps/we/nioc.vp?lang=US&pc=mn&cid=2448]

Maybe you are looking for

  • JBO Exception while running OAF page from Jdev

    Hi All, I am using jdev 10.1.3 on R12 instance. I am trying to customize a standard OAF page. For that I downloaded all the related directories from the server and placed it in the corresponding folders of jdev. When I rebuild the page it is rebuildi

  • Creating an invoice based on a delivery via DI API

    Hi, Each time a user creates a delivery (not always based on a sales order), the add on I have developed creates an invoice based on it. This happens without any issue in most cases but I am receiving the following two errors on the client site and h

  • Error in ALV output

    Hi All, I am getting a runtime error in output while i try to do sum in ALV output. In my ouput table i want to do sum for below feilds those are defined in output table : CURR TYPE P DECIMALS 2,          B30 TYPE  P DECIMALS 2,         B60 TYPE P DE

  • CS6 trial has run out and has been activated.

    I had to change the date on my computer for a moment this morning while editing a file for school. When I opened up Photoshop, a window popped up saying the trial period has run out on and this will be the last time the product will run before having

  • QUICKTIME SYNC PROBLEM!!

    im having problems exporting audio files to quicktime when i send it to the desk top all i here and see is the QT movie can someone out there help a brotha out!!!! imac g5   Mac OS X (10.4.7)