Re: how to serializer such complex type?

2003-06-26 Thread Scott Nichol
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
 DocumentFlagstring/DocumentFlag
 Versionstring/Version
 DocClassstring/DocClass
 DocTypestring/DocType
 SendUnit
   SendUnitClass
 InstitutionNamestring/InstitutionName
 InstitutionCodestring/InstitutionCode
 TransactionTypestring/TransactionType
   /SendUnitClass
   SendUnitClass
 InstitutionNamestring/InstitutionName
 InstitutionCodestring/InstitutionCode
 TransactionTypestring/TransactionType
   /SendUnitClass
 /SendUnit
 SecretLevelstring/SecretLevel
 SecretTimestring/SecretTime
 EmergencyLevelstring/EmergencyLevel
 SendUnitFlag
   PrefixFlag
 SendUnitClass xsi:nil=true /
 SendUnitClass xsi:nil=true /
   /PrefixFlag
   PostfixFlagstring/PostfixFlag
 /SendUnitFlag
 SendUnitWordstring/SendUnitWord
 SendYearstring/SendYear
 SendSNstring/SendSN
 Signer
   stringstring/string
   stringstring/string
 /Signer
 HeadExpandElement
   ExpandElement
 ExpandElementNamestring/ExpandElementName
 ExpandElementValuestring/ExpandElementValue
   /ExpandElement
   ExpandElement
 ExpandElementNamestring/ExpandElementName
 ExpandElementValuestring/ExpandElementValue
   /ExpandElement
 /HeadExpandElement
 Headingstring/Heading
 SubHeadingstring/SubHeading
 SendToUnit
   stringstring/string
   stringstring/string
 /SendToUnit
 Text
   DataFormatstring/DataFormat
   CodeFormatstring/CodeFormat
   DataTypestring/DataType
   FileNamestring/FileName
   UnStructuralDataNamestring/UnStructuralDataName
   TextFileBodystring/TextFileBody
 /Text
 AccessoryData
   UnStructuralData
 DataFormatstring/DataFormat
 CodeFormatstring/CodeFormat
 DataTypestring/DataType
 FileNamestring/FileName
 UnStructuralDataNamestring/UnStructuralDataName
 TextFileBodystring/TextFileBody
   /UnStructuralData
   UnStructuralData
 DataFormatstring/DataFormat
 CodeFormatstring/CodeFormat
 DataTypestring/DataType
 FileNamestring/FileName
 UnStructuralDataNamestring/UnStructuralDataName
 TextFileBodystring/TextFileBody
   /UnStructuralData
 /AccessoryData
 UnitSeal
   UnitSealClass
 SendUnitstring/SendUnit
   /UnitSealClass
   UnitSealClass
 SendUnitstring/SendUnit
   /UnitSealClass
 /UnitSeal
 SignerSeal
   SignerSealClass
 Positionstring/Position
   /SignerSealClass
   SignerSealClass
 Positionstring/Position
   /SignerSealClass
 /SignerSeal
 FinDocTimestring/FinDocTime
 Annotationsstring/Annotations
 BodyExpandElement
   ExpandElement
 ExpandElementNamestring/ExpandElementName
 ExpandElementValuestring/ExpandElementValue
   /ExpandElement
   ExpandElement
 ExpandElementNamestring/ExpandElementName
 ExpandElementValuestring/ExpandElementValue
   /ExpandElement
 /BodyExpandElement
 ThemeWord
   stringstring/string
   stringstring/string
 /ThemeWord
 CopyToUnit
   CopyToUnitClass
 CopyToTypestring/CopyToType
 CopyToUnitstring/CopyToUnit
   /CopyToUnitClass
   

Re: Re: how to serializer such complex type?

2003-06-26 Thread baoming
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
DocumentFlag9-2003-118/DocumentFlag
Version1.0/Version
DocClassc1/DocClass
DocTypetype/DocType
SendUnit xmlns:ns2=http://schemas.xmlsoap.org/soap/encoding/; 
ns2:arrayType=ns1:SendUnitClass[2]
item xsi:type=ns1:SendUnitClass
InstitutionNamecom/InstitutionName
InstitutionCode00014/InstitutionCode
TransactionTypetype1/TransactionType
/item
item xsi:type=ns1:SendUnitClass
InstitutionNamecom2/InstitutionName
InstitutionCode00015/InstitutionCode
TransactionTypetype2/TransactionType
/item
/SendUnit

