hi,folks!

I want to use Apache SOAP 2.3.1 to invoke the .Net Web service with the flowing params 
data type.But don't know how to write my own serializer to marshal the soap envelope 
the server side needed.

any suggests reward!
Thanks for your help.

=====================================
the soap request data type
=====================================

POST /FileExchangeClient/ClientWebService/RecFromFileServer.asmx HTTP/1.1
Host: 132.16.1.11
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/RecDocument";

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <RecDocument xmlns="http://tempuri.org/";>
      <Doc>
        <DocumentFlag>string</DocumentFlag>
        <Version>string</Version>
        <DocClass>string</DocClass>
        <DocType>string</DocType>
        <SendUnit>
          <SendUnitClass>
            <InstitutionName>string</InstitutionName>
            <InstitutionCode>string</InstitutionCode>
            <TransactionType>string</TransactionType>
          </SendUnitClass>
          <SendUnitClass>
            <InstitutionName>string</InstitutionName>
            <InstitutionCode>string</InstitutionCode>
            <TransactionType>string</TransactionType>
          </SendUnitClass>
        </SendUnit>
        <SecretLevel>string</SecretLevel>
        <SecretTime>string</SecretTime>
        <EmergencyLevel>string</EmergencyLevel>
        <SendUnitFlag>
          <PrefixFlag>
            <SendUnitClass xsi:nil="true" />
            <SendUnitClass xsi:nil="true" />
          </PrefixFlag>
          <PostfixFlag>string</PostfixFlag>
        </SendUnitFlag>
        <SendUnitWord>string</SendUnitWord>
        <SendYear>string</SendYear>
        <SendSN>string</SendSN>
        <Signer>
          <string>string</string>
          <string>string</string>
        </Signer>
        <HeadExpandElement>
          <ExpandElement>
            <ExpandElementName>string</ExpandElementName>
            <ExpandElementValue>string</ExpandElementValue>
          </ExpandElement>
          <ExpandElement>
            <ExpandElementName>string</ExpandElementName>
            <ExpandElementValue>string</ExpandElementValue>
          </ExpandElement>
        </HeadExpandElement>
        <Heading>string</Heading>
        <SubHeading>string</SubHeading>
        <SendToUnit>
          <string>string</string>
          <string>string</string>
        </SendToUnit>
        <Text>
          <DataFormat>string</DataFormat>
          <CodeFormat>string</CodeFormat>
          <DataType>string</DataType>
          <FileName>string</FileName>
          <UnStructuralDataName>string</UnStructuralDataName>
          <TextFileBody>string</TextFileBody>
        </Text>
        <AccessoryData>
          <UnStructuralData>
            <DataFormat>string</DataFormat>
            <CodeFormat>string</CodeFormat>
            <DataType>string</DataType>
            <FileName>string</FileName>
            <UnStructuralDataName>string</UnStructuralDataName>
            <TextFileBody>string</TextFileBody>
          </UnStructuralData>
          <UnStructuralData>
            <DataFormat>string</DataFormat>
            <CodeFormat>string</CodeFormat>
            <DataType>string</DataType>
            <FileName>string</FileName>
            <UnStructuralDataName>string</UnStructuralDataName>
            <TextFileBody>string</TextFileBody>
          </UnStructuralData>
        </AccessoryData>
        <UnitSeal>
          <UnitSealClass>
            <SendUnit>string</SendUnit>
          </UnitSealClass>
          <UnitSealClass>
            <SendUnit>string</SendUnit>
          </UnitSealClass>
        </UnitSeal>
        <SignerSeal>
          <SignerSealClass>
            <Position>string</Position>
          </SignerSealClass>
          <SignerSealClass>
            <Position>string</Position>
          </SignerSealClass>
        </SignerSeal>
        <FinDocTime>string</FinDocTime>
        <Annotations>string</Annotations>
        <BodyExpandElement>
          <ExpandElement>
            <ExpandElementName>string</ExpandElementName>
            <ExpandElementValue>string</ExpandElementValue>
          </ExpandElement>
          <ExpandElement>
            <ExpandElementName>string</ExpandElementName>
            <ExpandElementValue>string</ExpandElementValue>
          </ExpandElement>
        </BodyExpandElement>
        <ThemeWord>
          <string>string</string>
          <string>string</string>
        </ThemeWord>
        <CopyToUnit>
          <CopyToUnitClass>
            <CopyToType>string</CopyToType>
            <CopyToUnit>string</CopyToUnit>
          </CopyToUnitClass>
          <CopyToUnitClass>
            <CopyToType>string</CopyToType>
            <CopyToUnit>string</CopyToUnit>
          </CopyToUnitClass>
        </CopyToUnit>
        <PrintUnit>string</PrintUnit>
        <PrintDate>string</PrintDate>
        <CopyNum>string</CopyNum>
        <EndNotesExpandElement>
          <ExpandElement>
            <ExpandElementName>string</ExpandElementName>
            <ExpandElementValue>string</ExpandElementValue>
          </ExpandElement>
          <ExpandElement>
            <ExpandElementName>string</ExpandElementName>
            <ExpandElementValue>string</ExpandElementValue>
          </ExpandElement>
        </EndNotesExpandElement>
      </Doc>
      <SendRoler>string</SendRoler>
      <SendRolerName>string</SendRolerName>
      <RecStr>string</RecStr>
      <AlertFlag>int</AlertFlag>
    </RecDocument>
  </soap:Body>
</soap:Envelope>

============================
the  response 
============================
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <RecDocumentResponse xmlns="http://tempuri.org/";>
      <RecDocumentResult>boolean</RecDocumentResult>
    </RecDocumentResponse>
  </soap:Body>
</soap:Envelope>



Reply via email to