How to use this .WSDL file

Hello,
I was given this .WSDL file and asked to import it into PI. It's a very simple operation. From ECC  we will send some user data in the header and some Ticket data in the body. It is forwarded by PI to 3rd party ticket system. The result sent back is the ticket ID that is created in ticket system.
However i'm facing difficulties with this. Please see actions i've done below.
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
    xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tm = "http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns = "http://srv-dca-sc-web1.AAAA.com/"
    xmlns:s = "http://www.w3.org/2001/XMLSchema"
    xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
    targetNamespace = "http://srv-dca-sc-web1.AAAA.com/"
    xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
        <s:schema elementFormDefault = "qualified" targetNamespace = "http://srv-dca-sc-web1.AAAA.com/">
            <s:element name = "HrwHeader" type = "tns:HrwHeader"/>
            <s:complexType name = "HrwHeader">
                <s:sequence>
                    <s:element minOccurs = "0" maxOccurs = "1" name = "Username" type = "s:string"/>
                    <s:element minOccurs = "0" maxOccurs = "1" name = "Password" type = "s:string"/>
                    <s:element minOccurs = "0" maxOccurs = "1" name = "EmployeeId" type = "s:string"/>
                    <s:element minOccurs = "1" maxOccurs = "1" name = "CompanyId" type = "s:int"/>
                </s:sequence>
                <s:anyAttribute/>
            </s:complexType>
            <s:element name = "CreateTicket">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs = "0" maxOccurs = "1" name = "description" type = "s:string"/>
                        <s:element minOccurs = "1" maxOccurs = "1" name = "serviceId" type = "s:int"/>
                        <s:element minOccurs = "1" maxOccurs = "1" name = "priorityId" type = "s:int"/>
                        <s:element minOccurs = "1" maxOccurs = "1" name = "levelId" type = "s:int"/>
                        <s:element minOccurs = "0" maxOccurs = "1" name = "thirdPartySystemID" type = "s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name = "CreateTicketResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs = "1" maxOccurs = "1" name = "CreateTicketResult" type = "s:int"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
        </s:schema>
    </wsdl:types>
    <wsdl:message name = "CreateTicketSoapIn">
        <wsdl:part name = "parameters" element = "tns:CreateTicket"/>
    </wsdl:message>
    <wsdl:message name = "CreateTicketSoapOut">
        <wsdl:part name = "parameters" element = "tns:CreateTicketResponse"/>
    </wsdl:message>
    <wsdl:message name = "CreateTicketHrwHeader">
        <wsdl:part name = "HrwHeader" element = "tns:HrwHeader"/>
    </wsdl:message>
    <wsdl:portType name = "TicketServiceSoap">
        <wsdl:operation name = "CreateTicket">
            <wsdl:documentation xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/">Create new ticket and return the Ticket ID as an integer</wsdl:documentation>
            <wsdl:input message = "tns:CreateTicketSoapIn"/>
            <wsdl:output message = "tns:CreateTicketSoapOut"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name = "TicketServiceSoap" type = "tns:TicketServiceSoap">
        <soap:binding transport = "http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name = "CreateTicket">
            <soap:operation soapAction = "http://srv-dca-sc-web1.AAAA.com/CreateTicket" style = "document"/>
            <wsdl:input>
                <soap:body use = "literal"/>
                <soap:header message = "tns:CreateTicketHrwHeader" part = "HrwHeader" use = "literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use = "literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
</wsdl:definitions>
What i wanted to do was to create a service interface in PI that could be used in ECC to create a proxy of. The service interface needs to use the HRWheader and Ticket SoapIn combined. However when I import the .WSDL in an external definition i see three separate messages (header, soapin, soapout) and there is no way i can use the two messages in one SI.
I also tried importing the .WSDL using "do not extract" but that doesn't help either.
I also tried importing the .WSDL file as a Service Interface directly and it neatly creates a synchronous interfaces with the soapin as request and soapout as response, but it still doesn't show the header. If i check the WSDL tab for my newly created interface i also miss the reference to the Header message.
So my question is for some help and what would be the best way to handle this.
Kr
Regards

hi ,
check this link ,
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
Regards ,
venkat .

