You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2005/02/16 06:28:52 UTC
svn commit: r153996 -
webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample1/src/samples/userguide/sample1/client
webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample2/src/samples/userguide/sample2/client
webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample3/src/samples/userguide/sample3/client
Author: chathura
Date: Tue Feb 15 21:28:50 2005
New Revision: 153996
URL: http://svn.apache.org/viewcvs?view=rev&rev=153996
Log:
Change from instance of to getType in the Client stub for checking the OMText or OMElement
Modified:
webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample1/src/samples/userguide/sample1/client/InteropTest_Stub.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample2/src/samples/userguide/sample2/client/InteropTest_Stub.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample3/src/samples/userguide/sample3/client/InteropTest_Stub.java
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample1/src/samples/userguide/sample1/client/InteropTest_Stub.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample1/src/samples/userguide/sample1/client/InteropTest_Stub.java?view=diff&r1=153995&r2=153996
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample1/src/samples/userguide/sample1/client/InteropTest_Stub.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample1/src/samples/userguide/sample1/client/InteropTest_Stub.java Tue Feb 15 21:28:50 2005
@@ -104,20 +104,20 @@
Iterator childrenIter = body.getChildren();
while(childrenIter.hasNext()){
OMNode child = (OMNode) childrenIter.next();
- if(child instanceof OMElement && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
throw new AxisFault("Fault in server side");
}
- if(child instanceof OMElement && "echoStringResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoStringResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
response = (OMElement)child;
}
}
Iterator textChild = response.getChildren();
while(textChild.hasNext()){
OMNode child = (OMNode) textChild.next();
- if(child instanceof OMElement && "echoStringReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoStringReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
OMNode val =((OMElement)child).getFirstChild();
- if(val instanceof OMText)
+ if(val.getType() == OMNode.TEXT_NODE)
return new String(((OMText)val).getValue());
}
@@ -133,10 +133,10 @@
Iterator childrenIter = body.getChildren();
while(childrenIter.hasNext()){
OMNode child = (OMNode) childrenIter.next();
- if(child instanceof OMElement && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
throw new AxisFault("Fault in server side");
}
- if(child instanceof OMElement && "echoIntResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoIntResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
response = (OMElement)child;
}
}
@@ -144,10 +144,10 @@
Iterator textChild = response.getChildren();
while(textChild.hasNext()){
OMNode child = (OMNode) textChild.next();
- if(child instanceof OMElement && "echoIntReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoIntReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
OMNode val =((OMElement)child).getFirstChild();
- if(val instanceof OMText)
+ if(val.getType() == OMNode.TEXT_NODE)
return new Integer(((OMText)val).getValue());
}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample2/src/samples/userguide/sample2/client/InteropTest_Stub.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample2/src/samples/userguide/sample2/client/InteropTest_Stub.java?view=diff&r1=153995&r2=153996
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample2/src/samples/userguide/sample2/client/InteropTest_Stub.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample2/src/samples/userguide/sample2/client/InteropTest_Stub.java Tue Feb 15 21:28:50 2005
@@ -109,21 +109,21 @@
Iterator childrenIter = body.getChildren();
while(childrenIter.hasNext()){
OMNode child = (OMNode) childrenIter.next();
- if(child instanceof OMElement && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
throw new AxisFault("Fault in server side");
}
- if(child instanceof OMElement && "echoStringResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoStringResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
response = (OMElement)child;
}
}
Iterator textChild = response.getChildren();
while(textChild.hasNext()){
OMNode child = (OMNode) textChild.next();
- if(child instanceof OMElement && "echoStringReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoStringReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
OMNode val =((OMElement)child).getFirstChild();
- if(val instanceof OMText)
+ if(val.getType() == OMNode.TEXT_NODE)
return new String(((OMText)val).getValue());
}
@@ -139,11 +139,11 @@
Iterator childrenIter = body.getChildren();
while(childrenIter.hasNext()){
OMNode child = (OMNode) childrenIter.next();
- if(child instanceof OMElement && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
throw new AxisFault("Fault in server side");
}
- if(child instanceof OMElement && "echoIntResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoIntResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
response = (OMElement)child;
}
}
@@ -151,10 +151,10 @@
Iterator textChild = response.getChildren();
while(textChild.hasNext()){
OMNode child = (OMNode) textChild.next();
- if(child instanceof OMElement && "echoIntReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoIntReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
OMNode val =((OMElement)child).getFirstChild();
- if(val instanceof OMText)
+ if(val.getType() == OMNode.TEXT_NODE)
return new Integer(((OMText)val).getValue());
}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample3/src/samples/userguide/sample3/client/InteropTest_Stub.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample3/src/samples/userguide/sample3/client/InteropTest_Stub.java?view=diff&r1=153995&r2=153996
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample3/src/samples/userguide/sample3/client/InteropTest_Stub.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/samples/userguide/sample3/src/samples/userguide/sample3/client/InteropTest_Stub.java Tue Feb 15 21:28:50 2005
@@ -117,20 +117,20 @@
Iterator childrenIter = body.getChildren();
while(childrenIter.hasNext()){
OMNode child = (OMNode) childrenIter.next();
- if(child instanceof OMElement && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
throw new AxisFault("Fault in server side");
}
- if(child instanceof OMElement && "echoStringResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoStringResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
response = (OMElement)child;
}
}
Iterator textChild = response.getChildren();
while(textChild.hasNext()){
OMNode child = (OMNode) textChild.next();
- if(child instanceof OMElement && "echoStringReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoStringReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
OMNode val =((OMElement)child).getFirstChild();
- if(val instanceof OMText)
+ if(val.getType() == OMNode.TEXT_NODE)
return new String(((OMText)val).getValue());
}
@@ -146,10 +146,10 @@
Iterator childrenIter = body.getChildren();
while(childrenIter.hasNext()){
OMNode child = (OMNode) childrenIter.next();
- if(child instanceof OMElement && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "Fault".equalsIgnoreCase(((OMElement)child).getLocalName())){
throw new AxisFault("Fault in server side");
}
- if(child instanceof OMElement && "echoIntResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType() == OMNode.ELEMENT_NODE && "echoIntResponse".equalsIgnoreCase(((OMElement)child).getLocalName())){
response = (OMElement)child;
}
}
@@ -157,10 +157,10 @@
Iterator textChild = response.getChildren();
while(textChild.hasNext()){
OMNode child = (OMNode) textChild.next();
- if(child instanceof OMElement && "echoIntReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
+ if(child.getType()== OMNode.ELEMENT_NODE && "echoIntReturn".equalsIgnoreCase(((OMElement)child).getLocalName())){
OMNode val =((OMElement)child).getFirstChild();
- if(val instanceof OMText)
+ if(val.getType()== OMNode.TEXT_NODE )
return new Integer(((OMText)val).getValue());
}