Invoke Order Web Services on behalf of another user

Technote (FAQ)


How can one invoke the Order Web Service on behalf of another user?


If you would like to invoke the Order service with a user on behalf of another user (a CSR for example), try using the following steps:

1. Create a new folder named '' under WC/xml/config

2. Create a new configuration file named 'wc-component.xml' under the new folder. You can use the original file in WC/xml/config/ as a template.

3. Add the following snippet in to the new file.

<_config:protectable-proxy protectable=""
interfacename="" />

A sample modified wc-component.xml looks like:

xsi:schemaLocation=" ../xsd/wc-component.xsd "

protectable="" interfacename="" />

4. Add the forUserId data in the business context section of the SOAP request

<oa:ApplicationArea xsi:type="_wcf:ApplicationAreaType">
<_wcf:ContextData name="storeId">11153</_wcf:ContextData>
<_wcf:ContextData name="forUserId">add forUserId here</_wcf:ContextData>

For example, when utilizing the OrderFacadeClient API, you may use code similar to the following to add the context:

CallbackHandler callbackHandler = null;
BusinessContextType iBusinessContext = CommerceFoundationFactory.eINSTANCE.createBusinessContextType();
ContextDataType cForUserId = CommerceFoundationFactory.eINSTANCE.createContextDataType();


OrderFacadeClient orderFacadeClient = new OrderFacadeClient(iBusinessContext, callbackHandler);

Related information

Order Noun (Web Service)
Class CommonOrderFacadeClient

Rate this page:

(0 users)Average rating

Document information

More support for:

WebSphere Commerce Enterprise

Software version:

6.0, 7.0

Operating system(s):

AIX, IBM i, Linux, Solaris, Windows, i5/OS

Reference #:


Modified date:


Translate my page

Machine Translation

Content navigation