Package org.apache.axis.wsdl.toJava
Class JavaStubWriter
java.lang.Object
org.apache.axis.wsdl.toJava.JavaWriter
org.apache.axis.wsdl.toJava.JavaClassWriter
org.apache.axis.wsdl.toJava.JavaStubWriter
- All Implemented Interfaces:
Generator
This is Wsdl2java's stub writer. It writes the Stub.java
file which contains the Stub class.
-
Field Summary
FieldsFields inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
className, namespaces, packageName
Fields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
emitter, LINE_LENGTH, type
-
Constructor Summary
ConstructorsConstructorDescriptionJavaStubWriter
(Emitter emitter, BindingEntry bEntry, SymbolTable symbolTable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns "extends org.apache.axis.client.Stub ".protected String
Returns "implements". protected void
writeBindingMethods
(PrintWriter pw, List deferredBindings) for each of the TypeEntry objects in the deferredBindings list, we need to write code that will associate a class with a schema namespace/name.protected void
writeFaultInfo
(PrintWriter pw, javax.wsdl.BindingOperation bindOp) This function writes the regsiterFaultInfo API callsprotected void
Write the body of the binding's stub file.protected void
writeOperation
(PrintWriter pw, javax.wsdl.BindingOperation operation, Parameters parms, String soapAction, String opStyle, boolean oneway, int opIndex) Write the stub code for the given operation.protected void
Method writeOperationMapprotected void
writeOutputAssign
(PrintWriter pw, String target, Parameter param, String source) writeOutputAssignprotected void
writeParameters
(PrintWriter pw, Parameters parms) Method writeParametersprotected void
writeResponseHandling
(PrintWriter pw, Parameters parms) Method writeResponseHandlingprotected void
writeSerializationDecls
(PrintWriter pw, boolean hasMIME, String namespace) In the stub constructor, write the serializer code for the complex types.protected void
writeSerializationInit
(PrintWriter pw, TypeEntry type) Method writeSerializationInitMethods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
getClassModifiers, getClassName, getClassText, getFileName, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage
Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, generate, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
-
Field Details
-
log
protected static org.apache.commons.logging.Log logField log
-
-
Constructor Details
-
JavaStubWriter
Constructor.- Parameters:
emitter
-bEntry
-symbolTable
-
-
-
Method Details
-
getExtendsText
Returns "extends org.apache.axis.client.Stub ".- Overrides:
getExtendsText
in classJavaClassWriter
- Returns:
-
getImplementsText
Returns "implements". - Overrides:
getImplementsText
in classJavaClassWriter
- Returns:
-
writeFileBody
Write the body of the binding's stub file.- Specified by:
writeFileBody
in classJavaWriter
- Parameters:
pw
-- Throws:
IOException
-
writeBindingMethods
for each of the TypeEntry objects in the deferredBindings list, we need to write code that will associate a class with a schema namespace/name. This method writes a number of private methods out that do this in batches of size MAXIMUM_BINDINGS_PER_METHOD so that generated classes do not end up with a single method that exceeds the 64K limit that the VM imposes on all methods.- Parameters:
pw
- aPrintWriter
valuedeferredBindings
- aList
of TypeEntry objects
-
writeOperationMap
Method writeOperationMap- Parameters:
pw
-
-
writeFaultInfo
This function writes the regsiterFaultInfo API calls- Parameters:
pw
-bindOp
-
-
writeSerializationDecls
In the stub constructor, write the serializer code for the complex types.- Parameters:
pw
-hasMIME
-namespace
-
-
writeSerializationInit
Method writeSerializationInit- Parameters:
pw
-type
-
-
writeOperation
protected void writeOperation(PrintWriter pw, javax.wsdl.BindingOperation operation, Parameters parms, String soapAction, String opStyle, boolean oneway, int opIndex) Write the stub code for the given operation.- Parameters:
pw
-operation
-parms
-soapAction
-opStyle
-oneway
-opIndex
-
-
writeParameters
Method writeParameters- Parameters:
pw
-parms
-
-
writeResponseHandling
Method writeResponseHandling- Parameters:
pw
-parms
-
-
writeOutputAssign
writeOutputAssign- Parameters:
pw
-target
- (either "return" or "something ="source
- (source String)
-