Topic
  • 6 replies
  • Latest Post - ‏2012-05-09T06:55:06Z by snehamandre
srini1829
srini1829
75 Posts

Pinned topic Getting error while invoking the web service

‏2010-12-21T10:49:16Z |
Hi All,

When i am trying to invoke the webservice from Junit i am getting the following error.

com.ibm.commerce.foundation.common.exception.ComponentConfigurationException: CWXFR0033E: The invocation configuration in the file "wc-component-client.xml" for component "com.ibm.commerce.member" is incorrect. Check if the file exists. If it exists, check the syntax.
at com.ibm.commerce.foundation.internal.client.services.invocation.impl.DefaultInvocationServiceSourceImpl.getAction(DefaultInvocationServiceSourceImpl.java:175)
at com.ibm.commerce.foundation.internal.client.services.invocation.InvocationServiceFactory.createAction(InvocationServiceFactory.java:107)
at com.ibm.commerce.foundation.internal.client.services.invocation.InvocationService.invoke(InvocationService.java:74)
at com.ibm.commerce.foundation.client.facade.bod.AbstractBusinessObjectDocumentFacadeClient.sendBusinessObjectDocument(AbstractBusinessObjectDocumentFacadeClient.java:382)
at com.ibm.commerce.member.facade.client.AbstractMemberFacadeClient.changePerson(AbstractMemberFacadeClient.java:203)
at com.ibm.commerce.member.facade.client.MemberFacadeClient.changePerson(MemberFacadeClient.java:2590)
at com.cardinal.commerce.ambulatoryaddress.facade.client.AmbulatoryAddressFacadeClient.updatePersonDetails(AmbulatoryAddressFacadeClient.java:117)
at com.cardinal.commerce.ambulatoryaddress.facade.client.AmbulatoryAddressFacadeClient.editAddress(AmbulatoryAddressFacadeClient.java:106)
at com.cardinal.commerce.ambulatoryaddress.facade.client.AmbulatoryAddressFacadeClientTest.testChangeAmbulatoryAddress(AmbulatoryAddressFacadeClientTest.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

Please let me know if any one has faced the above error.

Thanks and Regards,
Seenu
Updated on 2012-05-09T06:55:06Z at 2012-05-09T06:55:06Z by snehamandre
  • SystemAdmin
    SystemAdmin
    8614 Posts

    Re: Getting error while invoking the web service

    ‏2010-12-21T11:50:16Z  
    In your JUnit project under the src\config\com.ibm.commerce.member folder do you have wc-component-client.xml? If yes, check if its format is correct.
  • srini1829
    srini1829
    75 Posts

    Re: Getting error while invoking the web service

    ‏2010-12-21T15:31:17Z  
    In your JUnit project under the src\config\com.ibm.commerce.member folder do you have wc-component-client.xml? If yes, check if its format is correct.
    Hi Vani,

    Thanks for the response. I am extending the OOTB memberfacadeclient Please find below the xml(wc-component-client.xml)that i am using for this service in the below path.
    C:\WCToolkitEE60\xml\config\com.cardinal.commerce.ambulatoryaddress

    <?xml version="1.0" encoding="UTF-8"?>

    <_config:DevelopmentClientConfiguration xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-component-client.xsd">

    <_config:invocationservice>

    <_config:invocationbinding

    bindingImpl="com.ibm.commerce.foundation.internal.client.services.invocation.impl.J2SEWebServiceInvocationBindingImpl">

    <_config:property name="url" value="http://localhost:8007/webapp/wcs/component/ambulatoryaddress/services/AmbulatoryAddressServices" />

    </_config:invocationbinding>

    </_config:invocationservice>

    </_config:DevelopmentClientConfiguration>

    Thanks and Regards,
    Srini
  • SystemAdmin
    SystemAdmin
    8614 Posts

    Re: Getting error while invoking the web service

    ‏2010-12-22T03:26:10Z  
    • srini1829
    • ‏2010-12-21T15:31:17Z
    Hi Vani,

    Thanks for the response. I am extending the OOTB memberfacadeclient Please find below the xml(wc-component-client.xml)that i am using for this service in the below path.
    C:\WCToolkitEE60\xml\config\com.cardinal.commerce.ambulatoryaddress

    <?xml version="1.0" encoding="UTF-8"?>

    <_config:DevelopmentClientConfiguration xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-component-client.xsd">

    <_config:invocationservice>

    <_config:invocationbinding

    bindingImpl="com.ibm.commerce.foundation.internal.client.services.invocation.impl.J2SEWebServiceInvocationBindingImpl">

    <_config:property name="url" value="http://localhost:8007/webapp/wcs/component/ambulatoryaddress/services/AmbulatoryAddressServices" />

    </_config:invocationbinding>

    </_config:invocationservice>

    </_config:DevelopmentClientConfiguration>

    Thanks and Regards,
    Srini
    To use the MemberFacadeClient in your JUnit project you need to first deploy the Member client library. Follow the steps given in the below link:

    http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.component-services.doc/tasks/twvdeployclientlibrary.htm
  • srini1829
    srini1829
    75 Posts

    Re: Getting error while invoking the web service

    ‏2010-12-24T10:55:21Z  
    To use the MemberFacadeClient in your JUnit project you need to first deploy the Member client library. Follow the steps given in the below link:

    http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.component-services.doc/tasks/twvdeployclientlibrary.htm
    Thanks vani for the link.

    Regards,
    Srini
  • faith12
    faith12
    10 Posts

    Re: Getting error while invoking the web service

    ‏2011-04-28T17:03:25Z  
    I'm getting the same error about the "com.ibm.commerce.order" component. The difference is that I'm trying to invoke the ootb OrderService web service and I should be pretty straightforward. This is my wc-component-client.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <_config:DevelopmentClientConfiguration xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <_config:invocationservice>
    <_config:invocationbinding bindingImpl="com.ibm.commerce.foundation.internal.client.services.invocation.impl.J2SEWebServiceInvocationBindingImpl">
    <_config:property name="url" value="https://alexandria:8000/webapp/wcs/services/OrderServices"/>
    </_config:invocationbinding>
    </_config:invocationservice>
    </_config:DevelopmentClientConfiguration>

    Do I need the src/config/com.ibm.commerce.foundation/wc-config-mapping-registry.xml as well? Or do I miss something else?

    Many Thanks.
  • snehamandre
    snehamandre
    31 Posts

    Re: Getting error while invoking the web service

    ‏2012-05-09T06:55:06Z  
    • faith12
    • ‏2011-04-28T17:03:25Z
    I'm getting the same error about the "com.ibm.commerce.order" component. The difference is that I'm trying to invoke the ootb OrderService web service and I should be pretty straightforward. This is my wc-component-client.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <_config:DevelopmentClientConfiguration xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <_config:invocationservice>
    <_config:invocationbinding bindingImpl="com.ibm.commerce.foundation.internal.client.services.invocation.impl.J2SEWebServiceInvocationBindingImpl">
    <_config:property name="url" value="https://alexandria:8000/webapp/wcs/services/OrderServices"/>
    </_config:invocationbinding>
    </_config:invocationservice>
    </_config:DevelopmentClientConfiguration>

    Do I need the src/config/com.ibm.commerce.foundation/wc-config-mapping-registry.xml as well? Or do I miss something else?

    Many Thanks.
    Did u get any solution for it.Because I m getting the same error.