You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ro...@apache.org on 2006/11/11 14:37:28 UTC
svn commit: r473714 -
/webservices/axis2/branches/java/1_1/xdocs/1_1/mtom-guide.html
Author: robertlazarski
Date: Sat Nov 11 05:37:27 2006
New Revision: 473714
URL: http://svn.apache.org/viewvc?view=rev&rev=473714
Log:
cleaning up tags by replacing > with >
Modified:
webservices/axis2/branches/java/1_1/xdocs/1_1/mtom-guide.html
Modified: webservices/axis2/branches/java/1_1/xdocs/1_1/mtom-guide.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/xdocs/1_1/mtom-guide.html?view=diff&rev=473714&r1=473713&r2=473714
==============================================================================
--- webservices/axis2/branches/java/1_1/xdocs/1_1/mtom-guide.html (original)
+++ webservices/axis2/branches/java/1_1/xdocs/1_1/mtom-guide.html Sat Nov 11 05:37:27 2006
@@ -349,82 +349,82 @@
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
- targetNamespace="http://ws.apache.org/axis2/mtomsample/">
+ targetNamespace="http://ws.apache.org/axis2/mtomsample/">
<import namespace="http://www.w3.org/2005/05/xmlmime"
- schemaLocation="http://www.w3.org/2005/05/xmlmime"/>
- <wsdl:types>
+ schemaLocation="http://www.w3.org/2005/05/xmlmime"/>
+ <wsdl:types>
<xsd:schema xmlns="http://schemas.xmlsoap.org/wsdl/"
attributeFormDefault="qualified" elementFormDefault="qualified"
- targetNamespace="http://ws.apache.org/axis2/mtomsample/">
+ targetNamespace="http://ws.apache.org/axis2/mtomsample/">
<xsd:import namespace="http://www.w3.org/2005/05/xmlmime"
- schemaLocation="xmime.xsd" />
- <xsd:complexType name="AttachmentType">
- <xsd:sequence>
+ schemaLocation="xmime.xsd" />
+ <xsd:complexType name="AttachmentType">
+ <xsd:sequence>
<xsd:element minOccurs="0" name="fileName"
- type="xsd:string" />
+ type="xsd:string" />
<xsd:element minOccurs="0" name="binaryData"
- type="xmime:base64Binary" />
- </xsd:sequence>
- </xsd:complexType>
- <xsd:element name="AttachmentRequest" type="tns:AttachmentType" />
- <xsd:element name="AttachmentResponse" type="xsd:string" />
- </xsd:schema>
- </wsdl:types>
- <wsdl:message name="AttachmentRequest">
- <wsdl:part name="part1" element="tns:AttachmentRequest" />
- </wsdl:message>
- <wsdl:message name="AttachmentResponse">
- <wsdl:part name="part1" element="tns:AttachmentResponse" />
- </wsdl:message>
- <wsdl:portType name="MTOMServicePortType">
- <wsdl:operation name="attachment">
+ type="xmime:base64Binary" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:element name="AttachmentRequest" type="tns:AttachmentType" />
+ <xsd:element name="AttachmentResponse" type="xsd:string" />
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="AttachmentRequest">
+ <wsdl:part name="part1" element="tns:AttachmentRequest" />
+ </wsdl:message>
+ <wsdl:message name="AttachmentResponse">
+ <wsdl:part name="part1" element="tns:AttachmentResponse" />
+ </wsdl:message>
+ <wsdl:portType name="MTOMServicePortType">
+ <wsdl:operation name="attachment">
<wsdl:input message="tns:AttachmentRequest"
- wsaw:Action="attachment" />
+ wsaw:Action="attachment" />
<wsdl:output message="tns:AttachmentResponse"
- wsaw:Action="http://schemas.xmlsoap.org/wsdl/MTOMServicePortType/AttachmentResponse" />
- </wsdl:operation>
- </wsdl:portType>
+ wsaw:Action="http://schemas.xmlsoap.org/wsdl/MTOMServicePortType/AttachmentResponse" />
+ </wsdl:operation>
+ </wsdl:portType>
<wsdl:binding name="MTOMServiceSOAP11Binding"
- type="tns:MTOMServicePortType">
+ type="tns:MTOMServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
- style="document" />
- <wsdl:operation name="attachment">
- <soap:operation soapAction="attachment" style="document" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
+ style="document" />
+ <wsdl:operation name="attachment">
+ <soap:operation soapAction="attachment" style="document" />
+ <wsdl:input>
+ <soap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
<wsdl:binding name="MTOMServiceSOAP12Binding"
- type="tns:MTOMServicePortType">
+ type="tns:MTOMServicePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
- style="document" />
- <wsdl:operation name="attachment">
- <soap12:operation soapAction="attachment" style="document" />
- <wsdl:input>
- <soap12:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="MTOMSample">
+ style="document" />
+ <wsdl:operation name="attachment">
+ <soap12:operation soapAction="attachment" style="document" />
+ <wsdl:input>
+ <soap12:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="MTOMSample">
<wsdl:port name="MTOMSampleSOAP11port_http"
- binding="tns:MTOMServiceSOAP11Binding">
+ binding="tns:MTOMServiceSOAP11Binding">
<soap:address
- location="http://localhost:8080/axis2/services/MTOMSample" />
- </wsdl:port>
+ location="http://localhost:8080/axis2/services/MTOMSample" />
+ </wsdl:port>
<wsdl:port name="MTOMSampleSOAP12port_http"
- binding="tns:MTOMServiceSOAP12Binding">
+ binding="tns:MTOMServiceSOAP12Binding">
<soap12:address
- location="http://localhost:8080/axis2/services/MTOMSample" />
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
+ location="http://localhost:8080/axis2/services/MTOMSample" />
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
</pre></source>
<p>The important point here is we import http://www.w3.org/2005/05/xmlmime
and define an element, 'binaryData' , that utilizes MTOM.</p>
@@ -435,19 +435,20 @@
implementation. The name we list for the WSDL above is MTOMSample.wsdl, and
we define our package name for our generated source files to be
'sample.mtom.service' . Our ant task for this example is:</p>
-<source><pre> <target name="generate.service">
- <java classname="org.apache.axis2.wsdl.WSDL2Java">
- <arg value="-uri" />
- <arg value="${basedir}/resources/MTOMSample.wsdl" />
- <arg value="-ss" />
- <arg value="-sd" />
- <arg value="-g"/>
- <arg value="-p" />
- <arg value="sample.mtom.service" />
- <arg value="-o" />
- <arg value="${service.dir}" />
- <classpath refid="class.path" />
- </java>
+<source><pre>
+<target name="generate.service">
+ <java classname="org.apache.axis2.wsdl.WSDL2Java">
+ <arg value="-uri" />
+ <arg value="${basedir}/resources/MTOMSample.wsdl" />
+ <arg value="-ss" />
+ <arg value="-sd" />
+ <arg value="-g"/>
+ <arg value="-p" />
+ <arg value="sample.mtom.service" />
+ <arg value="-o" />
+ <arg value="${service.dir}" />
+ <classpath refid="class.path" />
+ </java>
</target></pre>
</source>
<p>Now we are ready to code. Lets edit
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org