Need some explanations regarding static Method

Hello,
I have a code where a class has a static method access by other classes. This not working as I thought and I would like to understand why.
Here below is the code.
Here is a class having the static method "test"
package test;
public class StaticTest {
    public StaticTest() {
    public static void test (int i){
    while (i < 1000){
        System.out.println("i = " + i );
        i++;
}Here is the code of another class (Thread) using this static method. This Thread can be initialized with an integrer value that will be passed to the static Method.
package test;
public class ThreadTester extends Thread {
    int x;
    public ThreadTester(int i) {
        x=i;
    public void run(){
        StaticTest.test(x);
}Here is the code starting 2 Thread running in parallel and both are then calling the static method.
//start 2 thread accessing the static method.
      ThreadTester test1 = new ThreadTester(0);
      ThreadTester test2 = new ThreadTester(200);
      test1.start();
      test2.start();
...As the second thread is started with a bigger value I thought that we would only have seen few printouts from the first thread starting by 0 and then printouts starting by 200.
Here is what I thought regarding the result:
i = 0
i = 1
i = 2
i = 3
i = 200 --> startup of the second thread, x in static method is overriden (at least this is what I thought!)
i = 201
i = 202
i = 203
i = 204
i = 205
i = 206
i = 207
i = 208
i = 209
But the real result is:
i = 0
i = 1
i = 2
i = 3
i = 4
i = 5
i = 200
i = 6
i = 201
i = 202
i = 203
i = 204
i = 205
i = 206
i = 7
i = 207
i = 208
i = 209
i = 8
It seems that there is 2 instances running in parallel. I thought that it would'nt be the case with the word "Static".
Also I don't understand the result because if I use JBuilder in Optimizer mode I can see that there is only one instance of StaticTest object.
Can anyone here explain me how is that possible?
Thanks in advance for your help.
Regards,
Alain.

>
thread test1 creates its own stack and starts incrementing �i� starting at values 0. However, in the middle of incrementing, it gets kicked out by the OS (or JVM) into a �blocked� state to allow other threads to run. BUT before leaving the running state, test1 saves the stack state including the value of �i�.
>
Ok, now I understand, but then I have another question.
What is the difference between the code shown in my first post and the following where we create 2 instances of StaticTest class (which is not static in this case for sure).
How to decide (while coding) if it is better to use difference instances of class or not?
package test;
public class StaticTest {
    public StaticTest() {
    public void test (int i){ //Not static anymore
    while (i < 1000){
        System.out.println("i = " + i );
        i++;
}We create new instance in the Thread.
package test;
public class ThreadTester extends Thread {
    int x;
    public ThreadTester(int i) {
        x=i;
    public void run(){
StaticTest newInstance = new StaticTest(); //Create a new instance
        newInstance .test(x);
}Alain

Similar Messages

  • Confused regarding static methods

    Hello guys,
    I like to know the only purpose of static method is to call a method with out creating
    instance of that class.
    I am totaly confused why and where to use static methods.
    Thanks in advance
    aneesh

    Look at the API docs for some of the static methods in classes like java.lang.String, java.lang.Integer, java.lang.Thread, etc.
    An object--an instance of a class--has state and behavior. The state is captured in the instance variables--the array that holds the characters of a String, the name, SS#, and hireDate fields of an Employee object, etc.
    Static methods are used when the operation you're performing isn't associated with any particular instance of that class--it doesn't use or modify the state of a particular object. The operation is associated with the class as a whole.
    For instance, Integer.parseInt(String). You're not operating on an existing Integer object. Rather you're creating a new Integer from a String. It's a utility or "helper" method of the Integer class.
    And yes, do read the tutorial.

  • [AIR_on_ANDROID] Needs some explanations

    Hi guys,
    I'm an italian flash programmer. I'm so happy that I can finally build apps fdor android and iPhone too. This wouyld be great for my job.
    But first I need some explanations to some issues I found:
    1 If the new Flash CS5 extension allows us to compile a native Android application (.apk file), why people needs to install AIR runtime on its phone? IT shouldn't be just like iPhone and its packeger?
    2 Why when I do set the publish settings to "AIR Android", the functionality  "Control -> Test Movie -> In device central" goes off?
    3 Since I installed the Android ext, every time I start a new AIR 2 project the publish settings goes automatically in "AIR Android". The I set it on "Adobe AIR 2", but when I try to compile it give me always the same error:
    "Error creating file"
    "Name file is invalid in the descriptor file"
    Thank you for help.
    P.S. I use Flash Cs5 in windows Vista x32.

    Well, the latest extension (09/30/10) has some issues qhen you try to visualize "Android settings":
    "The following JavaScript error(s) occurred:
    At line 1 of file "Apollo_OpenSettingDialog.jsfl":
    ReferenceError: Air2_5_Android is not defined"
    This is a bug a lot of people in internet found. So the only solution was to install an older release (09/23/10 works fine on it).
    After all, I tried to run an .apk on Desire HD emulated by Device Central Cs 5, but it occured an error "file not supported on this device".
    I suppose that device central smartphones are still not update, right?
    Thanks for your time. I really appreciate that

  • Need some explanation on nested AMs

    Hello OTN,
    Need some explanation on nested application modules.
    It is descibed in several posts and videos that each AM holds its own connection and to reduce connection number we nest AMs under RootAM.
    So, I have the master application with a RootAM.
    There are some detail applications imported into RootViewController project as ADF libraries. Each containing a taskflow to use on a main page and an application module.
    So in the Data Controls I have RootAM + all of imported. Each holding its own connection. To reduce it I want to nest importeed AMs under RootAM.
    But in RootAM DataModel - Appliaction Module Instances there is just RootAM and nothing more. Seems, RootModel project is not aware of imported AMs.
    http://img72.imageshack.us/img72/4964/nestam.png
    So I deploy each detail Model project as an ADF Library and import it into RootModel project. OK, now I see imported AMs in Application Module Instances section and I can nest them.
    After doing so I open Data Controls section inteding to see only RootAM on the top level, but still there are each of imported AMs on the top level and there are nested AMs under RootAM also.
    http://img7.imageshack.us/img7/5042/nestam2.png
    Seems, I've done something wrong.
    Could someone explain me, please?
    Thanks.
    ADF 11.1.2.1

    I don't think that you made an error. Is just the way application module are imported. You see the nested ones under your root application module and you see the same as root application module on the same level as your real application module.
    It all depend on which one you use. You can however control which artifacts you see in the data control. Check Chris Muirs bloghttp://one-size-doesnt-fit-all.blogspot.com/2011/02/jdev-adf-bc-and-adf-libraries-library.html about this.
    Timo

  • NEED HELP WITH USING STATIC METHOD - PLEASE RESPOND ASAP!

    I am trying to set a value on a class using a static method. I have defined a servlet attribute (let's call it myAttribute) on my webserver. I have a serlvet (let's call it myServlet) that has an init() method. I have modified this init() method to retrieve the attribute value (myAttribute). I need to make this attribute value accessible in another class (let's call it myOtherClass), so my question revolves around not knowing how to set this attribute value on my other class using a static method (let's call it setMyStuff()). I want to be able to make a call to the static method setMyStuff() with the value of my servlet attribute. I dont know enough about static member variables and methods. I need to know what to do in my init() method. I need to know what else I need to do in myServlet and also what all I need in the other class as well. I feel like a lot of my problems revolve around not knowing the proper syntax as well.
    Please reply soon!!! Thanks in advance.

    class a
    private static String aa = "";
    public static setVar (String var)
    aa = var;
    class b
    public void init()
    a.aa = "try";
    public static void main(String b[])
    b myB = new b ();
    b.init();
    hope this help;
    bye _drag                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Need Urgent Help with static methods!!!!

    If I have a static method to which a variable is being passed...for example
    static String doSomething(String str)
    //..doSomething with str and return
    If the method is invoked a second time by a separate entity when it is already in use by one entity(!!!not entity beans) .... will this lead to the second invocation overwriting str while the method is already in use and thus corrupting the variable that the method was passed from the first entity?

    It's also a common misunderstanding about parameters. The method does not receive a variable as its parameter, it receives a reference to an object. And inside the method, the parameter acts just the same as a local variable would. So if two threads call the method (static or not), each thread has its own copy of the parameter.

  • Need some help regarding validation of input in a text field

    Hello everyone,
    i am new to all this website designing stuff and is working on my first website (treausre hunt types) and expecting some guidance over here.   :-)
    I have successfully managed to validate the login page using server behaviour.
    Let me explain what i need guidance with.
    After login , the user is redirected to a page where a question is asked and he has to type the answer in the given text field and click on the submit button. Now i want to validate the given answer with the correct one and if it is answered correctly then the user is redirected to the next page.
    the question is what and how am i supposed to do this?  i am using adobe dreamweaver cc and wampserver as localhost.

    This becomes complicated to do it the way you want BUT YOU CAN do it - you just need to be a bit more efficient and get a template together.
    Copy the 4 documents below and paste into seperate DW files to see how this works then look at the code and see if a pattern becomes noticeable to you. What we are doing is adding 1 to each level and checking the user has accumulated a score to that level - if not they are bumped down to the level which they have reached or in the case of not reaching any level to question 1.
    question_1.php:
    <?php
    // Start the session
    session_start();
    ?>
    <?php
    if (isset($_POST['submit'])) {
    $answer = trim($_POST['answer']);
    if(($answer == "Green" || $answer == "green")) {
    $_SESSION['question'] = 2;
    $correct = "<p>Correct Answer</p><p>You will automatically be taken to the next level</p>";
    header( "refresh: 5; url=question_2.php" );
    else {
    $wrong = "<p>Wrong, please try again,</p>";
    ?>
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Quiz</title>
    <style>
    p {
    font-size: 20px;
    color:#930;
    margin: 0;
    padding: 10px 0 8px 0;
    </style>
    </head>
    <body>
    <h3>Question 1.</h3>
    <h2>What color is grass?</h2>
    <form id="quiz" action="question_1.php" method="post">
    <label for="answer">Answer<br>
    <input type="text" name="answer" id="answer"></input>
    <input type="submit" name="submit" value="Sumbit">
    </label>
    </form>
    <?php
    if(isset($wrong)) {
        echo $wrong;
    elseif(isset($correct)) {
    echo $correct;
    ?>
    </body>
    </html>
    question_2.php
    <?php
    // Start the session
    session_start();
    ?>
    <?php
    // This sends the user to question 1 if SESSION question has not been set
    if(!isset($_SESSION['question'])) {
    header('Location: question_1.php');
    // This sends the user back if SESSION question is LESS than 2
    if($_SESSION['question'] < 2) {
    header('Location: question_1.php');
    if (isset($_POST['submit'])) {
    $answer = trim($_POST['answer']);
    if(($answer == "Blue" || $answer == "blue")) {
        $_SESSION['question'] = $_SESSION['question']+1;
    $correct = "<p>Correct Answer</p><p>You will automatically be taken to the next level</p>";
    header( "refresh: 5; url=question_3.php" );
    else {
    $wrong = "<p>Wrong, please try again,</p>";
    ?>
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Quiz</title>
    <style>
    p {
    font-size: 20px;
    color:#930;
    margin: 0;
    padding: 10px 0 8px 0;
    </style>
    </head>
    <body>
    <h3>Question 2.</h3>
    <h2>What color is the sky?</h2>
    <form id="quiz" action="question_2.php" method="post">
    <label for="answer">Answer<br>
    <input type="text" name="answer" id="answer"></input>
    <input type="submit" name="submit" value="Sumbit">
    </label>
    </form>
    <?php
    if(isset($wrong)) {
        echo $wrong;
    elseif(isset($correct)) {
    echo $correct;
    ?>
    </body>
    </html>
    question_3.php
    <?php
    // Start the session
    session_start();
    ?>
    <?php
    // This sends the user to question 1 if SESSION question has not been set
    if(!isset($_SESSION['question'])) {
    header('Location: question_1.php');
    // This sends the user back if SESSION question is LESS than 3
    if($_SESSION['question'] < 3) {
    header('Location: question_2.php');
    if (isset($_POST['submit'])) {
    $answer = trim($_POST['answer']);
    if(($answer == "Yellow" || $answer == "yellow")) {
        $_SESSION['question'] = $_SESSION['question']+1;
    $correct = "<p>Correct Answer</p><p>You will automatically be taken to the next level</p>";
    header( "refresh: 5; url=question_4.php" );
    else {
    $wrong = "<p>Wrong, please try again,</p>";
    ?>
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Quiz</title>
    <style>
    p {
    font-size: 20px;
    color:#930;
    margin: 0;
    padding: 10px 0 8px 0;
    </style>
    </head>
    <body>
    <h3>Question 3.</h3>
    <h2>What color is the sun?</h2>
    <form id="quiz" action="question_3.php" method="post">
    <label for="answer">Answer<br>
    <input type="text" name="answer" id="answer"></input>
    <input type="submit" name="submit" value="Sumbit">
    </label>
    </form>
    <?php
    if(isset($wrong)) {
        echo $wrong;
    elseif(isset($correct)) {
    echo $correct;
    ?>
    </body>
    </html>
    question_4.php
    <?php
    // Start the session
    session_start();
    ?>
    <?php
    // This sends the user to question 1 if SESSION question has not been set
    if(!isset($_SESSION['question'])) {
    header('Location: question_1.php');
    // This sends the user back if SESSION question is LESS than 4
    if($_SESSION['question'] < 4) {
    header('Location: question_3.php');
    if (isset($_POST['submit'])) {
    $answer = trim($_POST['answer']);
    if(($answer == 4 || $answer == 4)) {
    $_SESSION['question'] = $_SESSION['question']+1;
    $correct = "<p>Correct Answer</p><p>You will automatically be taken to the next level</p>";
    header( "refresh: 5; url=question_5.php" );
    else {
    $wrong = "<p>Wrong, please try again,</p>";
    ?>
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Quiz</title>
    <style>
    p {
    font-size: 20px;
    color:#930;
    margin: 0;
    padding: 10px 0 8px 0;
    </style>
    </head>
    <body>
    <h3>Question 4.</h3>
    <h2>What  is 2 + 2?</h2>
    <form id="quiz" action="question_4.php" method="post">
    <label for="answer">Answer<br>
    <input type="text" name="answer" id="answer"></input>
    <input type="submit" name="submit" value="Sumbit">
    </label>
    </form>
    <?php
    if(isset($wrong)) {
        echo $wrong;
    elseif(isset($correct)) {
    echo $correct;
    ?>
    </body>
    </html>

  • I need some help Regarding Cumulative totals

    Hi ,
    i have a requirement
    1) we have columns calender Periods and actual to date. The requirement is we need cumulate the actual to date. i have applyed RSUM function in column formula.
    2) it is working fine. But again the requirement is this cumulative solution is changed based on selected calender periods. but this is not expected.
    3) ex:-
    calender period actual Units Cumulative Units
    oct - 2010 10 10
    Nov-2010 9 19
    Dec-2010 15 34
    Jan-2011 25 59
    Feb-2011 12 71
    March-2011 19 90
    April - 2011 13 103
    May - 2011 18 121
    June - 2011 24 145
    this is the reqiurement but i have a Prompt Like
    i hve selected resource categery some xyz and stert period is Jan -2011 and end period is May - 2011
    the values disply's like bellow
    Resource Category start Period End Period
    xyz Jan - 2011 May - 2011
    Jan-2011 25 25
    Feb-2011 12 37
    March-2011 19 58
    April - 2011 13 71
    May - 2011 18 89
    But this is not actual cumulative units the actual value for Jan 2011 cumulative value is 59 not 25
    can any one help me regarding this issue
    regards,
    ramesh

    Hi,
    Refer this link abt iview properties & set authorization ...
    http://help.sap.com/saphelp_nw04/helpdata/en/13/81a66d100011d7b84b00047582c9f7/frameset.htm
    Color- you have to change portal theme...
    Width- create a new Loyout..
    Regards,
    Senthil K.

  • Need some info regarding BWA1 transaction in CRM

    Hi,
      I am trying to understand few things for the BWA1 transaction. Looks like we need to explore the BWA1 transaction for data source enhancement before trying the classical Data source enhancement method (Append structure in the Data source ) in RSA6.
    1> The Data source fields visible in transaction RSA6 is stored in TABLE ROOSFIELD.
    2> In BWA1 transaction the visible field (in the 'extract structure’ tab in the Field 'selection <> 'A' ) matches with the Data source fields in RSA6
       However the entry in the 'Mapping' tabs in Transaction BWA1 is stored in table SMOXRELP.
    3> All the fields from the “Extraction Structure’ TAB rightly belong to the extraction structure maintained in the ‘Metadata’ tab.
    After that I seem to loose my way.
    For example take the example of data source 0CRM_SALES_ORDER_I, the above two assumptions are correct.
    But when I look at the extraction structure (CRMT_BW_SALES_ORDER_I) AND the segments in the Mapping tabs (ORDERADM_H, ORDERADM_I etc)
    I don’t seem to relate them, I know there these comes from the BDOC BUS_TRANSACTION_MESSAGE (as mentioned in the ‘Metadata’ Tab in BWA1) but don’t really understand the correlation.
    Also please note that I am not able to change the value for ‘Selection’ field in the ‘Extract Structure’ tab.  I that case, how can I really enable some field which are by default hidden from the BW data source? Also how can I extend the whole thing to take into some custom fields as well that I have created for the Sales Transaction as well.
    Thanks
    AGN

    hi Arun,
    take a look oss note 692195, steps if you add new fields.
    try to read bw350 course material, there is one chapter talk crm extraction, explain bw adapter, bdoc, etc.
    and perhaps check bi best practice
    http://help.sap.com/bp_biv235/BI_EN/index.htm
    ->customer relationship management
    692195 - FAQ: Sales Analytics and CRM-BW data Extraction
    Question 4: How can I extract the fields, which are not provided in the standard  data source extraction .
    Suggestion 4: Follow the steps mentioned below.
    1. Enhance Extract Structure with the required fields. (Create & include
       an append structure to the extract structure via transaction RSA6).
    2.a) Release the fields of the append  for usage. (  To do this, double
       click on the Datasource and remove the flags in the column 'Hide
       Field' for all fields of Append. )
    2.b)If the new fields cannot be seen in the extract structure of
        the transaction BWA1 then change and save the datasource, and then
        activate it in RSA6.
    3. Define your mappings in BADI (CRM_BWA_MFLOW) to fill these fields.
    Goto SPRO .
    Follow the path ->
    SAP Implementation guide ->Implementation with other mySAP components ->
    Data transfer to the Business Information Warehouse->
    Settings for the application specific datasources (CRM)->
    Settings for BW adapter->
    Badi :BW adapter :Enhancement of datasources in messaging flow.
    4. Replicate the new Datasource to BW.
    5. Expand the Communication Structure in BW.
    6. Maintain transfer Rules for the new Datasource.
    7. Activate the trasfer rules and perform the upload.

  • Strange benchmark result need some explanation

    I was testing the efficiency of the transpose function in Labview so I did a simple test setup starting with by using a constant as source. At some time I changed the constant to a control, and the processing time dropped from about 4200 msec to a number between 1 and 2 msec. I could reproduce the result at every run. Why is it like this?
    I include my test VI in 8.0
    Edit: I was using Labview 8.6 for this test, and Could not see any major differences in buffer allocations
    Message Edited by Coq Rouge on 07-29-2009 10:51 AM
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    transpose_test.vi ‏196 KB

    Thank you for your answer Rolf. And to be honest this behavior do not cause any problem for me. I wanted to see if the transpose array could cause any problem for me regarding timing. The transpose array function is more than fast for my amount of data(2x20000 dbl) . But in the future, if I need an big array constant. I will test and see if a control set to default values and hidden, perform better.   
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Need some help regarding the component usage

    Dear ALL,
    I have one scenario something like this .
    I have a main component say ZComp1  and in it i have created one view in which we two drop downs and i have 28 view containers depending upon the drop down values these view containers will be visible here all the view container i am using for displaying by means of component usage (i.e 28 compoenents i am calling into my main ). So now when i run my main application it is taking minimu of 2 mins to display the screen .  To test whats the problem i have written some code in the handle default of main window and  set the break point what i observed is quite surprising that when i run the apllication it takes hardly 2 mins of time to reach my handledefault method (which is the first one to trigger when i run the apllicatin) . Please suggest me what can be doen to overcome this issue. or suggest some alternative to improve  performance.
    Note : When there is less amount of data in the screen then it takes less time to execute or else it takes hell lot of time plz suggest :(.
    Awaiting for your valuable suggestions.
    Regards,
    Sana.

    Hi Misbah,
    28 VCO are too much in  a view.
    So, try to revamp teh design and reduce the VCO's in a view.
    Another thing would be, Every WDDOINIT, and WDDOMODIFY view of the used components would be called when you try to load the component at first.
    In your case that is happening, and please check and confirm it.
    A proper modular design would be a better approach in handling the situation.
    Good day!
    Regards,
    Shashikanth. D

  • Just needed some clarification regarding the Viewer Builder and actually publishing your App...

    If someone could let me know if my understanding is correct, that'd be a huge help... So I've designed my publication in InDesign and exported the .zip file from the Folio Producer. I've created all of my certificates/splash screens/icons. Lastly, I just recently went through the steps of the Viewer Builder. I'm now at the stage of this process that requires me to purchase the $395 single edition so that I can enter the serial number in the last stage of the Viewer Builder. Now, to my knowledge, once I get the serial number, Viewer Builder will then give me access to an .ipa file and a .zip file. The .ipa file is for me to test on my iPad, and the .zip would be used to distribute to the App Store. I guess this is where I get confused... Let's say after I test the .ipa on my iPad, I don't like some part of my publication. I know how to update my own documents obviously, and I understand that I would have to export another .zip file from the Folio Producer, in turn requiring me to edit the exported folio link in the Viewer Builder. If I had to do that, would I need to purchase another single edition serial number since the original App was edited? Or would the same serial number apply since I'm editing that same App in the Viewer Builder? My next question is somewhat similar. Let's say all of the information is up to date and I go ahead and publish the App to the App Store. However, maybe a month later or some time in the future, I needed to update a phone number or email address--some little detail like that. Again, I understand that I'd have to update the export link in the Viewer Builder, but would I then need to create a new app since my app was already published? Would I then have to purchase another $395 single edition serial number just so that I can update my information? This seems to be the only thing in this whole process that I could use some clarification on so that I don't run into any surprises in the future. Any help would be great, thanks!

    Hi Joshua,
    When you have purchased the serial, you can rebuild your app with your updated content, as long as you use the same bundleID (applicationID), that is tied to your Apple mobile provisioning profile. The serial number is valid for a one year period.
    After you have submitted your app to Apple and it has been approved, please read: http://forums.adobe.com/message/4172167#4172167
    With kind regards,
    Klaasjan Tukker
    Adobe Systems

  • Need some Guide regarding Configuration of Sender Mail Adapters....

    Hellow All Members,
      Can anybody refer me to some blogs other than SAP's own help which talks about use and configuration of sender mail adapters...
    Thanks in Advance,
    Sugata

    Hi Sugata,
    These links i guess should help you understand clearly as to how to configure your sender mail adapter.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/frameset.htm">Configuring the Sender Mail Adapter</a>
    <a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure Adapter scenarios – SAP Exchange Infrastructure</a>
    <a href="/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address Adapter (XI) - how to implement dynamic mail address</a>
    Also refer these links:
    http://www.microsoft.com/exchange/evaluation/compare/ClientCompare.mspx
    http://www.microsoft.com/exchange/evaluation/whatis.mspx
    http://www.trincoll.edu/depts/cc/documentation/email/IMAP_vs_POP/default.htm
    http://www.imap.org/papers/imap.vs.pop.brief.html
    Also please go through these notes:
    <b>804102</b>
    xi 3.0 mail adapter with pop3 user authentication problem
    <b>810238</b>
    XI 3.0 Mail Adapter for POP3 may not report some errors
    Just an additional info <b>"sender mail adapter is to convert e-mails to XI messages"</b>
    Regards,
    abhy

  • Need some help regarding Client Proxy generation and test via SOAMANAGER

    Hello,
    we are integrating a 3rd party Java client via webservices.
    For that matter I generated a client proxy (consumer proxy) in se80 using the existing WSDL.
    This worked fine.
    The I wanted to create a logical port.
    Since this is only possible in SOAMANAGER I tried it there.
    Trying to do this automatically by the given WSDL file didn't work. The system dumps.
    So, I tried the manual approach by entering the server name and path in the 'Transport settings' tab.
    Now I wanted to test this.
    Unfortunately the test function in se80 (Proxy->Test) doesn't show a positive result.
    I always get an error
    SOAP:1.023 SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response:
    ICM_HTTP_CONNECTION_FAILED")
    So, I am kind of stuck here.
    Do you guys have any idea what's wrong (approach, settings, bugs)?.
    I tested the webservices with a test application (soapUI), and they work fine.
    So it seems to be a problem in the proxy framework or a network problem?
    I really appreciate any kind of help.
    Thanks,
    Michael

    i created the port in soamanager.Do i need to create in lpconfig also?
    yes i have loaded the certificate in strust.
    i am getting the response also from the web service. as Security requirements are not satisfied because the security header is not present in the incoming message.
    i need to pass the user name and password while using the method.wsse security.wld u have any clue?

  • Need some material regarding sap crm base customization

    hi to
    this is nagaraju want some material about base customization in sap crm ,
    if any one having plz forward to me
    my mail id [email protected]

    Hi nagaruju,
       Look at best practices.
    -<a href="http://help.sap.com/bp_crmv250/CRM_DE/index.htm">SAP Best Practices for Customer Relationship Management - V2.50</a>
    Regards.
    Manuel

Maybe you are looking for