Package org.mule.soap.internal.generator
Class SoapRequestGenerator
java.lang.Object
org.mule.soap.internal.generator.SoapRequestGenerator
Generates a XML SOAP request used to invoke CXF.
If no body is provided will try to generate a default one.
for each attachment will add a node with the required information depending on the protocol that it's being used.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionSoapRequestGenerator(AttachmentRequestEnricher requestEnricher, org.mule.wsdl.parser.model.PortModel port) -
Method Summary
Modifier and TypeMethodDescriptiongenerate(String operation, InputStream body, String encoding, Map<String, SoapAttachment> attachments) Generates anXMLStreamReaderSOAP request ready to be consumed by CXF.
-
Constructor Details
-
SoapRequestGenerator
public SoapRequestGenerator(AttachmentRequestEnricher requestEnricher, org.mule.wsdl.parser.model.PortModel port)
-
-
Method Details
-
generate
public XMLStreamReader generate(String operation, InputStream body, String encoding, Map<String, SoapAttachment> attachments) Generates anXMLStreamReaderSOAP request ready to be consumed by CXF.- Parameters:
operation- the name of the operation being invoked.body- the body content provided by the user.attachments- the attachments provided by the user.
-