Win a copy of Rust Web Development this week in the Other Languages forum!

Manzoor Elahi

Greenhorn
+ Follow
since May 11, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Manzoor Elahi

Hi All,

We are using a client web service and in one of the methods the response is a byte array. but when the program is run, the response for this method is always null. That means the returned byte array is null.
following is the method.

But when i use SOAP UI and check , the byte array is returned but the response time is about 40 seconds . also ,when i put a debug point (I use Intelli J idea) then the time taken is more but i do get the byte array.
but whenever we run the compiled code, We are not able to get the byte array due to high response time.
How can i ensure that my web service call waits till it gets the complete response?
Also, I have set the
in the getService() method , i tried increasing that to 6000000 but still i am not able to get the complete response in the above method
9 years ago
Hi All,

Apologies , if this is the wrong thread , But i am pretty desperate to get started. kindly help

I have a fairly good knowledge of Java Programming. Now one of my projects demands for me to know about web services , DTD , XML parsing. Please suggest me good books for the same.

And most of the books reviewed here are published atleast 2 years back. Please tell me any book that has been updated recently.

I need to study about the following.

1. Creating and Calling Web services.( I have 2 weeks , so i would like a comprehensive study guide , Including SOA , Enterprise Architecture etc )
2. Parsing XML using SAX parser ( i have worked on DOM parser , but i find SAX parser has been implemented in Many ways)
3. Enterprise Architecture in general
4. Websphere Application Server . ( i already have Pro (IBM) WebSphere Application Server 7 ) is this book sufficient

Please help me find some resources.

Thanks
11 years ago
Hi All,

I have a fairly good knowledge of Java Programming. Now one of my projects demands for me to know about web services , DTD , XML parsing. Please suggest me good books for the same.

And most of the books reviewed here are published atleast 2 years back. Please tell me any book that has been updated recently.

I need to study about the following.

1. Creating and Calling Web services.( I have 2 weeks , so i would like a comprehensive study guide , Including SOA , Enterprise Architecture etc )
2. Parsing XML using SAX parser ( i have worked on DOM parser , but i find SAX parser has been implemented in Many ways)
3. Enterprise Architecture in general
4. Websphere Application Server . ( i already have Pro (IBM) WebSphere Application Server 7 ) is this book sufficient

Please help me find some resources.

Thanks
11 years ago
I managed to do it this way, Not the right way but can someone suggest what is "very" wrong in the below program so that i do it better next time

Hi All

I have the following code running fine in WIndows. But in need to run the same in Linux. What changes do i need to make to access the folders to read and write the files.


Also , I will have to create a jar out of this and run the same every 5 minutes in the linux environment. Any Suggestions as to how can i set up a cron job will also be very helpful.

Third Help Any suggestions how i can improve the above code will also be very helpful. This is a Stand alone program and will run as an executable jar.

Thanks in Advance,
11 years ago
The following XML



As you can see there is a node called PRODUCT inside the PRODUCTS tag,and the PRODUCT tag itself has a child tag by name PRODUCT.

I need to replace all the Product tags with a separate value.