Similar Messages

  • How to use a WSDL file to call webservice? Help!

    Hi Experts,
         I have exposed a SAP function module as webservice using the
         Utilities -> More Utilities -> Create Web Service -> From Function module
         What does this step actually does? Does it create some kind of web application like BSP for the function module in the background?
         After creating the web service I have released the service definition for the SOAP runtime using the transaction WSCONFIG.
        Finally I have generated the WDSL file ofr the webservice using WSADMIN transaction.
        After this how will my third party application like Java will use the WSDL? Will I need any connector software to be installed in Java side.
        How exactly will java call my webservice using WSDL?
        What actually happens or what is the message flow when java application calls by webservice?
        Kindly help.
    Thanks
    Gopal

    Hi, Your solution should be correct and it's a quite common approach for Login authentication.Informatica's webservice provider also need 2 steps for calling its webservice1. Getting the session ID using username and password 2. Use the session ID to call any active operation 3. Use the session ID to log out if webservice do not have any time out settings for each session. SOAP standard is listed in the WSDL of saleforce webservice. It affects if you cannot find/call any operation in PowerCenter level. My lastest information is for PWC 9.1 version only, I don't know if they have enhanced this function in 9.5. If you can call the operation, you can just put it (SOAP standard) way first. Regards,Felix

  • How to use wscompile to generate code using a WSDL file?

    I am working with JAX-RPC of Java Web Service ver: 1.1. I am intrested in making the WSDL file first and generating Java code from the WSDL file. On the following link:
    http://java.sun.com/webservices/docs/1.1/tutorial/doc/JAXRPC6.html#wp80094
    it says that wscompile can generate code using a WSDL file..:
    <quote>
    Table 11-3 wscompile Options
    -import : read a WSDL file, generate the service's RMI interface and a template of the class that implements the interface
    </quote>
    and the wscompile software says this:
    <quote>
    C:\>wscompile
    -import : generate interfaces and value types only
    </quote>
    can anyone tell me how to generated Java code from a WSDL file. As in, make the WSDL file (e.g. using XMLSpy) and then use that WSDL generate Java code.
    Thanks

    I'm trying to generate code using wscompile under the struction in JAXRPC_Tutorial.pdf.
    I issued the following command:
    wscompile.sh -keep -gen:client -f:wsi -verbose config.xml
    But I met with the following warning and I cann't find the produced java code, who know why? Thanks in advance!
    warning: ignoring SOAP port "EmployeeDBPort": unrecognized transport
    warning: Service "EmployeeDatabase" does not contain any usable ports
    the config.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
    xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl name="EmployeeDBService"
    location="EmployeeDB.wsdl"
    packageName="com.sun.xml.rpc.xml.EmployeeDB">
    </wsdl>
    </configuration>

  • How MS SOAP 3.0 client invokes WL 7.0 Webservice WITHOUT using a WSDL file?

    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

    Hi,
    As you might guess, we are not big VB users here :-) but we may have some C# code that
    could be of some value.
    What problem are you trying to solve by not using WSDL?
    Just curious,
    Bruce
    Dovan Nguyen wrote:
    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

  • Error while creating Adaptive WS model(SP17) using local WSDL file

    Hi,
    I am trying to create a model with the wizard for adaptive Web Services, without using logical destinations. I have download the file from PI Server. This WSDL file is not registered in UDDI. But when I try to upload my WSDL from local disc I get an error message, which defines in the .log file like this:
    Plugin name: Web Dynpro Model Editor
    Plugin ID : com.sap.ide.webdynpro.modeleditor
    Class : om.sap.ide.webdynpro.modeleditor.wizards.model.creation.PageRenameW
    Method : loadNameSpacesAndModelClasses
    Message : Cannot load NameSpaces and ModelClasses
    Exception  : java.lang.NullPointerException: null
    Earlier when i was using "WebService model", i was able to create the model successfully.
    Do help me how to reslove this problem.
    Regards,
    Raj

    Did u use "webservice model" or "adaptive webservice model".
    Earlier i used with "wenservice model" and it was working fine. Now that with SP17, "WebService model"is depricated and we are forced to use "adaptive webservice model" and it is giving the problem. the detailed error is :
      Exception  : java.lang.NullPointerException: null
    <i>!STACK 0
    java.lang.NullPointerException
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters_DocumentStyle(DOperationImpl.java:59)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters(DOperationImpl.java:46)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.<init>(DOperationImpl.java:40)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.initOperationNameToOperationMapping(DInterfaceImpl.java:150)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.<init>(DInterfaceImpl.java:55)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.initPortNameToInterfaceMapping(DGenericServiceImpl.java:78)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:50)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)</i>

  • How to get the wsdl file

    hi all,
    here java people have given wsdl file to me, how to do the scenario,
    and how to get the wsdl file from the java people.
    regards,
    priya

    Hello Priya,
    Go to http://<hostname>:50000/wsnavigator or any other UDDI server and search for the web service to be invoked
    There you can find the Webservice Definition (WSDL) file.
    Check this weblog:
    Invoke Webservices using SAPXI
    regards
    Gangaprasad

  • How to use multiple video files??

    hi all,
    i am using flex 4 ...
    now i have designed video player..
    i used single flv file for execution..
    how to use more flv files in tis program???
    i have included program also..
    can any one reply for this...
    thanks in advance...
    regards,
    saran r
    video.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init()" height="700" >
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.core.UIComponent;
                import flash.events.NetStatusEvent;
                import flash.media.Video;
                import flash.net.NetConnection;
                import flash.net.NetStream;
                private var nc:NetConnection;
                private var stream:NetStream;
                public var videoDuration:Number;
                public var nsClient:Object = new Object();
                private var videoComp:Video = new Video();
                private var meta:Object = new Object();
                private var timer:Timer = new Timer(100);
                private var uiComp:UIComponent = new UIComponent();
                private function init():void
                    nc = new NetConnection();
                    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    nc.connect("rtmp://localhost/saran");                 
                    this.addElement(uiComp);
                    uiComp.addChild(videoComp);
                    timer.addEventListener(TimerEvent.TIMER,timerHandler);
                    timer.start();
                private function netStatusHandler(event:NetStatusEvent):void
                    trace("Code ===>>>    "+event.info.code);
                    if(event.info.code == "NetConnection.Connect.Success")
                        connectStream(nc);
                private function connectStream(nc:NetConnection):void {
                    stream = new NetStream(nc);
                    videoComp.attachNetStream(stream);
                    stream.play("Terminator")
                    // stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    stream.client = nsClient//new CustomClient();
                    nsClient.onMetaData = metadataHandler;
                    trace("stream ===>>>    "+stream.currentFPS);
                    //responder = new Responder(onResult);
                    // nc.call("getStreamLength", responder, "bikes" );
                private function metadataHandler(metadataObj:Object):void
                    meta = metadataObj;
                    videoComp.width = metadataObj.width;
                    videoComp.height = metadataObj.height;
                    //positionBar.move(videoComp.x, ((videoComp.y + videoComp.height)+20));
                    //positionBar.width = videoComp.width;
                    trace("Duration ====>>>>   "+meta.duration);
                private function timerHandler(event:TimerEvent):void
                    //trace("Timer called.........."+stream.time);
                    //positionBar.setProgress(stream.time, meta.duration);
            ]]>
        </fx:Script>
    </s:Application>

    I have the same question but I am using two pc's

  • How to use a key file in the FTP Task using and SSL connection

    In the past I have used this code to set the FTP pass word in an FTP component task in SSIS.
    Does anyone know how to use a Key file in an SSL connection to download a file from an FTP site?  If not can you tell me where I can get the C# code examples to learn how to create a script task or if there is another way in SSIS to download large files
    from an SSL FTP site?  Thank you for any help offered.
    public void Main()
    ConnectionManager FTPConn;
    FTPConn = Dts.Connections["FTPServer"];
    FTPConn.Properties["ServerPassword"].SetValue(FTPConn, Dts.Variables["FTPPassword"].Value);
    Dts.TaskResult = (int)ScriptResults.Success;
    Antonio

    You can use SFTP for this.
    This is a way of implementing SFTP in SSIS using standard tasks 
    http://visakhm.blogspot.in/2012/12/implementing-dynamic-secure-ftp-process.html
    also see
    http://blog.goanywheremft.com/2011/10/20/sftp-ftps-secure-ftp-transfers/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to use my as3 file in flex

    hi, I am new in flex and want to divert into flex. How to  use my as3 file into flex. Is there any sample tutor . so, that I could learn fast.

    Please clarify. Is this .as file a class you previously used as a complonentcomponent you now wish to use as the main application?
    If the .as file just has variables and functions you wish to access from your Flex app, use:
    include "subfolder1/subfolder2/etc/MyASFile.as";
    If you want to use classes from the file, do this:
    import subfolder1.subfolder2.etc.MyClassName;
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How to use a .dmg file in Arch Linux

    I have a file a friend gave me from his Mac computer with a .dmg file name. I haven't been able to pinpoint exactly how to use this type of file... I believe its an Apple raw disk image or something like that.. sort of like an iso. I need to use this file in order to start an application and download it onto Arch Linux. The problem is that I can't figure out how to use it on Arch Linux and burn it onto a Cd. Has anyone had experience with this sort of thing? I am completely lost.

    $ poweriso convert ~/Downloads/lang.rar/Rosetta_Stone_3.4.5.dmg -o ~/Downloads/lang.rar/rose.iso -o t
    PowerISO Copyright(C) 2004-2008 PowerISO Computing, Inc
    Type poweriso -? for help
    /home/user/Downloads/lang.rar/Rosetta_Stone_3.4.5.dmg: The file format is invalid or unsupported.
    $
    $ poweriso -?
    PowerISO Copyright(C) 2004-2008 PowerISO Computing, Inc
    Type poweriso -? for help
    Usage: poweriso <command> [parameters] [-switches]
    <Commands>
    list <image file> <directory> List files and directories in image file.
    Example: List all files and directories in root direcory of /home/sam/test.iso .
    Command: poweriso list /home/sam/test.iso / -r
    extract <image file> <dir/file name> Extract files/directories from image file.
    Example: Extract all files and directories in root direcory of /home/sam/test.iso
    to /home/sam/test recursively.
    Command: poweriso extract /home/sam/test.iso / -od /home/sam/test
    convert <image file> Convert image file to other format.
    Example: Convert /home/sam/test.daa to standard iso file
    Command: poweriso convert /home/sam/test.daa -o /home/sam/test.iso -ot iso
    <Switches>
    -r List or extract recursively.
    -o Specify output image file name.
    -od Specify output folder.
    -ot <iso|daa|bin> Specify output image file type. If not specified,
    the image type will be determined by file name suffix.
    -volsize <n> Split output image file to multiple volumes, and set volume
    size to <n>. Example: -volsize 100M
    -setpassword <password> Set password for output image file.
    Example: -setpassword 12345678
    $
    I tried to convert the file .dmg to an .iso so that I can easily burn that onto a disk and get the ball rolling.. am I missing something here?

  • How  to  use this HD

    Emicsoft HD Video Converter is the high definition video converter software develeped to convert HD video files with high quality. With this HD video converter you can also easily convert between HD video formats, convert standard definition videos to HD videos, or convert HD videos to SD (Standard-Definition) videos. The HD video converter supports most of HD video formats: MTS/M2TS, TS, HD MKV, HD AVI, HD MP4, HD WMV, HD MOV, HD ASF.
    How to use this HD Converter?
    1. Launch the software and click "Add File" button to import files into the software. You can watch them on the preview screen.
    2. Edit the added movie by clicking "Effect" "Trim" or "Crop" button which can help you create unique videos easily.
    3. Select output in Profile option. Here all popular formats and mobile devices are supported. Then make sure the destination folder.
    4. Click "Start" button and the program will automatically start conversion.
    Emicsoft AVCHD Converter can convert AVCHD video to all popular video formats, and convert other videos to AVCHD video. So many formats are supported such as HD video (TS, MTS, M2TS, HD MPEG-4, HD MOV, HD AVI, HD VOB, HD ASF, HD WMV, etc.), general video (AVI, MP4, WMV, MPEG-1, MPEG-2, VOB, MOV, 3GP, FLV, SWF, etc.) and audio track (MP3, WMA, WAV, AAC, AC3, OGG, etc.).
    Emicsoft MOD Converter is a powerful MOD video converter which can MOD to AVI, MOD to MPG, MOD to MPEG, MOD to WMV and to other video format, such as FLV, SWF, ASF, DivX, XviD, MP4, VCD, SVCD, DVD-Video, VOB and so on. Batch conversion supported, so you can add several .MOD files one time.
    More softwares may help you:
    Emicsoft Video Converter
    Emicsoft FLV Converter
    Emicsoft MTS Converter

    This is not a simple issue. You can set up a network, and set up sharing on the Mini, so that other computers on the same network can read and write to the external hard drive connected to the Mini.
    To do that you have to get both computers on the network first, then set up the external hard drive so others can read on and write to it.
    Is that what you want to do? If yes, and yu need help with this, please post back.
    If you want to store apps on the external, and run them from a networked Mac, that is a whole other issue. To do that you need to set up the Mini to be a network server:
    https://www.apple.com/ca/mac-mini/server/
    Please post back, because I'm not sure I'm answering your questions.

  • Using generated wsdl file to other scenario

    Hi...
        I have done one scenario like giving
    Input File:  Fname,Lname,Address
    Output file: FullName,address.
    using BPM.
    After doing the sceanrio i have generated the wsdl file. I have tested the wsdl file using infopath.It is working fine.
    Then i have done anothe scenario like File_webservice_File sceanrio. In this scenario, i have used the wsdl file which i have generated before using BPM. while executng the scenario, output is not coming. i have used 2 receiver communication channels for soap and for file.For soap, i have given the target url and soap action of the wsdl file which i have generated.In moni i can see the 3 messages. for one message it is showing checked flag, but for other 2 messages, it is not showing any flag. Can you please tell, where i have done wrong.

    Hi Leelaratnam,
    try to refresh the queue ie SMQ1 and SMQ2 and even referesh the cache
    chk for this links
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part III
    Thanx
    Sampath

  • How to use a config file?

    People,
    i have a basic question. How to extract the contents from a ".config" file?
    I have a config file with few sections and few global variables defined.
    how to extract these data; or how to use this file?
    a sample .config file, that i have is,
    # global variables
    pageTitle = "Main Menu"
    bodyBgColor = #000000
    tableBgColor = #000000
    rowBgColor = #00ff00
    [Customer]
    pageTitle = "Customer Info"
    [Login]
    pageTitle = "Login"
    focus = "username"
    Intro = """This is a value that spans more
    than one line. you must enclose
                   it in triple quotes."""
    # hidden section
    [.Database]
    host=my.domain.com
    db=ADDRESSBOOK
    user=php-user
    pass=foobar
    How would i extract these data; or how to utilize this file first of all?
    - Kumar
    [ [email protected] ]

    Hi Kumar,
    Instead of .config file you can use .properties file. Place the configuration part in that file. Use ResourceBundle class. This class have methods like getResourceString(String key) which reads the .properties file and returns a String as it's Value. I normally use the same. I have written one class for it. C if you can use it. The keys are case sensitive. initialize is a directory in which i am keeping my Config.properties file.
    import java.util.*;
    import java.text.*;
    import java.net.*;
    import javax.swing.*;
    public class ReadConfig
    public static ResourceBundle resources;
    * This is responsible for getting data from Config.properties for setting properties externally.
    static
    try
    resources = ResourceBundle.getBundle("initialize.Config", Locale.getDefault());
    catch (MissingResourceException mre)
    JOptionPane.showMessageDialog(new JFrame(), "initialize/Config.properties not found.\n Please report it to administrator.");
    System.err.println("initialize/Config.properties not found");
    System.exit(1);
    }//static
    public ReadConfig()
    System.out.println(getResourceString("DatabaseName"));
    System.out.println(getResourceString("JDBCDriver"));
    System.out.println(getResourceString("DSN"));
    System.out.println(getResourceString("ConnectionString"));
    }//constructor
    public String[] tokenize(String input)
    Vector v = new Vector();
    StringTokenizer t = new StringTokenizer(input);
    String cmd[];
    while (t.hasMoreTokens())
    v.addElement(t.nextToken());
    cmd = new String[v.size()];
    for (int i = 0; i < cmd.length; i++)
    cmd[i] = (String) v.elementAt(i);
    return cmd;
    * A method takes string as parameter and reference of ResourceBundle.
    * It is used with <b>Resources Bundle</b> i.e. with .properties file.
    * When value of particular string from .properties file has to retrive.
    public String getResourceString(String nm, ResourceBundle resources)
    String str;
    try
    str = resources.getString(nm);
    catch (MissingResourceException mre)
    str = null;
    return str;
    * A method takes string as parameter. It is used with <b>Resources Bundle
    * </b> i.e. with .properties file. When value of particular string from .properties
    * file has to retrive.
    public static String getResourceString(String nm)
    String str;
    try
    str = resources.getString(nm.trim());
    catch (MissingResourceException mre)
    str = null;
    return str;
    }//getResourceString(String nm)
    * This method takes string as parameter and returns corresponding <b>URL</b>.
    * If key is <b>null</b>, then will return <b>null</b>.
    public URL getResource(String key)
    String name = getResourceString(key);
    if (name != null)
    URL url = this.getClass().getResource(name);
    return url;
         return null;
    }//getResource(String key)
    public static void main(String[] args)
    new ReadConfig();
    }//main
    }//class
    Hope this will be helpful to you.
    Kind Regards
    Sandeep

  • To test BPEL project using a wsdl file.

    Hello Experts,
    I need to test the BPEL Project using the wsdl file.Is there any tool to test the BPEL project?the tool should generate the input data and expected output result using the wsdl file.
    please reply soon
    Thanks in Advance.

    The entire application means the BPEL Project will be invoking many services.Consider a scenario,that i am creating a bpel project which invokes 10 services.If i make some changes in one service,i must be able to check the bpel project with that service alone.i need not cal all the other services.
    I need a framework or tool thet will generate input data and the expected output based on the wsdl file.
    can u suggest any solution for this?

  • In this report i have marked one line..if this width 30,i need to multiply by a number 0.3 and if the width =30,it multiplies by 0.37...how to use this logic here..??? anyone can help??

    In this report i have marked one line..if this width < 30,i need to multiply by a number 0.3 and if the width >=30,it multiplies by 0.37...how to use this logic here..??? anyone can help??
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @SCCode nvarchar(30)
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    --Rcpt from PRDN (Condition checked for Return component exclusion also)
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'FG Item Code',
    T3.ItemName as 'FG Item Name',
    T2.PlannedQty as 'FG Planned Qty',
    T2.U_OD as 'OD',
    T2.U_ID as 'ID',
    T2.U_OD/25.4 as 'Inches',
    (T2.U_OD-T2.U_ID)/2 as 'Width',
    0 as 'FG Pending Qty',
    0 as 'FG Receipt Qty',
    '' as 'Issue Item Code',
    '' as 'Issue Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    0 as 'Issue Item - Return Quantity',
    '' as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntry
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2
    UNION ALL
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'Item Code',
    T3.ItemName as 'Item Name',
    T2.PlannedQty as 'Planned Qty',
    T2.U_OD as 'OD',
    T2.U_ID as 'ID',
    T2.U_OD/25.4 as 'Inches',
    (T2.U_OD-T2.U_ID)/2 as 'Width',
    (Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',
    (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
    a.ItemCode as 'Issued Item Code',
    a.Dscription as 'Issued Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    (Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
    (ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry 
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription    order by T2.DocNum desc

    Hi,
    Try this:
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @SCCode nvarchar(30)
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    --Rcpt from PRDN (Condition checked for Return component exclusion also)
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'FG Item Code',T3.ItemName as 'FG Item Name',T2.PlannedQty as 'FG Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) <30 then ((T2.U_OD-T2.U_ID)/2) *0.3 end, 0 as 'FG Pending Qty',0 as 'FG Receipt Qty','' as 'Issue Item Code','' as 'Issue Item Name',Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',0 as 'Issue Item - Return Quantity','' as 'Return Doc No',SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntryINNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCodeLEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntryWHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2UNION ALL SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'Item Code',T3.ItemName as 'Item Name',T2.PlannedQty as 'Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) >=30 then ((T2.U_OD-T2.U_ID)/2) *0.37 end, (Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',(Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
    a.ItemCode as 'Issued Item Code',
    a.Dscription as 'Issued Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    (Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry
    where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
    (ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,
    T2.PlannedQty,T2.U_OD,
    T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription  
    order by T2.DocNum desc
    Thanks & Regards,
    Nagarajan

Maybe you are looking for

  • Unable to open Document from Asset Business Package

    Hi, We have installed Asset Business Package in portal. Almost everything is working fine. But when we try to open a document (PDF ) attached to an asset by clicking the document link in the page, a new browser window opens with a text inside. The PD

  • HP Laserjet 200 M276 fails at 80% at pre-installation

    Hello HP Forum, I reviewed other postings on this issue and I still cannot seem to resolve why my HJ Laser200 MFP276 printer that is 13 months old fails the preinstallation at 80% with error "A problem occured during the preparation of the installati

  • Second master page displays as a blank page

    Hi, just wondering if there is a work around for the following scenario: I have two different master pages (1 & 2) that are used to create two different page standards. I have two body pages (A & B ). Page A is placed on master page 1 and Page B is p

  • KEYCHAIN #%*@$

    I have a re-occurring problem (happened once before) which I was able to fix in the past by re-installing the system software. I just got the new iMac a month ago for our family. I am the adminstrator and three of my kids have other user accounts (to

  • How to make content of af:popup dynamic? Component Value is not updating.

    HI,      I am not able to update the component used in af:popup dynamically.      In my case, the value of the component used in the popup is updated every time before opening the popup.      I am building the af:popup. I am using component binding f