Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Das folgende Codebeispiel zeigt die AttachmentService-WSDL.
<wsdl:definitions
targetNamespace="http://schemas.example.org/AttachmentService"
xmlns:tns="http://schemas.example.org/AttachmentService"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdp="http://schemas.xmlsoap.org/ws/2005/05/devprof"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
xmlns:wsf="http://schemas.xmlsoap.org/ws/2004/09/transfer">
<wsp:Policy wsu:Id="Attachment">
<wsdp:Profile />
<wsdp:OptimizedMimeSerialization />
</wsp:Policy>
<wsdl:types>
<xs:schema
targetNamespace="http://schemas.example.org/AttachmentService"
xmlns:tns="http://schemas.example.org/AttachmentService"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
blockDefault="#all" >
<xs:element name="OneWayAttachment" type="tns:AttachmentType" />
<xs:complexType name="AttachmentType" >
<xs:sequence>
<xs:element name="Param" type="xs:base64Binary" />
<xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax" />
</xs:sequence>
<xs:anyAttribute namespace="##other"
processContents="lax" />
</xs:complexType>
<xs:element name="TwoWayAttachmentRequest"
type="tns:AttachmentType" />
<xs:element name="TwoWayAttachmentResponse"
type="tns:AttachmentType" />
</xs:schema>
</wsdl:types>
<wsdl:message name="OneWayAttachmentMessageIn">
<wsdl:part name="parameters" element="tns:OneWayAttachment" />
</wsdl:message>
<wsdl:message name="TwoWayAttachmentMessageIn">
<wsdl:part name="parameters" element="tns:TwoWayAttachmentRequest" />
</wsdl:message>
<wsdl:message name="TwoWayAttachmentMessageOut">
<wsdl:part name="parameters" element="tns:TwoWayAttachmentResponse" />
</wsdl:message>
<wsdl:portType name="AttachmentService">
<wsdl:operation name="OneWayAttachment">
<wsdl:input
message="tns:OneWayAttachmentMessageIn"
wsa:Action="http://schemas.example.org/AttachmentService/OneWayAttachment"/>
</wsdl:operation>
<wsdl:operation name="TwoWayAttachment">
<wsdl:input
message="tns:TwoWayAttachmentMessageIn"
wsa:Action="http://schemas.example.org/AttachmentService/TwoWayAttachmentRequest"/>
<wsdl:output
message="tns:TwoWayAttachmentMessageOut"
wsa:Action="http://schemas.example.org/AttachmentService/TwoWayAttachmentResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AttachmentServiceSoap12Binding" type="tns:AttachmentService">
<wsoap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsp:PolicyReference URI="#Attachment" wsdl:required="true" />
<wsdl:operation name="OneWayAttachment">
<wsoap12:operation
soapAction="http://schemas.example.org/AttachmentService/OneWayAttachment"/>
<wsdl:input>
<wsoap12:body use="literal" />
</wsdl:input>
</wsdl:operation>
<wsdl:operation name="TwoWayAttachment">
<wsoap12:operation
soapAction="http://schemas.example.org/AttachmentService/TwoWayAttachmentRequest"/>
<wsdl:input>
<wsoap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<wsoap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AttachmentService">
<wsdl:port
name="AttachmentPort"
binding="tns:AttachmentServiceSoap12Binding">
<wsoap12:address
location="http://localhost/WebService/Attachment.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>