The Above gives me a nodelist of products. how do i extract the child "PRODUCT" Nodes from the nodelist
Here id the XML :
<STEP-ProductInformation ContextID="en_US" WorkspaceID="Main">
<Products>
<Product ID="Kulkarni" UserTypeID="Product Group" ParentID="Ramesh">
<Name>Kulkarni</Name>
<Product ID="Unilog - play identificat" UserTypeID="Product Group">
<Name>01001 Play Identification</Name>
<Values>
<Value AttributeID="SP_FIELD_NAME">IDENTIFICATION</Value>
</Values>
<Product ID="Unilog - Author Email" UserTypeID="Product Number">
<Name>02003 Author Email</Name>
<Values>
<Value AttributeID="SP_FIELD_NAME">AUTHOR_EMAIL</Value>
<Value AttributeID="SP_FIELD_VALUE">deborah bine/raleigh/ibm@ibmus</Value>
<Value AttributeID="SP_FIELD_INSTRUCTION">CDATA</Value>
</Values>
</Product>
<Product ID="Unilog - expire date" UserTypeID="Product Number">
<Name>02004 Expire Date</Name>
<Values>
<Value AttributeID="SP_FIELD_NAME">SP_EXPIRE_DATE</Value>
<Value AttributeID="SP_FIELD_VALUE">20120427</Value>
<Value AttributeID="SP_FIELD_INSTRUCTION">CDATA</Value>
</Values>
</Product> <Product ID="Unilog - published" UserTypeID="Product Number">
<Name>02005 Published (announce)</Name>
<Values>
<Value AttributeID="SP_FIELD_NAME">PPUBLISH</Value>
<Value AttributeID="SP_FIELD_VALUE">20100427</Value>
<Value AttributeID="SP_FIELD_INSTRUCTION">CDATA</Value>
</Values>
</Product>
<Product ID="Unilog - play name" UserTypeID="Product Number">
<Name>02002 Play Name</Name>
<Values>
<Value AttributeID="SP_FIELD_NAME">PLAY_NAME</Value>
<Value AttributeID="SP_FIELD_VALUE">Improve Checkout</Value>
<Value AttributeID="SP_FIELD_INSTRUCTION">CDATA</Value>
</Values>
</Product>
<Product ID="Unilog - pkey" UserTypeID="Product Number">
<Name>02001 Pkey</Name>
<Values>
<Value AttributeID="SP_FIELD_NAME">PKEY</Value>
<Value AttributeID="SP_FIELD_VALUE">modulenumberusen</Value>
<Value AttributeID="SP_FIELD_INSTRUCTION">CDATA</Value>
</Values>
</Product>
</Product>
</Product>
</Products>
</STEP-ProductInformation>

I am trying to change the highlighted text. which is occuring more than once ,

I have written the following code till now.


I dont know how to proceed next
HI ALL,

I tried alot, I am able to get the CSV values in a MAP with <String,String> format. I am not able to parse the xml file and replace its tags. Can someone please provide the code for it. I am new to XML technologies and i am really desperate to get this problem solved. any help would be really appreciated.

Thanks,
Manzoor
Hi ,

I have a CSV file as below

VALUE 1A , VALUE 1B
VALUE 2A , VALUE 2B
VALUE 3A , VALUE 3B
etc

i need to store the values in a map as a key value pair, map<VALUE1A , VALUE1B>so on, so that i can process it further.

Can someone please help me how to do it. I end up inserting same values as both the key and value.

If someone can provide a code snippet it would be really helpful

TIA

Manzoor
11 years ago
Thanks for the reply,

i have one more doubt,

Existing Node = <Product ID="role (contact) 3" UserTypeID="Product Number">

To be changed to = <Product ID= role (contact)3" UserTypeID="Product Number">

i have to change only the highlighted text, for that is replacing the full tag the only option or can i replace the attribute value

Hi All,

I have an XML file, say RESULT.XML Which has about 30000 Lines (yes Thirty Thousand ). For some reason i need to replace an existing tag with a different tag(not the value inside the tag, But the tag itself) . I am facing a challenge. I will explain it as below.

I have a csv file which has 2 values as given below
<VALUE A> , <VALUE B>

where <VALUE A> is an existing node in the RESULT.XML and <VALUE B> is the node that should replace <VALUE A> in the RESULT.XML

i have 500 such entries in the file.

Now i need to write a program to read the csv file, Search <VALUE A> in the RESULT.XML and Replace it with <VALUE B> of the csv file.

please let me know how do i start with this.
I really want to fix this issue.

Existing Node = <Product ID="role (contact) 3" UserTypeID="Product Number">

To be changed to = <Product ID= role (contact)3" UserTypeID="Product Number">


please reply if you need any further information

Thanks in Advance

Manzoor