Page 3 of 3 FirstFirst 123
Results 41 to 51 of 51
  1. #41
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

  2. #42
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

    Default

    hey sir, finally its working..
    i just need to change the codes for displaying.... like this:

    java.lang.String display = "";

    for(int i = 0; i < d.size(); i++){
    org.hogauctionwebservice.AveragePricePerDay tm = d.get(i);
    display +="[ Date= " + tm.getDate().toString() +", Price= "+ tm.getAvePrice().toString()+"]";
    }
    lblResult.setText(display );

  3. #43
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Ya, that's much better when you do that in the for loop, what happen is continuously change the text on the label. It's happen in really fast and you cannot see anything on that label. This is fine.

  4. #44
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

    Default

    yea.
    thanks you very much for the much needed help.

  5. #45
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

    Default

    by the way, do you know what may cause this error:
    because im doing another quite similar from the first, just that for this, i just need to select a date from a calendar and display the data.

    this is using another WSDL file

    javax.xml.ws.WebServiceException: class org.hogtransactionservice.GetTransactions do not have a property of the name {http://HogTransactionService.org/}dtStart

  6. #46
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Most probably that error message show the line of the code where error is contain? Is it?

    Most of the time the text http://HogTransactionService.org/ not valid there. May be the application builder added it as a dummy value there.

  7. #47
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    Most probably that error message show the line of the code where error is contain? Is it?

    Most of the time the text http://HogTransactionService.org/ not valid there. May be the application builder added it as a dummy value there.
    cant seems to debug also. will stopped ....
    hmm is there any way to solve this error?
    which mean, we need to do something to http://HogTransactionService.org to pass some value?

  8. #48
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

    Default

    from the WSDL:

    - <wsdl:types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://HogTransactionService.org/">
    - <s:element name="getTransactions">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="dtStart" type="s:date" />
    </s:sequence>
    </s:complexType>
    </s:element>

  9. #49
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  10. #50
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    Is that project document doesn't say anything about that?
    nope. it does not state any...
    the WSDL document was done with .net visual studio.
    hmm...

  11. #51
    fiqueudrue's Avatar
    fiqueudrue is offline Member
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    55
    Rep Power
    0

    Default

    i read somewhere about his...:

    how can i change the SOA toolkits

    Netbean 5.5.1 uses the JAXB library by default to generate the java classes from the WSDL and for processing the SOAP Requests/Responses. If look into those automatically generated java files, it's easy to found that the classes that use the AdjustmentMethod enumeration contain only the get methods, but no set methods. The limitation of JAXB is the cause of the exception. So far, there is no solution or a patch from Sun that can solve the problem.

    Suggestion:

    1. You can switch your development environment by using Eclipse with axis2 library (and alternative SOAP toolkit, you can get it from this location ).

    2. If you have to stay with NetBeans as you IDE, then you should consider using an alternative SOAP toolkit. You can use the Axis2 library (you can get it from this location) to do the job instead of JAXB library. The following is the detail steps about setting the axis2 library to NetBeans:
    Use the following command at your axis bin directory:
    ..\axis2\bin>wsdl2java.bat -uri http://www.xignite.com/xGlobalHistorical.asmx?wsdl -g -ss

    copy the ..\axis2\bin\src\com folder to your NetBeans project source folder (same folder contains all the java files you wrote).


    Note: It is important to use the option -g -ss. If you don't use these options, axis will generate a java file that is close to 3MB, and NetBeans seems having trouble to handle such a large java file.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Is it possible to code like this?
    By Orange in forum New To Java
    Replies: 8
    Last Post: 08-13-2008, 10:29 AM
  2. Need help with web code
    By nemutah1 in forum New To Java
    Replies: 1
    Last Post: 07-10-2008, 08:33 PM
  3. I need help fixing my code.. or non code?
    By MrHuggykins in forum New To Java
    Replies: 1
    Last Post: 03-19-2008, 10:12 PM
  4. tic tac toe code
    By zoe in forum New To Java
    Replies: 1
    Last Post: 07-23-2007, 04:36 PM
  5. Replies: 1
    Last Post: 04-26-2007, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •