You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Ben Brown (JIRA)" <ji...@apache.org> on 2009/05/20 16:34:50 UTC
[jira] Created: (SMXCOMP-547) CXF-BC Component unable to use web
services with parameter named "Body" when useJBIWrapper=false
CXF-BC Component unable to use web services with parameter named "Body" when useJBIWrapper=false
------------------------------------------------------------------------------------------------
Key: SMXCOMP-547
URL: https://issues.apache.org/activemq/browse/SMXCOMP-547
Project: ServiceMix Components
Issue Type: Bug
Components: servicemix-cxf-bc
Reporter: Ben Brown
The CXF-BC component cannot call a web service with a parameter named "Body" when the useJBIWrapper flag is set to false. When useJBIWrapper is false the code attempts to look for the node in the XML that is the SOAP Body and find the parameter of the method rather than an actual SOAP Body node.
A patch for the fix is attached which I believe will work. This assumes that if useJBIWrapper is false then the root node of the XML Body is the Body node for the Web Service call. This seems a fair assumption to me, however I am unable to get the code running correctly in Eclipse and cannot run the tests so I am unable to test this fully. Please contact me for more information.
Example of web service call that will fail: (WSDL located at https://ws.textanywhere.net/TA_SMS.asmx?wsdl)
<ta:SendSMSEx xmlns:ta="http://ws.textanywhere.net/TA_WS">
<ta:Client_ID>xxxxx</ta:Client_ID>
<ta:Client_Pass>xxxxx</ta:Client_Pass>
<ta:Client_Ref>113077</ta:Client_Ref>
<ta:Billing_Ref>USER_MESSAGE_113077</ta:Billing_Ref>
<ta:Connection>1</ta:Connection>
<ta:Originator>xxxxx</ta:Originator>
<ta:OType>1</ta:OType>
<ta:DestinationEx>+44673458978977</ta:DestinationEx>
<ta:Body>Test Data</ta:Body>
<ta:SMS_Type>0</ta:SMS_Type>
<ta:Reply_Type>0</ta:Reply_Type>
<ta:Reply_Data/>
</ta:SendSMSEx>
Xbean.xml is as follows:
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://servicemix.apache.org/http/1.0 http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
xmlns:text="http://ws.textanywhere.net/TA_WS">
<cxfbc:provider
wsdl="${sms.provider.url}"
service="text:TextAnywhere_SMS"
endpoint="TextAnywhere_SMSSoap"
useSOAPEnvelope="false"/>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:/oms.properties</value>
</list>
</property>
</bean>
</beans>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (SMXCOMP-547) CXF-BC Component unable to use web
services with parameter named "Body" when useJBIWrapper=false
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang reassigned SMXCOMP-547:
------------------------------------
Assignee: Freeman Fang
> CXF-BC Component unable to use web services with parameter named "Body" when useJBIWrapper=false
> ------------------------------------------------------------------------------------------------
>
> Key: SMXCOMP-547
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-547
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-cxf-bc
> Reporter: Ben Brown
> Assignee: Freeman Fang
> Attachments: SMXCOMP-547.txt
>
>
> The CXF-BC component cannot call a web service with a parameter named "Body" when the useJBIWrapper flag is set to false. When useJBIWrapper is false the code attempts to look for the node in the XML that is the SOAP Body and find the parameter of the method rather than an actual SOAP Body node.
> A patch for the fix is attached which I believe will work. This assumes that if useJBIWrapper is false then the root node of the XML Body is the Body node for the Web Service call. This seems a fair assumption to me, however I am unable to get the code running correctly in Eclipse and cannot run the tests so I am unable to test this fully. Please contact me for more information.
> Example of web service call that will fail: (WSDL located at https://ws.textanywhere.net/TA_SMS.asmx?wsdl)
> <ta:SendSMSEx xmlns:ta="http://ws.textanywhere.net/TA_WS">
> <ta:Client_ID>xxxxx</ta:Client_ID>
> <ta:Client_Pass>xxxxx</ta:Client_Pass>
> <ta:Client_Ref>113077</ta:Client_Ref>
> <ta:Billing_Ref>USER_MESSAGE_113077</ta:Billing_Ref>
> <ta:Connection>1</ta:Connection>
> <ta:Originator>xxxxx</ta:Originator>
> <ta:OType>1</ta:OType>
> <ta:DestinationEx>+44673458978977</ta:DestinationEx>
> <ta:Body>Test Data</ta:Body>
> <ta:SMS_Type>0</ta:SMS_Type>
> <ta:Reply_Type>0</ta:Reply_Type>
> <ta:Reply_Data/>
> </ta:SendSMSEx>
> Xbean.xml is as follows:
> <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://servicemix.apache.org/http/1.0 http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
> xmlns:text="http://ws.textanywhere.net/TA_WS">
>
> <cxfbc:provider
> wsdl="${sms.provider.url}"
> service="text:TextAnywhere_SMS"
> endpoint="TextAnywhere_SMSSoap"
> useSOAPEnvelope="false"/>
>
> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
> <property name="locations">
> <list>
> <value>classpath:/oms.properties</value>
> </list>
> </property>
> </bean>
> </beans>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMXCOMP-547) CXF-BC Component unable to use web
services with parameter named "Body" when useJBIWrapper=false
Posted by "Ben Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Brown updated SMXCOMP-547:
------------------------------
Attachment: SMXCOMP-547.txt
Patch to fix this issue. Not fully tested as cannot run code or tests fully in Eclipse.
> CXF-BC Component unable to use web services with parameter named "Body" when useJBIWrapper=false
> ------------------------------------------------------------------------------------------------
>
> Key: SMXCOMP-547
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-547
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-cxf-bc
> Reporter: Ben Brown
> Attachments: SMXCOMP-547.txt
>
>
> The CXF-BC component cannot call a web service with a parameter named "Body" when the useJBIWrapper flag is set to false. When useJBIWrapper is false the code attempts to look for the node in the XML that is the SOAP Body and find the parameter of the method rather than an actual SOAP Body node.
> A patch for the fix is attached which I believe will work. This assumes that if useJBIWrapper is false then the root node of the XML Body is the Body node for the Web Service call. This seems a fair assumption to me, however I am unable to get the code running correctly in Eclipse and cannot run the tests so I am unable to test this fully. Please contact me for more information.
> Example of web service call that will fail: (WSDL located at https://ws.textanywhere.net/TA_SMS.asmx?wsdl)
> <ta:SendSMSEx xmlns:ta="http://ws.textanywhere.net/TA_WS">
> <ta:Client_ID>xxxxx</ta:Client_ID>
> <ta:Client_Pass>xxxxx</ta:Client_Pass>
> <ta:Client_Ref>113077</ta:Client_Ref>
> <ta:Billing_Ref>USER_MESSAGE_113077</ta:Billing_Ref>
> <ta:Connection>1</ta:Connection>
> <ta:Originator>xxxxx</ta:Originator>
> <ta:OType>1</ta:OType>
> <ta:DestinationEx>+44673458978977</ta:DestinationEx>
> <ta:Body>Test Data</ta:Body>
> <ta:SMS_Type>0</ta:SMS_Type>
> <ta:Reply_Type>0</ta:Reply_Type>
> <ta:Reply_Data/>
> </ta:SendSMSEx>
> Xbean.xml is as follows:
> <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://servicemix.apache.org/http/1.0 http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
> xmlns:text="http://ws.textanywhere.net/TA_WS">
>
> <cxfbc:provider
> wsdl="${sms.provider.url}"
> service="text:TextAnywhere_SMS"
> endpoint="TextAnywhere_SMSSoap"
> useSOAPEnvelope="false"/>
>
> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
> <property name="locations">
> <list>
> <value>classpath:/oms.properties</value>
> </list>
> </property>
> </bean>
> </beans>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SMXCOMP-547) CXF-BC Component unable to use web
services with parameter named "Body" when useJBIWrapper=false
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved SMXCOMP-547.
----------------------------------
Resolution: Fixed
Fix Version/s: servicemix-cxf-bc-2009.02
3.2.4
Patch applied on behalf of Ben Brown with thanks
http://svn.apache.org/viewvc?rev=776936&view=rev for 3.2 branch
http://svn.apache.org/viewvc?rev=776920&view=rev for servicemix-cxf-bc component project
> CXF-BC Component unable to use web services with parameter named "Body" when useJBIWrapper=false
> ------------------------------------------------------------------------------------------------
>
> Key: SMXCOMP-547
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-547
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-cxf-bc
> Reporter: Ben Brown
> Assignee: Freeman Fang
> Fix For: 3.2.4, servicemix-cxf-bc-2009.02
>
> Attachments: SMXCOMP-547.txt
>
>
> The CXF-BC component cannot call a web service with a parameter named "Body" when the useJBIWrapper flag is set to false. When useJBIWrapper is false the code attempts to look for the node in the XML that is the SOAP Body and find the parameter of the method rather than an actual SOAP Body node.
> A patch for the fix is attached which I believe will work. This assumes that if useJBIWrapper is false then the root node of the XML Body is the Body node for the Web Service call. This seems a fair assumption to me, however I am unable to get the code running correctly in Eclipse and cannot run the tests so I am unable to test this fully. Please contact me for more information.
> Example of web service call that will fail: (WSDL located at https://ws.textanywhere.net/TA_SMS.asmx?wsdl)
> <ta:SendSMSEx xmlns:ta="http://ws.textanywhere.net/TA_WS">
> <ta:Client_ID>xxxxx</ta:Client_ID>
> <ta:Client_Pass>xxxxx</ta:Client_Pass>
> <ta:Client_Ref>113077</ta:Client_Ref>
> <ta:Billing_Ref>USER_MESSAGE_113077</ta:Billing_Ref>
> <ta:Connection>1</ta:Connection>
> <ta:Originator>xxxxx</ta:Originator>
> <ta:OType>1</ta:OType>
> <ta:DestinationEx>+44673458978977</ta:DestinationEx>
> <ta:Body>Test Data</ta:Body>
> <ta:SMS_Type>0</ta:SMS_Type>
> <ta:Reply_Type>0</ta:Reply_Type>
> <ta:Reply_Data/>
> </ta:SendSMSEx>
> Xbean.xml is as follows:
> <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://servicemix.apache.org/http/1.0 http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
> xmlns:text="http://ws.textanywhere.net/TA_WS">
>
> <cxfbc:provider
> wsdl="${sms.provider.url}"
> service="text:TextAnywhere_SMS"
> endpoint="TextAnywhere_SMSSoap"
> useSOAPEnvelope="false"/>
>
> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
> <property name="locations">
> <list>
> <value>classpath:/oms.properties</value>
> </list>
> </property>
> </bean>
> </beans>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work started: (SMXCOMP-547) CXF-BC Component unable to use
web services with parameter named "Body" when useJBIWrapper=false
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on SMXCOMP-547 started by Freeman Fang.
> CXF-BC Component unable to use web services with parameter named "Body" when useJBIWrapper=false
> ------------------------------------------------------------------------------------------------
>
> Key: SMXCOMP-547
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-547
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-cxf-bc
> Reporter: Ben Brown
> Assignee: Freeman Fang
> Attachments: SMXCOMP-547.txt
>
>
> The CXF-BC component cannot call a web service with a parameter named "Body" when the useJBIWrapper flag is set to false. When useJBIWrapper is false the code attempts to look for the node in the XML that is the SOAP Body and find the parameter of the method rather than an actual SOAP Body node.
> A patch for the fix is attached which I believe will work. This assumes that if useJBIWrapper is false then the root node of the XML Body is the Body node for the Web Service call. This seems a fair assumption to me, however I am unable to get the code running correctly in Eclipse and cannot run the tests so I am unable to test this fully. Please contact me for more information.
> Example of web service call that will fail: (WSDL located at https://ws.textanywhere.net/TA_SMS.asmx?wsdl)
> <ta:SendSMSEx xmlns:ta="http://ws.textanywhere.net/TA_WS">
> <ta:Client_ID>xxxxx</ta:Client_ID>
> <ta:Client_Pass>xxxxx</ta:Client_Pass>
> <ta:Client_Ref>113077</ta:Client_Ref>
> <ta:Billing_Ref>USER_MESSAGE_113077</ta:Billing_Ref>
> <ta:Connection>1</ta:Connection>
> <ta:Originator>xxxxx</ta:Originator>
> <ta:OType>1</ta:OType>
> <ta:DestinationEx>+44673458978977</ta:DestinationEx>
> <ta:Body>Test Data</ta:Body>
> <ta:SMS_Type>0</ta:SMS_Type>
> <ta:Reply_Type>0</ta:Reply_Type>
> <ta:Reply_Data/>
> </ta:SendSMSEx>
> Xbean.xml is as follows:
> <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://servicemix.apache.org/http/1.0 http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
> xmlns:text="http://ws.textanywhere.net/TA_WS">
>
> <cxfbc:provider
> wsdl="${sms.provider.url}"
> service="text:TextAnywhere_SMS"
> endpoint="TextAnywhere_SMSSoap"
> useSOAPEnvelope="false"/>
>
> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
> <property name="locations">
> <list>
> <value>classpath:/oms.properties</value>
> </list>
> </property>
> </bean>
> </beans>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.