duftler 02/05/02 14:02:03
Modified: java/src/org/apache/soap/rpc Call.java
Log:
Fixed a problem that would cause a Call object's targetObjectURI property
to get set to null if a Fault was returned. For more info, please see:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3141
Submitted by: [EMAIL PROTECTED] (Michael J. Hudson)
Reviewed by: [EMAIL PROTECTED] (Matthew J. Duftler)
Revision Changes Path
1.13 +7 -2 xml-soap/java/src/org/apache/soap/rpc/Call.java
Index: Call.java
===================================================================
RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/rpc/Call.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- Call.java 2 Aug 2001 16:49:26 -0000 1.12
+++ Call.java 2 May 2002 21:02:03 -0000 1.13
@@ -267,8 +267,13 @@
// Extract the response from the response envelope.
Response resp = Response.extractFromEnvelope(respEnv, smr, respCtx);
- // Reset the TargetObjectURI in case it was changed by the server
- setTargetObjectURI( resp.getFullTargetObjectURI() );
+ // Reset the targetObjectURI in case it was changed by the server
+ String fullTargetObjectURI = resp.getFullTargetObjectURI();
+
+ if (fullTargetObjectURI != null)
+ {
+ setTargetObjectURI(fullTargetObjectURI);
+ }
return resp;
}