26.12.2013 Views

HTTP bindings for imports and exports

HTTP bindings for imports and exports

HTTP bindings for imports and exports

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

© Copyright IBM Corporation 2008. All rights reserved<br />

function name returned by function selector class). The default native method name <strong>for</strong> operation<br />

"getQuote" is /SQuoteExport/getQuote@GET. This is returned by URL method function selector<br />

if the input request from /SQuoteExport/getQuote <strong>HTTP</strong> method is GET. However, the client is<br />

using <strong>HTTP</strong> POST method (since the payload as coming as a POST <strong>and</strong> not GET) <strong>and</strong> hence<br />

there will be a mismatch. You need to add the new native method that matches the <strong>HTTP</strong> POST<br />

method<br />

1) Click the ‘Add’ button <strong>for</strong> the ‘Native Method:’ <strong>and</strong> enter<br />

/SQuoteExport/getQuote@POST as a value in the ‘Add’ dialog<br />

2) Click OK. You should see "/SQuoteExport/getQuote@POST" added to the native method<br />

list<br />

3) Now, select /SQuoteExport/getQuote@GET from the native method list <strong>and</strong> then click the<br />

‘Remove’ button as you do not need it<br />

4) Save the Assembly Diagram. File Save or Ctrl + S<br />

__ b. Now, select the Property ‘Method <strong>bindings</strong>’ tab <strong>and</strong> then select the ‘Data Serialization’ tab <strong>for</strong><br />

the ‘getQuote’ method. Here you can override the data binding class, specified during the initial<br />

configuration <strong>and</strong> seen in the Property Binding panel. You can specify separate data binding<br />

classes <strong>for</strong> input <strong>and</strong> output<br />

2008 August, 19 IBM WebSphere V 6.1 – Lab exercise Page 15 of 52<br />

SCA <strong>HTTP</strong> binding

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!