The only way you could control the format would be to create and apply
an envelope editor.  See
http://xml.apache.org/soap/docs/guide/transhooks.html for more
information.

Scott Nichol
----- Original Message -----
From: "Jesus M. Salvo Jr." <[EMAIL PROTECTED]>
To: "Apache SOAP mailing list" <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 11:31 PM
Subject: Formatting the SOAP XML envelope?


>
> Is it possible to format the SOAP XML envelope ... similar to using
> Apache Xerces org.apache.xml.serialize?
>
> For example, instead of 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:Header>
> <mm7:TransactionID
>
xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema
/REL-5-MM7-1-0">123</mm7:TransactionID>
> </SOAP-ENV:Header>
> <SOAP-ENV:Body>
> <mm7:SubmitReq
>
xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema
/REL-5-MM7-1-0"><MM7Version>5.4.0</MM7Version><SenderI
>
dentification><VASPID>TestAccount</VASPID><VASID>TestPass</VASID></Sende
rIdentification><Recipients/><ServiceCode>er2sdf</ServiceCode><Messag
>
eClass>Informational</MessageClass><TimeStamp>2003-01-08T15:21:30+10:00<
/TimeStamp><EarliestDeliveryTime>2003-01-08T15:21:30+10:00</EarliestD
>
eliveryTime><ExpiryDate>2003-01-08T15:21:30+10:00</ExpiryDate><DeliveryR
eport>false</DeliveryReport><Priority>Normal</Priority><DistributionI
> ndicator>false</DistributionIndicator><Content
> href="cid:1230"/></mm7:SubmitReq>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> ... I would prefer to have the envelope sent like this below ( makes
it
> easier to debug ):
>
> <?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:Header>
>     <mm7:TransactionID
>
xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema
/REL-5-MM7-1-0">123</mm7:TransactionID>
> </SOAP-ENV:Header>
> <SOAP-ENV:Body>
>     <mm7:SubmitReq
>
xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema
/REL-5-MM7-1-0">
>     <MM7Version>5.4.0</MM7Version>
>     <SenderIdentification>
>         <VASPID>TestAccount</VASPID>
>         <VASID>TestPass</VASID>
>     </SenderIdentification>
>     <Recipients/>
>     <ServiceCode>er2sdf</ServiceCode>
>     <MessageClass>Informational</MessageClass>
>     <TimeStamp>2003-01-08T15:21:30+10:00</TimeStamp>
>
<EarliestDeliveryTime>2003-01-08T15:21:30+10:00</EarliestDeliveryTime>
>     <ExpiryDate>2003-01-08T15:21:30+10:00</ExpiryDate>
>     <DeliveryReport>false</DeliveryReport>
>     <Priority>Normal</Priority>
>     <DistributionIndicator>false</DistributionIndicator>
>     <Content href="cid:1230"/></mm7:SubmitReq>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
>
> --
> Jesus M. Salvo Jr.
> Mobile Internet Group Pty Ltd
> (formerly Softgame International Pty Ltd)
> M: +61 409 126699
> T: +61 2 94604777
> F: +61 2 94603677
>
> PGP Public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0BA5348
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to