myDataMapping.wsdl
Class ParseWSDL

java.lang.Object
  extended by myDataMapping.wsdl.ParseWSDL

public class ParseWSDL
extends java.lang.Object


Constructor Summary
ParseWSDL()
           
 
Method Summary
 java.util.List<java.lang.String> getAllOpName(java.lang.String fileName)
          get all operation names of given wsdl file
 java.lang.String getMsEleNSUri(java.lang.String fileName)
          filename-->message-->part--->element namespace uri
 java.util.List<java.lang.String> getOpInMsElemName(java.lang.String fileName, java.lang.String opName)
          given operation name, get a list of the element name of all parts of message of input of the operation
 java.util.List<java.lang.String> getOpInMsPartNameList(java.lang.String fileName, java.lang.String opName)
          get the name list of all parts of input of given operation
 java.util.List<java.lang.String> getOpOutMsElemName(java.lang.String fileName, java.lang.String opName)
          given operation name, get a list of the element name of all parts of message of output of the operation
 java.util.List<java.lang.String> getOpOutMsPartNameList(java.lang.String fileName, java.lang.String opName)
          get the name list of all parats of output of given operation
static void main(java.lang.String[] args)
           
 void updatePartElement(java.lang.String fileNameA, java.lang.String opA, java.lang.String fileNameB, java.lang.String opB, java.lang.String outFileName, java.lang.String opOutFile)
          update the target wsdl input part element name as fileA input part element name and ouput part element as fileB output part element name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseWSDL

public ParseWSDL()
Method Detail

getAllOpName

public java.util.List<java.lang.String> getAllOpName(java.lang.String fileName)
get all operation names of given wsdl file

Parameters:
fileName -
Returns:

getMsEleNSUri

public java.lang.String getMsEleNSUri(java.lang.String fileName)
filename-->message-->part--->element namespace uri

Parameters:
fileName -
Returns:

getOpInMsElemName

public java.util.List<java.lang.String> getOpInMsElemName(java.lang.String fileName,
                                                          java.lang.String opName)
                                                   throws java.lang.Exception
given operation name, get a list of the element name of all parts of message of input of the operation

Parameters:
fileName -
opName -
Returns:
Throws:
java.lang.Exception

getOpInMsPartNameList

public java.util.List<java.lang.String> getOpInMsPartNameList(java.lang.String fileName,
                                                              java.lang.String opName)
                                                       throws java.lang.Exception
get the name list of all parts of input of given operation

Parameters:
fileName -
opName -
Returns:
Throws:
java.lang.Exception

getOpOutMsPartNameList

public java.util.List<java.lang.String> getOpOutMsPartNameList(java.lang.String fileName,
                                                               java.lang.String opName)
                                                        throws java.lang.Exception
get the name list of all parats of output of given operation

Parameters:
fileName -
opName -
Returns:
Throws:
java.lang.Exception

getOpOutMsElemName

public java.util.List<java.lang.String> getOpOutMsElemName(java.lang.String fileName,
                                                           java.lang.String opName)
                                                    throws java.lang.Exception
given operation name, get a list of the element name of all parts of message of output of the operation

Parameters:
fileName -
opName -
Returns:
Throws:
java.lang.Exception

updatePartElement

public void updatePartElement(java.lang.String fileNameA,
                              java.lang.String opA,
                              java.lang.String fileNameB,
                              java.lang.String opB,
                              java.lang.String outFileName,
                              java.lang.String opOutFile)
update the target wsdl input part element name as fileA input part element name and ouput part element as fileB output part element name

Parameters:
fileNameA -
opA -
fileNameB -
opB -
outFileName -
opOutFile -

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args -
Throws:
java.lang.Exception