32,199 Topics

Member Avatar for
Member Avatar for Danny_501

Hi, I would like to extract the return (currently false) value from the following XML: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:isPumpOnResponse xmlns:ns="http://webservice.whatever"> <ns:return>false</ns:return> </ns:isPumpOnResponse> </soapenv:Body> </soapenv:Envelope> Is there a way of getting it out of the SOAPMessage object? SOAPMessage soapResponse = soapConnection.call(createSOAPRequest(webMethodName), url); Thanks.

Member Avatar for rubberman
0
218
Member Avatar for jamnoesblunt

Hello I have a text file which contains a dictionery of phrases. I also have another text file. I need to see if any dictionery phrases are inside my larger text file and return the phrases which are in the dictionery. Here is my code so far: private static void …

Member Avatar for stultuske
0
121
Member Avatar for Stan_1

I do not know if this will be of use to anyone but i thought i would just leave it here because i saw a thread where someone asked how to determine if more than one button on a mouse is being pressed and this code below checks to see …

Member Avatar for mKorbel
0
151
Member Avatar for rahulrevolution
Member Avatar for scheppy

Hello All. I have a program that automatically restarts itself atfer a certain amount of time. I am doing this to test some things out. The program is wrapped in a jar. I run the jar from terminal with java -jar ProgramName.jar It will run and will output all the …

Member Avatar for scheppy
0
380
Member Avatar for kavitadc

i am bca student,here is my main html page in that there is dropdownlist,in that thre r lots of root websites...n thre is textbox in that we hv to enter keyword,,,n accordind to that keyword after pressing search button it should be give me all weblinks related to that perticular …

Member Avatar for Slavi
0
118
Member Avatar for Mpradeep

Hi..... this is pradeep I'm intrested to create a better operating system than "Wintel"im also learnt the C,C++ languages.is there any possible to create operating system...........?

Member Avatar for Slavi
0
104
Member Avatar for gahhon

1. What is the format for the first line of a method? 2. How can you view javadoc for a class? For the (1.) I am totally understand by depending on the developer design of the method. But how am i going to explain this since the tutor won't ask …

Member Avatar for stultuske
0
242
Member Avatar for prakash2813

Hello, I am evaluating a string expression using recursion. It is not working for parenthesis, please help me. Here is my code // For Addition and Substraction static int evalAS(String e) { int p1 = e.lastIndexOf("+"); int p2 = e.lastIndexOf("-"); int p = Math.max(p1, p2); if (p == -1) return …

Member Avatar for stultuske
0
310
Member Avatar for andreas.petrou.967

Sort numbers random in array import java.util.*; class FillAndSort { public static void main( String[ ] args ) { if ( args.length != 1 ) { System.err.println( "java FillAndSort <number of doubles>" ); return; //*** exits main and, therefore, the program stops } int n = Integer.parseInt( args[ 0 ] …

Member Avatar for JamesCherrill
0
182
Member Avatar for sri.

i got a below eror on my windows-8 apps when i run this code //code <script src=" /lib/jquery-1.7.2.js"></script> <script src="/js/modcoder_excolor/jquery.modcoder.excolor.js"></script> $(document).ready(function () { $('#my_input').modcoder_excolor(); }); //eror SCRIPT28: Unhandled exception at line 5, column 1174 in ms-appx://fa516517-befe-47aa-89d8-5790abfd39df/lib/script.js 0x800c001c - JavaScript runtime error: Unable to add dynamic content. A script attempted to …

Member Avatar for Kevin_14
0
323
Member Avatar for Mazahir

I have problem to understand threads. Can someone help me to know how i can do rest of this program. Here is program text first: The program will read a file where the first line contains the number of words in the rest of the file, one word on each …

Member Avatar for overwraith
0
324
Member Avatar for techyworld

We are creating a work-flow in which a submitted form-data needs to be approved by dynamic number of people based on the designation of user who submitted it. So if User1 has submitted a form and there are 3 levels in between, before it goes to final approver Uuser5, the …

0
104
Member Avatar for shahera.arafat

Hi everyone :)))) there is a problem here !this code should draw a rectangle whenever I presse on the mouse ! but actually it doesn't do that !! when I execute the prog. it gives me the frame window ! but when I presse the mouse ,it should draw a …

Member Avatar for shahera.arafat
0
107
Member Avatar for lstew48

Help, I have a good pseudocode written that is supposed to get the title of a person and how many boxes in an order and print labels. Here is the pseudocode, please help. start Declarations string title string firstName string lastName string streetAddress string city string state num zip num …

Member Avatar for JamesCherrill
-1
148
Member Avatar for dendenny01

