You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by jzs11 <ji...@gmail.com> on 2007/03/09 00:36:44 UTC

Is this possible? (Axis2+Flex2)

Because some reserved word issue with Flex2 I need modify the axis2 response
message's style.

----------------------------------------------Original
Response-----------------------------------------------------
<ns:getWeatherResponse
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://service.pojo.sample/xsd">
<ns:return>
	<forecast xmlns="http://data.pojo.sample/xsd">windy</forecast>
	<howMuchRain xmlns="http://data.pojo.sample/xsd">10.0</howMuchRain>
	<rain xmlns="http://data.pojo.sample/xsd">true</rain>
	<temperature xmlns="http://data.pojo.sample/xsd">10.0</temperature>
</ns:return>
</ns:getWeatherResponse>

----------------------------------------------I need to
achieve------------------------------------------------------
<ns:getWeatherResponse
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://service.pojo.sample/xsd">
<ns:returnResp>
	<forecast xmlns="http://data.pojo.sample/xsd">windy</forecast>
	<howMuchRain xmlns="http://data.pojo.sample/xsd">10.0</howMuchRain>
	<rain xmlns="http://data.pojo.sample/xsd">true</rain>
	<temperature xmlns="http://data.pojo.sample/xsd">10.0</temperature>
</ns:returnResp>
</ns:getWeatherResponse> 
-------------------------------------------------------------------------------------------------------------------------
Change <ns:return> to <ns:returnResp>
Is this possible?
-- 
View this message in context: http://www.nabble.com/Is-this-possible--%28Axis2%2BFlex2%29-tf3371444.html#a9381529
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Is this possible? (Axis2+Flex2)

Posted by Ajith Ranabahu <aj...@gmail.com>.
hi,
Before we go about doing this let me know the following things

1. Are you using the rpc message receiver ?
2. Do you have a WSDL file or do you use an auto generated WSDL ?

Ajith

On 3/8/07, jzs11 <ji...@gmail.com> wrote:
>
> Thanks for your response Ajith, could you give me more hints on how to do
> this?
> Where should I write the doc/lit service in Axis2? Which file I need modify?
>
> Thank you very much.
>
>
> Ajith Ranabahu wrote:
> >
> > Well you can write a doc/lit service and specify the schema you want
> >
> > Ajith
> >
> > On 3/8/07, jzs11 <ji...@gmail.com> wrote:
> >>
> >> Because some reserved word issue with Flex2 I need modify the axis2
> >> response
> >> message's style.
> >>
> >> ----------------------------------------------Original
> >> Response-----------------------------------------------------
> >> <ns:getWeatherResponse
> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> xmlns:ns="http://service.pojo.sample/xsd">
> >> <ns:return>
> >>         <forecast xmlns="http://data.pojo.sample/xsd">windy</forecast>
> >>         <howMuchRain
> >> xmlns="http://data.pojo.sample/xsd">10.0</howMuchRain>
> >>         <rain xmlns="http://data.pojo.sample/xsd">true</rain>
> >>         <temperature
> >> xmlns="http://data.pojo.sample/xsd">10.0</temperature>
> >> </ns:return>
> >> </ns:getWeatherResponse>
> >>
> >> ----------------------------------------------I need to
> >> achieve------------------------------------------------------
> >> <ns:getWeatherResponse
> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >> xmlns:ns="http://service.pojo.sample/xsd">
> >> <ns:returnResp>
> >>         <forecast xmlns="http://data.pojo.sample/xsd">windy</forecast>
> >>         <howMuchRain
> >> xmlns="http://data.pojo.sample/xsd">10.0</howMuchRain>
> >>         <rain xmlns="http://data.pojo.sample/xsd">true</rain>
> >>         <temperature
> >> xmlns="http://data.pojo.sample/xsd">10.0</temperature>
> >> </ns:returnResp>
> >> </ns:getWeatherResponse>
> >> -------------------------------------------------------------------------------------------------------------------------
> >> Change <ns:return> to <ns:returnResp>
> >> Is this possible?
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Is-this-possible--%28Axis2%2BFlex2%29-tf3371444.html#a9381529
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> >
> > --
> > Ajith Ranabahu
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Is-this-possible--%28Axis2%2BFlex2%29-tf3371444.html#a9386464
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Is this possible? (Axis2+Flex2)