...more is omitted

/RecDocument
/SOAP-ENV:Body
/SOAP-ENV:Envelope


 the expected as the flowing :

RecDocument xmlns=http://tempuri.org/;
   Doc
 DocumentFlagstring/DocumentFlag
 Versionstring/Version
 DocClassstring/DocClass
 DocTypestring/DocType
 SendUnit
   SendUnitClass
 InstitutionNamestring/InstitutionName
 InstitutionCodestring/InstitutionCode
 TransactionTypestring/TransactionType
   /SendUnitClass
   SendUnitClass
 InstitutionNamestring/InstitutionName
 InstitutionCodestring/InstitutionCode
 TransactionTypestring/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
 DocumentFlagstring/DocumentFlag
 Versionstring/Version
 DocClassstring/DocClass
 DocTypestring/DocType
 SendUnit
   SendUnitClass
 InstitutionNamestring/InstitutionName
 InstitutionCodestring/InstitutionCode
 TransactionTypestring/TransactionType
   /SendUnitClass
   SendUnitClass
 InstitutionNamestring/InstitutionName
 InstitutionCodestring/InstitutionCode
 TransactionTypestring/TransactionType
   /SendUnitClass
 /SendUnit
 SecretLevelstring/SecretLevel
 SecretTimestring/SecretTime
 EmergencyLevelstring/EmergencyLevel
 SendUnitFlag
   PrefixFlag
 SendUnitClass xsi:nil=true /
 SendUnitClass xsi:nil=true /
   /PrefixFlag
   PostfixFlagstring/PostfixFlag
 /SendUnitFlag
 SendUnitWordstring/SendUnitWord
 SendYearstring/SendYear
 SendSNstring/SendSN
 Signer
   stringstring/string
   stringstring/string
 /Signer
 HeadExpandElement
   ExpandElement
 ExpandElementNamestring/ExpandElementName
 

Re: Re: how to serializer such complex type?

2003-06-26 Thread Anne Thomas Manes
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
 DocumentFlag9-2003-118/DocumentFlag
 Version1.0/Version
 DocClassc1/DocClass
 DocTypetype/DocType
 SendUnit xmlns:ns2=http://schemas.xmlsoap.org/soap/encoding/;
ns2:arrayType=ns1:SendUnitClass[2]
 item xsi:type=ns1:SendUnitClass
 InstitutionNamecom/InstitutionName
 InstitutionCode00014/InstitutionCode
 TransactionTypetype1/TransactionType
 /item
 item xsi:type=ns1:SendUnitClass
 InstitutionNamecom2/InstitutionName
 InstitutionCode00015/InstitutionCode
 TransactionTypetype2/TransactionType
 /item
 /SendUnit

 ...more is omitted

 /RecDocument
 /SOAP-ENV:Body
 /SOAP-ENV:Envelope
 

  the expected as the flowing :

 RecDocument xmlns=http://tempuri.org/;
Doc
  DocumentFlagstring/DocumentFlag
  Versionstring/Version
  DocClassstring/DocClass
  DocTypestring/DocType
  SendUnit
SendUnitClass
  InstitutionNamestring/InstitutionName
  InstitutionCodestring/InstitutionCode
  TransactionTypestring/TransactionType
/SendUnitClass
SendUnitClass
  InstitutionNamestring/InstitutionName
  InstitutionCodestring/InstitutionCode
  TransactionTypestring/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
  DocumentFlagstring/DocumentFlag
  Versionstring/Version
  DocClassstring/DocClass
  DocTypestring/DocType
  SendUnit
SendUnitClass
  InstitutionNamestring/InstitutionName
  InstitutionCodestring/InstitutionCode
  TransactionTypestring/TransactionType
/SendUnitClass
SendUnitClass
  InstitutionNamestring/InstitutionName
  InstitutionCodestring/InstitutionCode
  TransactionTypestring/TransactionType
/SendUnitClass
  /SendUnit
  SecretLevelstring/SecretLevel
  SecretTimestring/SecretTime
  EmergencyLevelstring/EmergencyLevel
  SendUnitFlag
PrefixFlag
  SendUnitClass xsi:nil=true /
  SendUnitClass xsi:nil=true /
/PrefixFlag
PostfixFlagstring/PostfixFlag
  /SendUnitFlag
  SendUnitWordstring