austin puthur

Greenhorn
+ Follow
since Jul 21, 2004
Merit badge: grant badges
For More
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 austin puthur

Hi,


I have a serious issue...can any body help me out....
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<getPricedAvailability xmlns="http://www.openuri.org/" xmlns:tget="http://www.ba.com/schema/tGetPricedAvailabilityV1">
<tget:GetPricedAvailabilityRequest>
<Name>ian</Name>

....i need to add a tag name[in between the two tags] <asl>US </asl>

<age>1234</age>


</tget:GetPricedAvailabilityRequest>
</getPricedAvailability>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope


Can any one suggest or send me the piece of code which does this..

i tried to add the tag by using the below code but in vain it didn't happen ...it is not adding in between the 2 tags.
it is adding after <age>.... Can any one help me in this...Is there is any other way of parsing the SOAP message is possible



SOAPMessageContext smc = (SOAPMessageContext)mc;
SOAPMessage sm = smc.getMessage();
SOAPEnvelope env = sm.getSOAPPart().getEnvelope();
SOAPBody body = env.getBody();

javax.xml.soap.Name sName;
System.out.println(" Entering callEndTag #########################################");
System.out.println("body"+body +" "+"env"+env);

if ( body != null ){
java.util.Iterator childElems = body.getChildElements();
SOAPElement child;
int i=0;
// iterate through child elements
while (childElems.hasNext())
{
System.out.println("childElems" +childElems);

Object elem = childElems.next();

System.out.println("elem" +elem);

if(elem instanceof SOAPElement )
{
// get child element and its name
child = (SOAPElement) elem;

sName = child.getElementName();
if (sName.getLocalName().equals("getPricedAvailability"))
{

childElems = child.getChildElements();
while (childElems.hasNext())
{
// get next child element
elem = childElems.next();
if(elem instanceof SOAPElement )
{

child = (SOAPElement) elem;
sName = child.getElementName();

if (sName.getLocalName().equals("GetPricedAvailabilityRequest"))
{childElems = child.getChildElements();
sName = child.getElementName();

System.out.println("SNAME inSIDE IF LOOP" +sName);

System.out.println("If Elem is a) instance ====After");



if (childElems.hasNext())
{
// get next child element
elem = childElems.next();

System.out.println("If Elem is a) instance == before");

if(elem instanceof SOAPElement )
{


System.out.println("If Elem is a) instance ====After");
System.out.println("before type cast" );
child = (SOAPElement) elem;
sName = child.getElementName();
System.out.println("Start adding process added end date" +sName);



SOAPElement fResponse12 = child.addChildElement(env.createName("EndDate-- ==child "));

fResponse12.addAttribute(env.createName("xmlns"),
"");
fResponse12.addTextNode(strEndDate );
}
}
}
}
}
}
((SOAPMessageContext)mc).setMessage(sm);
17 years ago
can any one send me the soft copy of UML distilled by fowler/Scott....


austinpj_puthur@rediffmail.com
with thanks
austin
I am getting the following error when i am trying to war

adding: D:/austin/temp/sample/ROOT.warjava.util.zip.ZipException: attempt to wri
te past end of STORED entry
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:264)
at sun.tools.jar.Main.addFile(Main.java:614)
at sun.tools.jar.Main.create(Main.java:412)
at sun.tools.jar.Main.run(Main.java:142)
at sun.tools.jar.Main.main(Main.java:903)
18 years ago
I am getting the following error when i am trying to war

adding: D:/austin/temp/sample/ROOT.warjava.util.zip.ZipException: attempt to wri
te past end of STORED entry
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:264)
at sun.tools.jar.Main.addFile(Main.java:614)
at sun.tools.jar.Main.create(Main.java:412)
at sun.tools.jar.Main.run(Main.java:142)
at sun.tools.jar.Main.main(Main.java:903)


kindly let me knoe if any solutions r there
18 years ago
Hi pradeep,

I thought of buying a whizlab CD pack of SCWCD+SCBCD+SCEA. ..
I saw the promotional prices in the website.
The information i wanna to knoe is will i get a CD pack or i will have to download .Since the bandwidth is very low in my place ..it is very hard to download here ..
and the second thing i wanna to knoe is... If they sends me a CD will i am able to install in more than two system...Because i wanna to install it in my pc @ house as well as in the office...

Kindly let me knoe the details about ASAP.



with thanks
austin
hi,

Any one help me to hide the arrow button in the JCombo box
19 years ago