Posted by jzs11 <ji...@gmail.com>.
Thanks for your response Ajith, could you give me more hints on how to do
this?
Where should I write the doc/lit service in Axis2? Which file I need modify? 

Thank you very much.


Ajith Ranabahu wrote:
> 
> Well you can write a doc/lit service and specify the schema you want
> 
> Ajith
> 
> On 3/8/07, jzs11 <ji...@gmail.com> wrote:
>>
>> Because some reserved word issue with Flex2 I need modify the axis2
>> response
>> message's style.
>>
>> ----------------------------------------------Original
>> Response-----------------------------------------------------
>> <ns:getWeatherResponse
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:ns="http://service.pojo.sample/xsd">
>> <ns:return>
>>         <forecast xmlns="http://data.pojo.sample/xsd">windy</forecast>
>>         <howMuchRain
>> xmlns="http://data.pojo.sample/xsd">10.0</howMuchRain>
>>         <rain xmlns="http://data.pojo.sample/xsd">true</rain>
>>         <temperature
>> xmlns="http://data.pojo.sample/xsd">10.0</temperature>
>> </ns:return>
>> </ns:getWeatherResponse>
>>
>> ----------------------------------------------I need to
>> achieve------------------------------------------------------
>> <ns:getWeatherResponse
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:ns="http://service.pojo.sample/xsd">
>> <ns:returnResp>
>>         <forecast xmlns="http://data.pojo.sample/xsd">windy</forecast>
>>         <howMuchRain
>> xmlns="http://data.pojo.sample/xsd">10.0</howMuchRain>
>>         <rain xmlns="http://data.pojo.sample/xsd">true</rain>
>>         <temperature
>> xmlns="http://data.pojo.sample/xsd">10.0</temperature>
>> </ns:returnResp>
>> </ns:getWeatherResponse>
>> -------------------------------------------------------------------------------------------------------------------------
>> Change <ns:return> to <ns:returnResp>
>> Is this possible?
>> --
>> View this message in context:
>> http://www.nabble.com/Is-this-possible--%28Axis2%2BFlex2%29-tf3371444.html#a9381529
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> 
> -- 
> Ajith Ranabahu
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Is-this-possible--%28Axis2%2BFlex2%29-tf3371444.html#a9386464
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Is this possible? (Axis2+Flex2)

Posted by Ajith Ranabahu <aj...@gmail.com>.
Well you can write a doc/lit service and specify the schema you want

Ajith

On 3/8/07, jzs11 <ji...@gmail.com> wrote:
>
> Because some reserved word issue with Flex2 I need modify the axis2 response
> message's style.
>
> ----------------------------------------------Original
> Response-----------------------------------------------------
> <ns:getWeatherResponse
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns="http://service.pojo.sample/xsd">
> <ns:return>
>         <forecast xmlns="http://data.pojo.sample/xsd">windy</forecast>
>         <howMuchRain xmlns="http://data.pojo.sample/xsd">10.0</howMuchRain>
>         <rain xmlns="http://data.pojo.sample/xsd">true</rain>
>         <temperature xmlns="http://data.pojo.sample/xsd">10.0</temperature>
> </ns:return>
> </ns:getWeatherResponse>
>
> ----------------------------------------------I need to
> achieve------------------------------------------------------
> <ns:getWeatherResponse
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns="http://service.pojo.sample/xsd">
> <ns:returnResp>
>         <forecast xmlns="http://data.pojo.sample/xsd">windy</forecast>
>         <howMuchRain xmlns="http://data.pojo.sample/xsd">10.0</howMuchRain>
>         <rain xmlns="http://data.pojo.sample/xsd">true</rain>
>         <temperature xmlns="http://data.pojo.sample/xsd">10.0</temperature>
> </ns:returnResp>
> </ns:getWeatherResponse>
> -------------------------------------------------------------------------------------------------------------------------
> Change <ns:return> to <ns:returnResp>
> Is this possible?
> --
> View this message in context: http://www.nabble.com/Is-this-possible--%28Axis2%2BFlex2%29-tf3371444.html#a9381529
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org