You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Tony Ng <ng...@hotmail.com> on 2001/04/03 02:04:22 UTC
Build XML from Soap format?
Hi
I am very new to SOAP, I would like to know how to build XML file from SOAP
format file?
For example, The SOAP file might look like the followings:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:test="http://mws_test...">
<SOAP-ENV:Header>
<test:Header.V001 SOAP-ENV:mustUnderstand="1"
xmlns="http://mws_test...">
<Transaction>RetrieveCallPricing</Transaction>
<Mission>Response</Mission>
<Version>V001</Version>
<SentAt>20010327114344000000</SentAt>
<UserId>VPCC</UserId>
</test:Header.V001>
</SOAP-ENV:Header>
<SOAP-ENV:Body xmlns="urn:test-Project:EBVC">
<RetrieveCallPricing.Response.V001>
<TotalCost1>3.3</TotalCost1>
<TotalCost2>3.3</TotalCost2>
<CallCosts SOAP-ENC:arrayType="callCost[2]">
<CallCost>
<RatePeriod>Near Off Peak</RatePeriod>
<UnitRate>0.22</UnitRate>
<UnitOfMeasure>min</UnitOfMeasure>
<CallDuration>PT1H</CallDuration>
<TotalCost>3.08</TotalCost>
<CallConnectionFee>0.22</CallConnectionFee>
</CallCost>
<CallCost>
<RatePeriod>Far Off Peak</RatePeriod>
<UnitRate>0.22</UnitRate>
<UnitOfMeasure>min</UnitOfMeasure>
<CallDuration>PT1H</CallDuration>
<TotalCost>3.08</TotalCost>
<CallConnectionFee>0.22</CallConnectionFee>
</CallCost>
</CallCosts>
</RetrieveCallPricing.Response.V001>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How would I use SOAP to parse this file and build as an XML file?
Thanks
Regards,
Tony
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
Re: Build XML from Soap format?
Posted by "陳照東) <alex@erp.ncu.edu.tw>" <Alex>.
hi Tony :
IMHO. for example :
<CallCost>
<RatePeriod>Near Off Peak</RatePeriod>
<UnitRate>0.22</UnitRate>
<UnitOfMeasure>min</UnitOfMeasure>
<CallDuration>PT1H</CallDuration>
<TotalCost>3.08</TotalCost>
<CallConnectionFee>0.22</CallConnectionFee>
</CallCost>
these Envelope body can be sent as a string Parameter (in Apache soap),and
then unmarshall then, sure , as a byte[] is more better, and then wirte a
bean to catch them to transform a xml format as u want...
Hmm, it's what i make a guess at ur question. hope
helps.
Regards.
IT DEP. Special Team-XML
Alex
Tel:(03)4227151 ext:6024
alex@ERP.NCU.EDU.TW
=We Do Enterprise Services=
----- Original Message -----
From: "Tony Ng" <ng...@hotmail.com>
To: <so...@xml.apache.org>
Sent: Tuesday, April 03, 2001 8:04 AM
Subject: Build XML from Soap format?
Hi
I am very new to SOAP, I would like to know how to build XML file from SOAP
format file?
For example, The SOAP file might look like the followings:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:test="http://mws_test...">
<SOAP-ENV:Header>
<test:Header.V001 SOAP-ENV:mustUnderstand="1"
xmlns="http://mws_test...">
<Transaction>RetrieveCallPricing</Transaction>
<Mission>Response</Mission>
<Version>V001</Version>
<SentAt>20010327114344000000</SentAt>
<UserId>VPCC</UserId>
</test:Header.V001>
</SOAP-ENV:Header>
<SOAP-ENV:Body xmlns="urn:test-Project:EBVC">
<RetrieveCallPricing.Response.V001>
<TotalCost1>3.3</TotalCost1>
<TotalCost2>3.3</TotalCost2>
<CallCosts SOAP-ENC:arrayType="callCost[2]">
<CallCost>
<RatePeriod>Near Off Peak</RatePeriod>
<UnitRate>0.22</UnitRate>
<UnitOfMeasure>min</UnitOfMeasure>
<CallDuration>PT1H</CallDuration>
<TotalCost>3.08</TotalCost>
<CallConnectionFee>0.22</CallConnectionFee>
</CallCost>
<CallCost>
<RatePeriod>Far Off Peak</RatePeriod>
<UnitRate>0.22</UnitRate>
<UnitOfMeasure>min</UnitOfMeasure>
<CallDuration>PT1H</CallDuration>
<TotalCost>3.08</TotalCost>
<CallConnectionFee>0.22</CallConnectionFee>
</CallCost>
</CallCosts>
</RetrieveCallPricing.Response.V001>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How would I use SOAP to parse this file and build as an XML file?
Thanks
Regards,
Tony
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
Re: Build XML from Soap format?
Posted by "陳照東) <alex@erp.ncu.edu.tw>" <Alex>.
hi Tony :
IMHO. for example :
<CallCost>
<RatePeriod>Near Off Peak</RatePeriod>
<UnitRate>0.22</UnitRate>
<UnitOfMeasure>min</UnitOfMeasure>
<CallDuration>PT1H</CallDuration>
<TotalCost>3.08</TotalCost>
<CallConnectionFee>0.22</CallConnectionFee>
</CallCost>
these Envelope body can be sent as a string Parameter (in Apache soap),and
then unmarshall then, sure , as a byte[] is more better, and then wirte a
bean to catch them to transform a xml format as u want...
Hmm, it's what i make a guess at ur question. hope
helps.
Regards.
IT DEP. Special Team-XML
Alex
Tel:(03)4227151 ext:6024
alex@ERP.NCU.EDU.TW
=We Do Enterprise Services=
----- Original Message -----
From: "Tony Ng" <ng...@hotmail.com>
To: <so...@xml.apache.org>
Sent: Tuesday, April 03, 2001 8:04 AM
Subject: Build XML from Soap format?
Hi
I am very new to SOAP, I would like to know how to build XML file from SOAP
format file?
For example, The SOAP file might look like the followings:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:test="http://mws_test...">
<SOAP-ENV:Header>
<test:Header.V001 SOAP-ENV:mustUnderstand="1"
xmlns="http://mws_test...">
<Transaction>RetrieveCallPricing</Transaction>
<Mission>Response</Mission>
<Version>V001</Version>
<SentAt>20010327114344000000</SentAt>
<UserId>VPCC</UserId>
</test:Header.V001>
</SOAP-ENV:Header>
<SOAP-ENV:Body xmlns="urn:test-Project:EBVC">
<RetrieveCallPricing.Response.V001>
<TotalCost1>3.3</TotalCost1>
<TotalCost2>3.3</TotalCost2>
<CallCosts SOAP-ENC:arrayType="callCost[2]">
<CallCost>
<RatePeriod>Near Off Peak</RatePeriod>
<UnitRate>0.22</UnitRate>
<UnitOfMeasure>min</UnitOfMeasure>
<CallDuration>PT1H</CallDuration>
<TotalCost>3.08</TotalCost>
<CallConnectionFee>0.22</CallConnectionFee>
</CallCost>
<CallCost>
<RatePeriod>Far Off Peak</RatePeriod>
<UnitRate>0.22</UnitRate>
<UnitOfMeasure>min</UnitOfMeasure>
<CallDuration>PT1H</CallDuration>
<TotalCost>3.08</TotalCost>
<CallConnectionFee>0.22</CallConnectionFee>
</CallCost>
</CallCosts>
</RetrieveCallPricing.Response.V001>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How would I use SOAP to parse this file and build as an XML file?
Thanks
Regards,
Tony
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org