GLUE supports JDK 1.1.8, but Axis doesn't.

----- Original Message -----
From: "baoming" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 26, 2003 11:00 PM
Subject: Re: Re: how to serializer such complex type?


> Scott,
>
> I have tryed the Apache axis for the service and all sees good! but
unfortunately the axis need the jdk1.2 and later .by the way, i tryed glue
do the invoke the same as axis. But my problem is that  my app  only support
the jdk1.1.8 (maybe you know the lotus domino R5, my app just under this
runtime),would everyone has some suggest?  God help me!!
>
>    so,i continue use the apache soap and nightly build the src with
released date Jun 25,2003.however,I write so many serializer for the data
struct and use the call.getSOAPContext().setDocLitSerialization(true); but
the generated soap envelope look like this :
>
> ==============================================
> <?xml version='1.0' encoding='UTF-8'?>
> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> <SOAP-ENV:Body>
> <RecDocument xmlns="http://tempuri.org/";>
> <Doc xsi:type="ns1:Doc">
> <DocumentFlag>000000009-2003-118</DocumentFlag>
> <Version>1.0</Version>
> <DocClass>c1</DocClass>
> <DocType>type</DocType>
> <SendUnit xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/";
ns2:arrayType="ns1:SendUnitClass[2]">
> <item xsi:type="ns1:SendUnitClass">
> <InstitutionName>com</InstitutionName>
> <InstitutionCode>000000014</InstitutionCode>
> <TransactionType>type1</TransactionType>
> </item>
> <item xsi:type="ns1:SendUnitClass">
> <InstitutionName>com2</InstitutionName>
> <InstitutionCode>000000015</InstitutionCode>
> <TransactionType>type2</TransactionType>
> </item>
> </SendUnit>
>
> ...more is omitted
>
> </RecDocument>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> ========================================================
>
>  the expected as the flowing :
>
>     <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>
>
> the apache soap automatically add the Item node and with the xsi:type
attribute the .net serverside not expected.
>
> second, the return fault sting complained not found the namespace "n1",i
think this wouldbe a bug for the nightly build when use
setDocLitSerialization(true).
>
> >It is quite possible that Apache SOAP 2.3.1 cannot call that service.
> >The currently build of Apache SOAP probably can.  If you are just
> >starting with Apache SOAP, use Apache Axis instead
> >(http://ws.apache.org/axis/).  It supports WSDL, which means interop
> >with .NET is better (and much easier to code).
> >
> >On 26 Jun 2003 at 19:59, baoming wrote:
> >
> >> 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>
> >>
> >>
> >>
> >>
> >
> >
> >Scott Nichol
> >
> >Do not reply directly to this e-mail address,
> >as it is filtered to only receive e-mail from
> >specific mailing lists.
>
> = = = = = = = = = = = = = = = = = = = =
>
>
>
>
>
>

Reply via email to