0

私の英語でごめんなさい。SPYNE が彼への送信要求に対する応答を生成する方法を理解できません。クライアントは次の形式で送信します。

<SOAP-ENV: Envelope xmlns: ns0 = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: ns1 = "localhost" xmlns: xsi = "http://www.w3.org/2001/ XMLSchema-instance "xmlns: SOAP-ENV =" http://schemas.xmlsoap.org/soap/envelope/ ">
    <SOAP-ENV: Header />
    <Ns0: Body>
       <Ns1: prerender>
          <Ns1: secret> secret_key </ ns1: secret>
          <Ns1: requestId> 1 </ ns1: requestId>
          <Ns1: projectId> id1 </ ns1: projectId>
       </ Ns1: prerender>
    </ Ns0: Body>
</ SOAP-ENV: Envelope>

サーバーは次のように応答します。

<Soap11env: Envelope xmlns: soap11env = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: tns = "localhost">
   <Soap11env: Body>
     <Tns: prerenderResponse>
       <Tns: prerenderResult0> secret_key </ tns: prerenderResult0>
       <Tns: prerenderResult1> 1 </ tns: prerenderResult1>
     </ Tns: prerenderResponse>
   </ Soap11env: Body>
</ Soap11env: Envelope>

そのような応答を生成する方法を教えてください:

<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:ns1="localhost" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <ns0:Body>
      <ns1:secret>INT</ns1:commandType>
      <ns1:requestId>STRING</ns1:secret_key>
      <ns1:projectId>INT</ns1:requestId>
    </ns0:Body>
  </SOAP-ENV:Envelope>

ドキュメントから理解できれば。これは、ComplexModel を使用して行われます。しかし、そのような構造を実装するには、私は得ることができませんでした

4

1 に答える 1