I am trying to execute the query on server side and send the result to the client but at the time of returning the value to the client the error occurs Am trying to achieve this using RPC Protocol but i could not find out how to send back the …

Member Avatar for dendenny01
0
418
Member Avatar for Ian_7

Hello All, I am trying to implement a program that takes a prefix expression/string and converts it into a postfix string. I looked up the general algorithim for this converson and tried to implement it myself into this program. The following code is taken from my main java file. My …

Member Avatar for Ian_7
0
1K
Member Avatar for Trevor_5

my code is as follows: class pottertr_Point{ private String name; private double x; private double y; public pottertr_Point(){ name="Org"; x=(0); y=(0); } public pottertr_Point getPoint(){ pottertr_Point p= new pottertr_Point(); p.name=this.name; p.x=this.x; p.y=this.y; return p ; } public void setPoint(pottertr_Point p){ this.name=p.name; this.x=p.x; this.y=p.y; } public void setName(String name){ this.name=name; } …

Member Avatar for stultuske
0
141
Member Avatar for entropicII

I have recently been writing some code that asks the user questions about german. br = new BufferedReader(new FileReader("C:\\Users\\Patrick\\Desktop\\Java Workspace\\germanTool\\src\\germanTool\\lesson1.txt")); String[] engList = null; String[] deuList = null; int i = 0; while (br.readLine() != null){ lineCount++; line = br.readLine(); engList[i] = line.split("\t")[0]; deuList[i] = line.split("\t")[1]; } Using this code …

Member Avatar for entropicII
0
218
Member Avatar for JorgeM

When users interact with your web page and processes, it is important to provide them with continuous feedback. Without the feedback, a user is left wondering if you page is actually processing work, frozen, or just not working. This is especially true when incorporating Ajax requests that take more than …

2
1K
Member Avatar for divinity02

hi guys j is there a way on how to analyze java snippet of codes, like for loops, while loop to check to see what will be the result of it, whether it would run, what results, or if it would give you any kind of syntax error, run time …

Member Avatar for JamesCherrill
0
114
Member Avatar for learningjav

Create a class to represent a Book. A Book should have a title, author, edition, and number of pages. Choose the most appropriate types for each of these and make them private. Provide set and get methods for each of the instance variables. Also, create a toString() method that returns …

Member Avatar for learningjav
0
84
Member Avatar for Linh_1

can someone show me how to do this please? I am new to programming languge? here is the requirement? Thanks. Create a database table with 10 records with the following fields: Lastname, FirstName, Phone Number, Street Address, City, State, Zipcode. The table name is: “User Info”. Please create the table …

Member Avatar for Aslam Mansoor
0
340
Member Avatar for andruluchko

Hello, I try to rename file or directory using JFileChooser() and JButton(). But it gives me a NullPointer exeption. I have FileChooser, Button and TextField where I write new name for my file or directory. Can you say where I go wrong and how to solve this problem. // button …

Member Avatar for mKorbel
0
1K
Member Avatar for Taz098

Hi, I'm trying to find a creative project for my Java Mini Project which has to be done this summer. I just cannot find satisfaction with most of the projects in 1000projects.org or any other website. I'm looking for a project which is moderately heavy to code and can be …

Member Avatar for JamesCherrill
0
205
Member Avatar for divinity02

hi guys, j how are you all doing, i havent been here for a while, anyone miss me, jus kidding anyway i am trying to build this program, it is just a practice thing but I am getting this error and havent got a clue how to make it work …

Member Avatar for divinity02
0
177
Member Avatar for samsungfanb0y

How does a person go about adding an item to a queue within a gui? I have a textarea and a textfield.

Member Avatar for JamesCherrill
0
76
Member Avatar for shahera.arafat

hi ^_^ I want to write a code to set an (error) text in the Jtextfiled if the number contains more than 1 dot (eventHandling)! but my code actually didn't concatinate with the next digits I've enterded ,for example:(2. ) and stop ! so what is the right solution ?!! …

Member Avatar for shahera.arafat
0
252
Member Avatar for shahera.arafat

hi everyone :) I have a problem here >>which I can't add 2 numbers >> and I don't know what is the solution for that !!>>it always gives me an empty result !and that is because (num2) always parse a (null) value ! so how can I edit the value …

Member Avatar for shahera.arafat
0
299
Member Avatar for Doogledude123

I'm painting a grid on the JPanel and trying to scroll the grid with a JScrollPane. I have a feeling the scrollpane is getting the actual size of the panel, instead of the size including what is not being shown. Something along those lines at least, I can't quite wrap …

Member Avatar for mKorbel
0
1K

The End.