Permalink
Browse files

перенес подпись в Header SOAP-конверта

  • Loading branch information...
1 parent eb81c13 commit 38cae03f31ea3bea7b3d73a4780ad1936fb06db5 @bashmish bashmish committed Apr 1, 2013
@@ -4,33 +4,39 @@
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://ezags.rt.ru/fzags/GetResultsService/"
+ xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<xsd:schema>
<xsd:import namespace="http://ezags.rt.ru/fzags/GetResultsService/" schemaLocation="GetResultsService.xsd"/>
</xsd:schema>
+ <xsd:schema>
+ <xsd:import namespace="http://schemas.xmlsoap.org/ws/2002/04/secext" schemaLocation="SecurityWithSignature.xsd"/>
+ </xsd:schema>
</types>
- <message name="GetActRecordsRequest">
+ <message name="GetActRecordsRequestMessage">
+ <part name="header" element="wsse:Security"/>
<part name="body" element="tns:getActRecordsRequest"/>
</message>
- <message name="GetActRecordsResponse">
+ <message name="GetActRecordsResponseMessage">
<part name="body" element="tns:getActRecordsResponse"/>
</message>
<portType name="GetResultsPortType">
<operation name="getActRecords">
- <input message="tns:GetActRecordsRequest"/>
- <output message="tns:GetActRecordsResponse"/>
+ <input message="tns:GetActRecordsRequestMessage"/>
+ <output message="tns:GetActRecordsResponseMessage"/>
</operation>
</portType>
<binding name="GetResultsBinding" type="tns:GetResultsPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getActRecords">
<soap:operation soapAction=""/>
<input>
- <soap:body use="literal"/>
+ <soap:header use="literal" message="tns:GetActRecordsRequestMessage" part="header" namespace="http://schemas.xmlsoap.org/ws/2002/04/secext"/>
+ <soap:body use="literal" parts="body"/>
</input>
<output>
- <soap:body use="literal"/>
+ <soap:body use="literal" parts="body"/>
</output>
</operation>
</binding>
@@ -3,14 +3,11 @@
xmlns:tns="http://ezags.rt.ru/fzags/GetResultsService/"
xmlns:doc="http://ezags.rt.ru/type/document/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://ezags.rt.ru/type/document/" schemaLocation="../documents.xsd"/>
- <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="../xmldsig-core-schema.xsd"/>
<xs:complexType name="GetActRecordsRequest">
<xs:sequence minOccurs="1">
<xs:element name="taskId" type="xs:string" minOccurs="1"/>
- <xs:element ref="ds:Signature"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GetActRecordsResponse">
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsd:schema targetNamespace="http://schemas.xmlsoap.org/ws/2002/04/secext"
+ xmlns:tns="http://schemas.xmlsoap.org/ws/2002/04/secext"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+ <xsd:import namespace="http://schemas.xmlsoap.org/ws/2002/04/secext" schemaLocation="http://schemas.xmlsoap.org/ws/2002/04/secext/secext.xsd"/>
+ <xsd:complexType name="SecurityWithSignature">
+ <xsd:sequence>
+ <xsd:element ref="ds:Signature"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:element name="Security" type="tns:SecurityWithSignature"/>
+</xsd:schema>

0 comments on commit 38cae03

Please sign in to comment.