Using Namespace in Workbench

The xml returned by webservices invariably use namespaces. To access data contained in the xml you would need to declare namespace . To declare namespace you would select the process,right click the process select properties, click the advanced tab to create namespaces
For example the following is a example of namespace declared in workbench
greg http://schemas.xmlsoap.org/soap/envelope/
where greg is the namespace prefix
I have included a simple process which makes a web service call to Amazon, using namespace I get data out of the response. The following is an example of using namespace in workbench
/process_data/xmlData/greg:Envelope/greg:Body/cole:ItemLookupResponse/cole:Items/cole:Item/cole:ItemAttributes
Click here to get the PDF

Advertisements

2 responses to “Using Namespace in Workbench

  1. Hi! Can you include a search feature on your site? I like your articles and would find it most useful if I was able to use search functionaliy as opposed to searching manually through the monthly archives. Please advise, and thanks for the helpful tutorials!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s