Hello,
I used wsif in order to make a direct call to a JavaBean as a Web Service.
However, in order to have the caller and the implementation Beans not coupled at all, I need to extend the base Java provider in order to perform a copy between the caller arguments objects and the implementation arguments objects (also for the return objects).
This was done by implementing a specific Java provider that extends the classes of the base Java provider.
But I found some fieds of those classes were declared private where they should be declared protected in order to be accessible by the derived class.
The concerned files are: WSIFOperation_Java.java and WSIFPort_Java.java
Please find the cvs diff for these files. I used the WSIF_2_0-uses-wsdl4j-1_4-patches branch.
Jeff
Index: java/src/org/apache/wsif/providers/java/WSIFOperation_Java.java
===================================================================
RCS file: /home/cvspublic/ws-wsif/java/src/org/apache/wsif/providers/java/WSIFOperation_Java.java,v
retrieving revision 1.44
diff -u -r1.44 WSIFOperation_Java.java
--- java/src/org/apache/wsif/providers/java/WSIFOperation_Java.java 14 May 2003 12:30:22 -0000 1.44
+++ java/src/org/apache/wsif/providers/java/WSIFOperation_Java.java 23 Mar 2005 17:15:54 -0000
@@ -123,7 +123,7 @@
protected boolean fieldIsConstructor = false;
protected Map fieldTypeMaps = null;
protected boolean multiOutParts = false;
- transient private Object returnClass = null;
+ transient protected Object returnClass = null;
private class FaultMessageInfo {
String fieldMessageName;
@@ -182,7 +182,7 @@
Trc.exit(deep());
}- private WSIFOperation_Java(
+ protected WSIFOperation_Java(
Port p,
WSIFPort_Java pj,
BindingOperation bo,Success, CVS operation completed
Index: java/src/org/apache/wsif/providers/java/WSIFPort_Java.java
===================================================================
RCS file: /home/cvspublic/ws-wsif/java/src/org/apache/wsif/providers/java/WSIFPort_Java.java,v
retrieving revision 1.16
diff -u -r1.16 WSIFPort_Java.java
--- java/src/org/apache/wsif/providers/java/WSIFPort_Java.java 3 Apr 2003 15:01:52 -0000 1.16
+++ java/src/org/apache/wsif/providers/java/WSIFPort_Java.java 18 Mar 2005 23:09:54 -0000
@@ -113,7 +113,7 @@
transient private java.lang.Object fieldObjectReference; // 'physical connection'
private final boolean separatedObjectRef; // DO NOT INITIALIZE UNTIL CONSTRUCTOR
- private Map fieldTypeMaps;
+ protected Map fieldTypeMaps;
transient protected Map operationInstances;/**
Success, CVS operation completed
-- Jeff MAURY SCORT CTO
##### ##### ####### ###### #######
# # # # # # # # #
# # # # # # #
##### # # # ###### #
# # # # # # #
# # # # # # # # #
##### ##### ####### # # #
Extending the net to the mainframe
==================================
begin:vcard fn:Jeff MAURY n:MAURY;Jeff org:SCORT adr;dom:;;<img src="http://www.scort.com/webfr/images/logos/logo_scort.gif"> email;internet:[EMAIL PROTECTED] url:http://www.scort.com version:2.1 end:vcard
smime.p7s
Description: S/MIME Cryptographic Signature
