| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<definitions name="Axis_SwA" |
| 3 |
targetNamespace="http://swa.samples" |
| 4 |
xmlns:swa="http://swa.samples" |
| 5 |
xmlns="http://schemas.xmlsoap.org/wsdl/" |
| 6 |
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" |
| 7 |
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" |
| 8 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 9 |
> |
| 10 |
|
| 11 |
<message name="SwaRequest"> |
| 12 |
<part name="applicationName" type="xsd:string"/> |
| 13 |
<part name="content" type="xsd:base64Binary"/> |
| 14 |
</message> |
| 15 |
|
| 16 |
<message name="SwaResponse"> |
| 17 |
<part name="return" type="xsd:string"/> |
| 18 |
</message> |
| 19 |
|
| 20 |
<portType name="swaPort"> |
| 21 |
<operation name="swaSend"> |
| 22 |
<input message="swa:SwaRequest"/> |
| 23 |
<output message="swa:SwaResponse"/> |
| 24 |
</operation> |
| 25 |
</portType> |
| 26 |
|
| 27 |
<!-- |
| 28 |
This binding defines a SOAP with Attachment binding of swaPort. The whole |
| 29 |
message is a MIME multipart/related message, i.e. the second part of the |
| 30 |
message is related to the first part. |
| 31 |
- The first part of this message contains the SOAP envelope. |
| 32 |
- The second part itself is another multipart MIME message. This provides a |
| 33 |
very flexible way to send more than one attachment (attachment files) with |
| 34 |
one SOAP request. |
| 35 |
|
| 36 |
Due to the binding definitions the "content" part of the message (see message |
| 37 |
definition above will contain a reference to the second part. This the type |
| 38 |
definition of "content" is dummy (in reality its a "xsd:anyURI"). |
| 39 |
|
| 40 |
The SOAP toolkit shall automatically perform the necessary referencing and |
| 41 |
dereferencing during serialization and deserialization. |
| 42 |
--> |
| 43 |
|
| 44 |
<binding name="swaBinding" type="swa:swaPort"> |
| 45 |
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> |
| 46 |
<operation name="swaSend"> |
| 47 |
<soap:operation soapAction="swaSend"/> |
| 48 |
<input> |
| 49 |
<mime:multipartRelated> |
| 50 |
<mime:part> |
| 51 |
<soap:body use="literal" parts="applicationName"/> |
| 52 |
</mime:part> |
| 53 |
<mime:part> |
| 54 |
<mime:content part="content" type="multipart/mixed"/> |
| 55 |
</mime:part> |
| 56 |
</mime:multipartRelated> |
| 57 |
</input> |
| 58 |
<output> |
| 59 |
<soap:body use="literal"/> |
| 60 |
</output> |
| 61 |
</operation> |
| 62 |
</binding> |
| 63 |
|
| 64 |
<service name="swaService"> |
| 65 |
<port name="SwaHttp" binding="swa:swaBinding"> |
| 66 |
<soap:address location="http://localhost:8081/axis/services/swaHttp"/> |
| 67 |
</port> |
| 68 |
</service> |
| 69 |
</definitions> |