You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by brijesh <br...@gmail.com> on 2009/03/13 06:58:29 UTC
cxf-bc & xml payload
We have following work flow
axis1 client --> cxf-bc-->smx-bean-->cxf-bc(provider)
When i am calling bc using client , I am getting the xml document as shown
in below image
http://www.nabble.com/file/p22490722/posting.jpg
In place of >,< am getting '&lt' and '&gt'
can anybody explain whats going wrong here?? .
regards
Brijesh N K
--
View this message in context: http://www.nabble.com/cxf-bc---xml-payload-tp22490722p22490722.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: cxf-bc & xml payload
Posted by Freeman Fang <fr...@gmail.com>.
Thanks, a working testcase would be great.
Freeman
brijesh wrote:
> Freeman,
>
> thanks for the respose. will create a jira as you suggested
>
> thanks
> Brijesh N K
>
>
> Freeman Fang wrote:
>
>> Hi,
>> Not yet.
>> Is it possible you create a jira and append your testcase there.
>> It would be very helpful to figure out the issue.
>> Thanks
>> Freeman
>>
>>
>> brijesh wrote:
>>
>>> Freeman ,
>>>
>>> Any workaround for this ?
>>>
>>> thanks & regards
>>>
>>> Brijesh N K
>>>
>>>
>>> brijesh wrote:
>>>
>>>
>>>> Freeman ,
>>>>
>>>> I am still get the message with '&lt' and '&gt' . I tried the
>>>> code
>>>> which u suggested but no luck. Is there any other workaround for this?.
>>>>
>>>>
>>>> regards
>>>> Brijesh N K
>>>>
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> How about try with
>>>>> InOut inOut = (InOut)exchange;
>>>>> String outMessage = "";
>>>>> NormalizedMessage normalizedMessage = inOut.getInMessage();
>>>>> SourceTransformer sourceTransformer = new SourceTransformer();
>>>>> DomSource source = sourceTransformer.toDOMSource(normalizedMessage);
>>>>> outMessage = org.apache.cxf.helpers.XMLUtils.toString(source);
>>>>> logger.debug("## Received exchange with
>>>>> statusACTIVE:ContractSchemaDataMapper " + outMessage);
>>>>>
>>>>> Freeman
>>>>>
>>>>> brijesh wrote:
>>>>>
>>>>>
>>>>>> Freeman,
>>>>>>
>>>>>> thanks for the response. I am using logger.debug to print message from
>>>>>> smx-bean onMessageExchange method code as follows
>>>>>>
>>>>>> InOut inOut = (InOut)exchange;
>>>>>> String outMessage = "";
>>>>>> NormalizedMessage normalizedMessage = inOut.getInMessage();
>>>>>> SourceTransformer sourceTransformer = new SourceTransformer();
>>>>>> outMessage = sourceTransformer.contentToString(normalizedMessage);
>>>>>> logger.debug("## Received exchange with status
>>>>>> ACTIVE:ContractSchemaDataMapper " + outMessage);
>>>>>>
>>>>>> my wsdl for bc as follows
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>>>> xmlns:tns="http://www.ekaplus.com/NotifyEvent/"
>>>>>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NotifyEvent"
>>>>>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>>>>>> <wsdl:types>
>>>>>> <xsd:schema
>>>>>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>>>>>> <xsd:element name="notifyEvent">
>>>>>> <xsd:complexType>
>>>>>> <xsd:sequence>
>>>>>> <xsd:element name="in" type="xsd:string" />
>>>>>> </xsd:sequence>
>>>>>> </xsd:complexType>
>>>>>> </xsd:element>
>>>>>> <xsd:element name="notifyEventResponse">
>>>>>> <xsd:complexType>
>>>>>> <xsd:sequence>
>>>>>> <xsd:element name="out" type="xsd:string" />
>>>>>> </xsd:sequence>
>>>>>> </xsd:complexType>
>>>>>> </xsd:element>
>>>>>> </xsd:schema>
>>>>>> </wsdl:types>
>>>>>> <wsdl:message name="notifyEventRequest">
>>>>>> <wsdl:part element="tns:notifyEvent" name="parameters" />
>>>>>> </wsdl:message>
>>>>>> <wsdl:message name="notifyEventResponse">
>>>>>> <wsdl:part element="tns:notifyEventResponse" name="parameters" />
>>>>>> </wsdl:message>
>>>>>> <wsdl:portType name="NotifyEventPortType">
>>>>>> <wsdl:operation name="notifyEvent">
>>>>>> <wsdl:input message="tns:notifyEventRequest" />
>>>>>> <wsdl:output message="tns:notifyEventResponse" />
>>>>>> </wsdl:operation>
>>>>>> </wsdl:portType>
>>>>>> <wsdl:binding name="NotifyEventBinding"
>>>>>> type="tns:NotifyEventPortType">
>>>>>> <soap:binding style="document"
>>>>>> transport="http://schemas.xmlsoap.org/soap/http" />
>>>>>> <wsdl:operation name="notifyEvent">
>>>>>> <soap:operation
>>>>>> soapAction="http://www.ekaplus.com/NotifyEvent/notifyEvent" />
>>>>>> <wsdl:input>
>>>>>> <soap:body use="literal" />
>>>>>> </wsdl:input>
>>>>>> <wsdl:output>
>>>>>> <soap:body use="literal" />
>>>>>> </wsdl:output>
>>>>>> </wsdl:operation>
>>>>>> </wsdl:binding>
>>>>>> <wsdl:service name="NotifyEventService">
>>>>>> <wsdl:port binding="tns:NotifyEventBinding"
>>>>>> name="NotifyEventPort">
>>>>>> <soap:address location="http://localhost:8092/NotifyEventService"
>>>>>> />
>>>>>> </wsdl:port>
>>>>>> </wsdl:service>
>>>>>> </wsdl:definitions>
>>>>>>
>>>>>>
>>>>>>
>>>>>> looking forward your response
>>>>>>
>>>>>> thanks
>>>>>> Brijesh N K
>>>>>>
>>>>>>
>>>>>>
>>>>>> Freeman Fang wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi,
>>>>>>> Where you see the message like this?
>>>>>>> I mean how you dump the message?
>>>>>>> Freeman
>>>>>>>
>>>>>>> brijesh wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> We have following work flow
>>>>>>>>
>>>>>>>> axis1 client --> cxf-bc-->smx-bean-->cxf-bc(provider)
>>>>>>>>
>>>>>>>> When i am calling bc using client , I am getting the xml document as
>>>>>>>> shown
>>>>>>>> in below image
>>>>>>>>
>>>>>>>> http://www.nabble.com/file/p22490722/posting.jpg
>>>>>>>>
>>>>>>>>
>>>>>>>> In place of >,< am getting '&lt' and '&gt'
>>>>>>>> can anybody explain whats going wrong here?? .
>>>>>>>>
>>>>>>>> regards
>>>>>>>>
>>>>>>>> Brijesh N K
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: cxf-bc & xml payload
Posted by brijesh <br...@gmail.com>.
Freeman,
thanks for the respose. will create a jira as you suggested
thanks
Brijesh N K
Freeman Fang wrote:
>
> Hi,
> Not yet.
> Is it possible you create a jira and append your testcase there.
> It would be very helpful to figure out the issue.
> Thanks
> Freeman
>
>
> brijesh wrote:
>> Freeman ,
>>
>> Any workaround for this ?
>>
>> thanks & regards
>>
>> Brijesh N K
>>
>>
>> brijesh wrote:
>>
>>> Freeman ,
>>>
>>> I am still get the message with '&lt' and '&gt' . I tried the
>>> code
>>> which u suggested but no luck. Is there any other workaround for this?.
>>>
>>>
>>> regards
>>> Brijesh N K
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>
>>>> Hi,
>>>>
>>>> How about try with
>>>> InOut inOut = (InOut)exchange;
>>>> String outMessage = "";
>>>> NormalizedMessage normalizedMessage = inOut.getInMessage();
>>>> SourceTransformer sourceTransformer = new SourceTransformer();
>>>> DomSource source = sourceTransformer.toDOMSource(normalizedMessage);
>>>> outMessage = org.apache.cxf.helpers.XMLUtils.toString(source);
>>>> logger.debug("## Received exchange with
>>>> statusACTIVE:ContractSchemaDataMapper " + outMessage);
>>>>
>>>> Freeman
>>>>
>>>> brijesh wrote:
>>>>
>>>>> Freeman,
>>>>>
>>>>> thanks for the response. I am using logger.debug to print message from
>>>>> smx-bean onMessageExchange method code as follows
>>>>>
>>>>> InOut inOut = (InOut)exchange;
>>>>> String outMessage = "";
>>>>> NormalizedMessage normalizedMessage = inOut.getInMessage();
>>>>> SourceTransformer sourceTransformer = new SourceTransformer();
>>>>> outMessage = sourceTransformer.contentToString(normalizedMessage);
>>>>> logger.debug("## Received exchange with status
>>>>> ACTIVE:ContractSchemaDataMapper " + outMessage);
>>>>>
>>>>> my wsdl for bc as follows
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>>> xmlns:tns="http://www.ekaplus.com/NotifyEvent/"
>>>>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NotifyEvent"
>>>>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>>>>> <wsdl:types>
>>>>> <xsd:schema
>>>>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>>>>> <xsd:element name="notifyEvent">
>>>>> <xsd:complexType>
>>>>> <xsd:sequence>
>>>>> <xsd:element name="in" type="xsd:string" />
>>>>> </xsd:sequence>
>>>>> </xsd:complexType>
>>>>> </xsd:element>
>>>>> <xsd:element name="notifyEventResponse">
>>>>> <xsd:complexType>
>>>>> <xsd:sequence>
>>>>> <xsd:element name="out" type="xsd:string" />
>>>>> </xsd:sequence>
>>>>> </xsd:complexType>
>>>>> </xsd:element>
>>>>> </xsd:schema>
>>>>> </wsdl:types>
>>>>> <wsdl:message name="notifyEventRequest">
>>>>> <wsdl:part element="tns:notifyEvent" name="parameters" />
>>>>> </wsdl:message>
>>>>> <wsdl:message name="notifyEventResponse">
>>>>> <wsdl:part element="tns:notifyEventResponse" name="parameters" />
>>>>> </wsdl:message>
>>>>> <wsdl:portType name="NotifyEventPortType">
>>>>> <wsdl:operation name="notifyEvent">
>>>>> <wsdl:input message="tns:notifyEventRequest" />
>>>>> <wsdl:output message="tns:notifyEventResponse" />
>>>>> </wsdl:operation>
>>>>> </wsdl:portType>
>>>>> <wsdl:binding name="NotifyEventBinding"
>>>>> type="tns:NotifyEventPortType">
>>>>> <soap:binding style="document"
>>>>> transport="http://schemas.xmlsoap.org/soap/http" />
>>>>> <wsdl:operation name="notifyEvent">
>>>>> <soap:operation
>>>>> soapAction="http://www.ekaplus.com/NotifyEvent/notifyEvent" />
>>>>> <wsdl:input>
>>>>> <soap:body use="literal" />
>>>>> </wsdl:input>
>>>>> <wsdl:output>
>>>>> <soap:body use="literal" />
>>>>> </wsdl:output>
>>>>> </wsdl:operation>
>>>>> </wsdl:binding>
>>>>> <wsdl:service name="NotifyEventService">
>>>>> <wsdl:port binding="tns:NotifyEventBinding"
>>>>> name="NotifyEventPort">
>>>>> <soap:address location="http://localhost:8092/NotifyEventService"
>>>>> />
>>>>> </wsdl:port>
>>>>> </wsdl:service>
>>>>> </wsdl:definitions>
>>>>>
>>>>>
>>>>>
>>>>> looking forward your response
>>>>>
>>>>> thanks
>>>>> Brijesh N K
>>>>>
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>
>>>>>
>>>>>> Hi,
>>>>>> Where you see the message like this?
>>>>>> I mean how you dump the message?
>>>>>> Freeman
>>>>>>
>>>>>> brijesh wrote:
>>>>>>
>>>>>>
>>>>>>> We have following work flow
>>>>>>>
>>>>>>> axis1 client --> cxf-bc-->smx-bean-->cxf-bc(provider)
>>>>>>>
>>>>>>> When i am calling bc using client , I am getting the xml document as
>>>>>>> shown
>>>>>>> in below image
>>>>>>>
>>>>>>> http://www.nabble.com/file/p22490722/posting.jpg
>>>>>>>
>>>>>>>
>>>>>>> In place of >,< am getting '&lt' and '&gt'
>>>>>>> can anybody explain whats going wrong here?? .
>>>>>>>
>>>>>>> regards
>>>>>>>
>>>>>>> Brijesh N K
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/cxf-bc---xml-payload-tp22490722p22573805.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: cxf-bc & xml payload
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Not yet.
Is it possible you create a jira and append your testcase there.
It would be very helpful to figure out the issue.
Thanks
Freeman
brijesh wrote:
> Freeman ,
>
> Any workaround for this ?
>
> thanks & regards
>
> Brijesh N K
>
>
> brijesh wrote:
>
>> Freeman ,
>>
>> I am still get the message with '&lt' and '&gt' . I tried the code
>> which u suggested but no luck. Is there any other workaround for this?.
>>
>>
>> regards
>> Brijesh N K
>>
>>
>>
>> Freeman Fang wrote:
>>
>>> Hi,
>>>
>>> How about try with
>>> InOut inOut = (InOut)exchange;
>>> String outMessage = "";
>>> NormalizedMessage normalizedMessage = inOut.getInMessage();
>>> SourceTransformer sourceTransformer = new SourceTransformer();
>>> DomSource source = sourceTransformer.toDOMSource(normalizedMessage);
>>> outMessage = org.apache.cxf.helpers.XMLUtils.toString(source);
>>> logger.debug("## Received exchange with
>>> statusACTIVE:ContractSchemaDataMapper " + outMessage);
>>>
>>> Freeman
>>>
>>> brijesh wrote:
>>>
>>>> Freeman,
>>>>
>>>> thanks for the response. I am using logger.debug to print message from
>>>> smx-bean onMessageExchange method code as follows
>>>>
>>>> InOut inOut = (InOut)exchange;
>>>> String outMessage = "";
>>>> NormalizedMessage normalizedMessage = inOut.getInMessage();
>>>> SourceTransformer sourceTransformer = new SourceTransformer();
>>>> outMessage = sourceTransformer.contentToString(normalizedMessage);
>>>> logger.debug("## Received exchange with status
>>>> ACTIVE:ContractSchemaDataMapper " + outMessage);
>>>>
>>>> my wsdl for bc as follows
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>> xmlns:tns="http://www.ekaplus.com/NotifyEvent/"
>>>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NotifyEvent"
>>>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>>>> <wsdl:types>
>>>> <xsd:schema
>>>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>>>> <xsd:element name="notifyEvent">
>>>> <xsd:complexType>
>>>> <xsd:sequence>
>>>> <xsd:element name="in" type="xsd:string" />
>>>> </xsd:sequence>
>>>> </xsd:complexType>
>>>> </xsd:element>
>>>> <xsd:element name="notifyEventResponse">
>>>> <xsd:complexType>
>>>> <xsd:sequence>
>>>> <xsd:element name="out" type="xsd:string" />
>>>> </xsd:sequence>
>>>> </xsd:complexType>
>>>> </xsd:element>
>>>> </xsd:schema>
>>>> </wsdl:types>
>>>> <wsdl:message name="notifyEventRequest">
>>>> <wsdl:part element="tns:notifyEvent" name="parameters" />
>>>> </wsdl:message>
>>>> <wsdl:message name="notifyEventResponse">
>>>> <wsdl:part element="tns:notifyEventResponse" name="parameters" />
>>>> </wsdl:message>
>>>> <wsdl:portType name="NotifyEventPortType">
>>>> <wsdl:operation name="notifyEvent">
>>>> <wsdl:input message="tns:notifyEventRequest" />
>>>> <wsdl:output message="tns:notifyEventResponse" />
>>>> </wsdl:operation>
>>>> </wsdl:portType>
>>>> <wsdl:binding name="NotifyEventBinding"
>>>> type="tns:NotifyEventPortType">
>>>> <soap:binding style="document"
>>>> transport="http://schemas.xmlsoap.org/soap/http" />
>>>> <wsdl:operation name="notifyEvent">
>>>> <soap:operation
>>>> soapAction="http://www.ekaplus.com/NotifyEvent/notifyEvent" />
>>>> <wsdl:input>
>>>> <soap:body use="literal" />
>>>> </wsdl:input>
>>>> <wsdl:output>
>>>> <soap:body use="literal" />
>>>> </wsdl:output>
>>>> </wsdl:operation>
>>>> </wsdl:binding>
>>>> <wsdl:service name="NotifyEventService">
>>>> <wsdl:port binding="tns:NotifyEventBinding"
>>>> name="NotifyEventPort">
>>>> <soap:address location="http://localhost:8092/NotifyEventService" />
>>>> </wsdl:port>
>>>> </wsdl:service>
>>>> </wsdl:definitions>
>>>>
>>>>
>>>>
>>>> looking forward your response
>>>>
>>>> thanks
>>>> Brijesh N K
>>>>
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>
>>>>
>>>>> Hi,
>>>>> Where you see the message like this?
>>>>> I mean how you dump the message?
>>>>> Freeman
>>>>>
>>>>> brijesh wrote:
>>>>>
>>>>>
>>>>>> We have following work flow
>>>>>>
>>>>>> axis1 client --> cxf-bc-->smx-bean-->cxf-bc(provider)
>>>>>>
>>>>>> When i am calling bc using client , I am getting the xml document as
>>>>>> shown
>>>>>> in below image
>>>>>>
>>>>>> http://www.nabble.com/file/p22490722/posting.jpg
>>>>>>
>>>>>>
>>>>>> In place of >,< am getting '&lt' and '&gt'
>>>>>> can anybody explain whats going wrong here?? .
>>>>>>
>>>>>> regards
>>>>>>
>>>>>> Brijesh N K
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
Re: cxf-bc & xml payload
Posted by brijesh <br...@gmail.com>.
Freeman ,
Any workaround for this ?
thanks & regards
Brijesh N K
brijesh wrote:
>
> Freeman ,
>
> I am still get the message with '&lt' and '&gt' . I tried the code
> which u suggested but no luck. Is there any other workaround for this?.
>
>
> regards
> Brijesh N K
>
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> How about try with
>> InOut inOut = (InOut)exchange;
>> String outMessage = "";
>> NormalizedMessage normalizedMessage = inOut.getInMessage();
>> SourceTransformer sourceTransformer = new SourceTransformer();
>> DomSource source = sourceTransformer.toDOMSource(normalizedMessage);
>> outMessage = org.apache.cxf.helpers.XMLUtils.toString(source);
>> logger.debug("## Received exchange with
>> statusACTIVE:ContractSchemaDataMapper " + outMessage);
>>
>> Freeman
>>
>> brijesh wrote:
>>> Freeman,
>>>
>>> thanks for the response. I am using logger.debug to print message from
>>> smx-bean onMessageExchange method code as follows
>>>
>>> InOut inOut = (InOut)exchange;
>>> String outMessage = "";
>>> NormalizedMessage normalizedMessage = inOut.getInMessage();
>>> SourceTransformer sourceTransformer = new SourceTransformer();
>>> outMessage = sourceTransformer.contentToString(normalizedMessage);
>>> logger.debug("## Received exchange with status
>>> ACTIVE:ContractSchemaDataMapper " + outMessage);
>>>
>>> my wsdl for bc as follows
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>> xmlns:tns="http://www.ekaplus.com/NotifyEvent/"
>>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NotifyEvent"
>>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>>> <wsdl:types>
>>> <xsd:schema
>>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>>> <xsd:element name="notifyEvent">
>>> <xsd:complexType>
>>> <xsd:sequence>
>>> <xsd:element name="in" type="xsd:string" />
>>> </xsd:sequence>
>>> </xsd:complexType>
>>> </xsd:element>
>>> <xsd:element name="notifyEventResponse">
>>> <xsd:complexType>
>>> <xsd:sequence>
>>> <xsd:element name="out" type="xsd:string" />
>>> </xsd:sequence>
>>> </xsd:complexType>
>>> </xsd:element>
>>> </xsd:schema>
>>> </wsdl:types>
>>> <wsdl:message name="notifyEventRequest">
>>> <wsdl:part element="tns:notifyEvent" name="parameters" />
>>> </wsdl:message>
>>> <wsdl:message name="notifyEventResponse">
>>> <wsdl:part element="tns:notifyEventResponse" name="parameters" />
>>> </wsdl:message>
>>> <wsdl:portType name="NotifyEventPortType">
>>> <wsdl:operation name="notifyEvent">
>>> <wsdl:input message="tns:notifyEventRequest" />
>>> <wsdl:output message="tns:notifyEventResponse" />
>>> </wsdl:operation>
>>> </wsdl:portType>
>>> <wsdl:binding name="NotifyEventBinding"
>>> type="tns:NotifyEventPortType">
>>> <soap:binding style="document"
>>> transport="http://schemas.xmlsoap.org/soap/http" />
>>> <wsdl:operation name="notifyEvent">
>>> <soap:operation
>>> soapAction="http://www.ekaplus.com/NotifyEvent/notifyEvent" />
>>> <wsdl:input>
>>> <soap:body use="literal" />
>>> </wsdl:input>
>>> <wsdl:output>
>>> <soap:body use="literal" />
>>> </wsdl:output>
>>> </wsdl:operation>
>>> </wsdl:binding>
>>> <wsdl:service name="NotifyEventService">
>>> <wsdl:port binding="tns:NotifyEventBinding"
>>> name="NotifyEventPort">
>>> <soap:address location="http://localhost:8092/NotifyEventService" />
>>> </wsdl:port>
>>> </wsdl:service>
>>> </wsdl:definitions>
>>>
>>>
>>>
>>> looking forward your response
>>>
>>> thanks
>>> Brijesh N K
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>
>>>> Hi,
>>>> Where you see the message like this?
>>>> I mean how you dump the message?
>>>> Freeman
>>>>
>>>> brijesh wrote:
>>>>
>>>>> We have following work flow
>>>>>
>>>>> axis1 client --> cxf-bc-->smx-bean-->cxf-bc(provider)
>>>>>
>>>>> When i am calling bc using client , I am getting the xml document as
>>>>> shown
>>>>> in below image
>>>>>
>>>>> http://www.nabble.com/file/p22490722/posting.jpg
>>>>>
>>>>>
>>>>> In place of >,< am getting '&lt' and '&gt'
>>>>> can anybody explain whats going wrong here?? .
>>>>>
>>>>> regards
>>>>>
>>>>> Brijesh N K
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/cxf-bc---xml-payload-tp22490722p22573094.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: cxf-bc & xml payload
Posted by brijesh <br...@gmail.com>.
Freeman ,
I am still get the message with '&lt' and '&gt' . I tried the code
which u suggested but no luck. Is there any other workaround for this?.
regards
Brijesh N K
Freeman Fang wrote:
>
> Hi,
>
> How about try with
> InOut inOut = (InOut)exchange;
> String outMessage = "";
> NormalizedMessage normalizedMessage = inOut.getInMessage();
> SourceTransformer sourceTransformer = new SourceTransformer();
> DomSource source = sourceTransformer.toDOMSource(normalizedMessage);
> outMessage = org.apache.cxf.helpers.XMLUtils.toString(source);
> logger.debug("## Received exchange with
> statusACTIVE:ContractSchemaDataMapper " + outMessage);
>
> Freeman
>
> brijesh wrote:
>> Freeman,
>>
>> thanks for the response. I am using logger.debug to print message from
>> smx-bean onMessageExchange method code as follows
>>
>> InOut inOut = (InOut)exchange;
>> String outMessage = "";
>> NormalizedMessage normalizedMessage = inOut.getInMessage();
>> SourceTransformer sourceTransformer = new SourceTransformer();
>> outMessage = sourceTransformer.contentToString(normalizedMessage);
>> logger.debug("## Received exchange with status
>> ACTIVE:ContractSchemaDataMapper " + outMessage);
>>
>> my wsdl for bc as follows
>> <?xml version="1.0" encoding="UTF-8"?>
>> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>> xmlns:tns="http://www.ekaplus.com/NotifyEvent/"
>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NotifyEvent"
>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>> <wsdl:types>
>> <xsd:schema
>> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
>> <xsd:element name="notifyEvent">
>> <xsd:complexType>
>> <xsd:sequence>
>> <xsd:element name="in" type="xsd:string" />
>> </xsd:sequence>
>> </xsd:complexType>
>> </xsd:element>
>> <xsd:element name="notifyEventResponse">
>> <xsd:complexType>
>> <xsd:sequence>
>> <xsd:element name="out" type="xsd:string" />
>> </xsd:sequence>
>> </xsd:complexType>
>> </xsd:element>
>> </xsd:schema>
>> </wsdl:types>
>> <wsdl:message name="notifyEventRequest">
>> <wsdl:part element="tns:notifyEvent" name="parameters" />
>> </wsdl:message>
>> <wsdl:message name="notifyEventResponse">
>> <wsdl:part element="tns:notifyEventResponse" name="parameters" />
>> </wsdl:message>
>> <wsdl:portType name="NotifyEventPortType">
>> <wsdl:operation name="notifyEvent">
>> <wsdl:input message="tns:notifyEventRequest" />
>> <wsdl:output message="tns:notifyEventResponse" />
>> </wsdl:operation>
>> </wsdl:portType>
>> <wsdl:binding name="NotifyEventBinding"
>> type="tns:NotifyEventPortType">
>> <soap:binding style="document"
>> transport="http://schemas.xmlsoap.org/soap/http" />
>> <wsdl:operation name="notifyEvent">
>> <soap:operation
>> soapAction="http://www.ekaplus.com/NotifyEvent/notifyEvent" />
>> <wsdl:input>
>> <soap:body use="literal" />
>> </wsdl:input>
>> <wsdl:output>
>> <soap:body use="literal" />
>> </wsdl:output>
>> </wsdl:operation>
>> </wsdl:binding>
>> <wsdl:service name="NotifyEventService">
>> <wsdl:port binding="tns:NotifyEventBinding"
>> name="NotifyEventPort">
>> <soap:address location="http://localhost:8092/NotifyEventService" />
>> </wsdl:port>
>> </wsdl:service>
>> </wsdl:definitions>
>>
>>
>>
>> looking forward your response
>>
>> thanks
>> Brijesh N K
>>
>>
>>
>> Freeman Fang wrote:
>>
>>> Hi,
>>> Where you see the message like this?
>>> I mean how you dump the message?
>>> Freeman
>>>
>>> brijesh wrote:
>>>
>>>> We have following work flow
>>>>
>>>> axis1 client --> cxf-bc-->smx-bean-->cxf-bc(provider)
>>>>
>>>> When i am calling bc using client , I am getting the xml document as
>>>> shown
>>>> in below image
>>>>
>>>> http://www.nabble.com/file/p22490722/posting.jpg
>>>>
>>>>
>>>> In place of >,< am getting '&lt' and '&gt'
>>>> can anybody explain whats going wrong here?? .
>>>>
>>>> regards
>>>>
>>>> Brijesh N K
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/cxf-bc---xml-payload-tp22490722p22556693.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: cxf-bc & xml payload
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
How about try with
InOut inOut = (InOut)exchange;
String outMessage = "";
NormalizedMessage normalizedMessage = inOut.getInMessage();
SourceTransformer sourceTransformer = new SourceTransformer();
DomSource source = sourceTransformer.toDOMSource(normalizedMessage);
outMessage = org.apache.cxf.helpers.XMLUtils.toString(source);
logger.debug("## Received exchange with
statusACTIVE:ContractSchemaDataMapper " + outMessage);
Freeman
brijesh wrote:
> Freeman,
>
> thanks for the response. I am using logger.debug to print message from
> smx-bean onMessageExchange method code as follows
>
> InOut inOut = (InOut)exchange;
> String outMessage = "";
> NormalizedMessage normalizedMessage = inOut.getInMessage();
> SourceTransformer sourceTransformer = new SourceTransformer();
> outMessage = sourceTransformer.contentToString(normalizedMessage);
> logger.debug("## Received exchange with status
> ACTIVE:ContractSchemaDataMapper " + outMessage);
>
> my wsdl for bc as follows
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:tns="http://www.ekaplus.com/NotifyEvent/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NotifyEvent"
> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
> <wsdl:types>
> <xsd:schema
> targetNamespace="http://www.ekaplus.com/NotifyEvent/">
> <xsd:element name="notifyEvent">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="in" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="notifyEventResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="out" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="notifyEventRequest">
> <wsdl:part element="tns:notifyEvent" name="parameters" />
> </wsdl:message>
> <wsdl:message name="notifyEventResponse">
> <wsdl:part element="tns:notifyEventResponse" name="parameters" />
> </wsdl:message>
> <wsdl:portType name="NotifyEventPortType">
> <wsdl:operation name="notifyEvent">
> <wsdl:input message="tns:notifyEventRequest" />
> <wsdl:output message="tns:notifyEventResponse" />
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="NotifyEventBinding"
> type="tns:NotifyEventPortType">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="notifyEvent">
> <soap:operation
> soapAction="http://www.ekaplus.com/NotifyEvent/notifyEvent" />
> <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="NotifyEventService">
> <wsdl:port binding="tns:NotifyEventBinding"
> name="NotifyEventPort">
> <soap:address location="http://localhost:8092/NotifyEventService" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
>
>
> looking forward your response
>
> thanks
> Brijesh N K
>
>
>
> Freeman Fang wrote:
>
>> Hi,
>> Where you see the message like this?
>> I mean how you dump the message?
>> Freeman
>>
>> brijesh wrote:
>>
>>> We have following work flow
>>>
>>> axis1 client --> cxf-bc-->smx-bean-->cxf-bc(provider)
>>>
>>> When i am calling bc using client , I am getting the xml document as
>>> shown
>>> in below image
>>>
>>> http://www.nabble.com/file/p22490722/posting.jpg
>>>
>>>
>>> In place of >,< am getting '&lt' and '&gt'
>>> can anybody explain whats going wrong here?? .
>>>
>>> regards
>>>
>>> Brijesh N K
>>>
>>>
>>
>>
>
>
Re: cxf-bc & xml payload
Posted by brijesh <br...@gmail.com>.
Freeman,
thanks for the response. I am using logger.debug to print message from
smx-bean onMessageExchange method code as follows
InOut inOut = (InOut)exchange;
String outMessage = "";
NormalizedMessage normalizedMessage = inOut.getInMessage();
SourceTransformer sourceTransformer = new SourceTransformer();
outMessage = sourceTransformer.contentToString(normalizedMessage);
logger.debug("## Received exchange with status
ACTIVE:ContractSchemaDataMapper " + outMessage);
my wsdl for bc as follows
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.ekaplus.com/NotifyEvent/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NotifyEvent"
targetNamespace="http://www.ekaplus.com/NotifyEvent/">
<wsdl:types>
<xsd:schema
targetNamespace="http://www.ekaplus.com/NotifyEvent/">
<xsd:element name="notifyEvent">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="in" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="notifyEventResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="notifyEventRequest">
<wsdl:part element="tns:notifyEvent" name="parameters" />
</wsdl:message>
<wsdl:message name="notifyEventResponse">
<wsdl:part element="tns:notifyEventResponse" name="parameters" />
</wsdl:message>
<wsdl:portType name="NotifyEventPortType">
<wsdl:operation name="notifyEvent">
<wsdl:input message="tns:notifyEventRequest" />
<wsdl:output message="tns:notifyEventResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="NotifyEventBinding"
type="tns:NotifyEventPortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="notifyEvent">
<soap:operation
soapAction="http://www.ekaplus.com/NotifyEvent/notifyEvent" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="NotifyEventService">
<wsdl:port binding="tns:NotifyEventBinding"
name="NotifyEventPort">
<soap:address location="http://localhost:8092/NotifyEventService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
looking forward your response
thanks
Brijesh N K
Freeman Fang wrote:
>
> Hi,
> Where you see the message like this?
> I mean how you dump the message?
> Freeman
>
> brijesh wrote:
>> We have following work flow
>>
>> axis1 client --> cxf-bc-->smx-bean-->cxf-bc(provider)
>>
>> When i am calling bc using client , I am getting the xml document as
>> shown
>> in below image
>>
>> http://www.nabble.com/file/p22490722/posting.jpg
>>
>>
>> In place of >,< am getting '&lt' and '&gt'
>> can anybody explain whats going wrong here?? .
>>
>> regards
>>
>> Brijesh N K
>>
>
>
>
--
View this message in context: http://www.nabble.com/cxf-bc---xml-payload-tp22490722p22491521.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: cxf-bc & xml payload
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Where you see the message like this?
I mean how you dump the message?
Freeman
brijesh wrote:
> We have following work flow
>
> axis1 client --> cxf-bc-->smx-bean-->cxf-bc(provider)
>
> When i am calling bc using client , I am getting the xml document as shown
> in below image
>
> http://www.nabble.com/file/p22490722/posting.jpg
>
>
> In place of >,< am getting '&lt' and '&gt'
> can anybody explain whats going wrong here?? .
>
> regards
>
> Brijesh N K
>