aspose file tools*
The moose likes Web Services and the fly likes Websphere integration with SAP using Web services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Websphere integration with SAP using Web services" Watch "Websphere integration with SAP using Web services" New topic
Author

Websphere integration with SAP using Web services

Mohit Tayal ji
Greenhorn

Joined: Dec 19, 2012
Posts: 1
Hi,

I am creating a web service provider in WEBsphere 6.1 which has to be accessed by SAP system and we are facing some issue. I need your help.

Problem Statement:
Till now, we have created Web Service provider with HTTP BAsic authentication and WS-RM. It is working fine using java client. Now when SAP sends request, we can see that WSRM request and response gets generated. After that when Request for Application message [actual operation hit] comes in, we get the following error:

<faultcode>wsa:ActionNotSupported</faultcode>
<faultstring>The [action] cannot be processed at the receiver. </faultstring>

When we googled it we found that this issue was fixed in WS7 and probably some later feature pack of WS6.1. [and currently we are using WS6.1.0.33]

I have also attached whole request and response xml for your reference.

------------------------------------------------
WSRM Req

<soap-env:Header>
<n0:Trace xmlns:n0="http://www.sap.com/webas/630/soap/features/runtime/tracing/">
<n0:TraceLevel>Error</n0:TraceLevel>
<n0:TraceContext>
<TRC_PATTERN>WSTEST</TRC_PATTERN>
<TRC_KEY>E240133AB7EB71F1A9F20019B9F1DF97</TRC_KEY>
<TRC_SSID>ECX_00</TRC_SSID>
<TRC_USER>ANJALIG</TRC_USER>
<TRC_TS>20121207021016</TRC_TS>
<TRC_COUNTER>96</TRC_COUNTER>
<TRC_EXTERN/>
</n0:TraceContext>
</n0:Trace>
<n1:MessageID xmlns:n1="http://schemas.xmlsoap.org/ws/2004/08/addressing">uuid:e2401342-98f0-e0f1-a9f2-0019b9f1df97</n1:MessageID>
<n2:Action soap-env:mustUnderstand="1" xmlns:n2="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</n2:Action>
<n3:To soap-env:mustUnderstand="1" xmlns:n3="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope">http://10.79.220.107:12864/SAPPITest/Service__1BCESI_BIP_PAYMENTS_OUT_00001_377AA4DDF7E13757900F102AB0134C1B</n3:To>
<wsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
</wsa:From>
<wsa:ReplyTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
</wsa:ReplyTo>
<wsa:FaultTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
</wsa:FaultTo>
</soap-env:Header>
<soap-env:Body>
<wsrm:CreateSequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm">
<wsrm:AcksTo>
<wsa:Address xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
</wsrm:AcksTo>
</wsrm:CreateSequence>
</soap-env:Body>
</soap-env:Envelope>


WSRM Response

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<soapenv:Header>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
<wsa:MessageID>urn:uuid:48DF78CEC0965EFB1D1354846232775</wsa:MessageID>
<wsa:Action>http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse</wsa:Action>
<wsa:RelatesTo>uuid:e2401342-98f0-e0f1-a9f2-0019b9f1df97</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<wsrm:CreateSequenceResponse xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm">
<wsrm:Identifier>urn:uuid:48DF78CEC0965EFB1D1354846232726</wsrm:Identifier>
</wsrm:CreateSequenceResponse>
</soapenv:Body>
</soapenv:Envelope>


Actual operation hit :-

<soap-env:Header>
<n0:Trace xmlns:n0="http://www.sap.com/webas/630/soap/features/runtime/tracing/">
<n0:TraceLevel>Error</n0:TraceLevel>
<n0:TraceContext>
<TRC_PATTERN>WSTEST</TRC_PATTERN>
<TRC_KEY>E240133AB7EB71F1A9F20019B9F1DF97</TRC_KEY>
<TRC_SSID>ECX_00</TRC_SSID>
<TRC_USER>ANJALIG</TRC_USER>
<TRC_TS>20121207021016</TRC_TS>
<TRC_COUNTER>97</TRC_COUNTER>
<TRC_EXTERN/>
</n0:TraceContext>
</n0:Trace>
<n1:MessageID xmlns:n1="http://schemas.xmlsoap.org/ws/2004/08/addressing">uuid:e240133a-b7eb-74f1-a9f2-0019b9f1df97</n1:MessageID>
<n2:Action soap-env:mustUnderstand="1" xmlns:n2="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope">http://sap.com/xi/EPAY/BIP_Payments_Out_Async</n2:Action>
<n3:To soap-env:mustUnderstand="1" xmlns:n3="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope">http://10.79.220.107:12864/SAPPITest/Service__1BCESI_BIP_PAYMENTS_OUT_00001_377AA4DDF7E13757900F102AB0134C1B</n3:To>
<wsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
</wsa:From>
<wsa:ReplyTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
</wsa:ReplyTo>
<wsa:FaultTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
</wsa:FaultTo>
<wsrm:Sequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm">
<wsrm:Identifier>urn:uuid:48DF78CEC0965EFB1D1354846232726</wsrm:Identifier>
<wsrm:MessageNumber>1</wsrm:MessageNumber>
</wsrm:Sequence>
</soap-env:Header>
<soap-env:Body>
<n0:BIP_Payments_MT xmlns:n0="http://sap.com/xi/EPAY" xmlns:prx="urn:sap.com:proxy:ECX:/1SAI/TAS9CF9FFFF720A07DABE57:700:2008/06/25">
<FILE>
<BUYER_COMPANY_ID>BUYCIDP001</BUYER_COMPANY_ID>
<FILE_DATE>20121025</FILE_DATE>
<FILE_TIME>120625</FILE_TIME>
<BUYER_PIF_ID>20121025PUSH4</BUYER_PIF_ID>
<PAYMENT>
<VENDOR_ID>0000001122</VENDOR_ID>
<BUYER_PAYMENT_ID>20000000202012</BUYER_PAYMENT_ID>
<PAYMENT_VALUE>305.0</PAYMENT_VALUE>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<BUYER_PAYMENT_INDICATOR>ZACH</BUYER_PAYMENT_INDICATOR>
<BUYER_LINE_OF_BUSINESS>USA2</BUYER_LINE_OF_BUSINESS>
<INVOICE>
<DOCUMENT_DATE>20121025</DOCUMENT_DATE>
<DUE_DATE>20121025</DUE_DATE>
<BUYER_INVOICE_REFERENCE>1700000009</BUYER_INVOICE_REFERENCE>
<PAID_VALUE>-190.0</PAID_VALUE>
<GROSS_VALUE>-200.0</GROSS_VALUE>
<NET_VALUE>-190.0</NET_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_VALUE>31.03</TAX_VALUE>
<DISCOUNT_VALUE>10.0</DISCOUNT_VALUE>
<INVOICE_LINE_ITEM>
<INVOICE_LINE_NUMBER>2</INVOICE_LINE_NUMBER>
<LINE_PAID_VALUE>-179.11</LINE_PAID_VALUE>
<LINE_VALUE>-179.11</LINE_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_JURISDICTION>CA0000000</TAX_JURISDICTION>
</INVOICE_LINE_ITEM>
<INVOICE_LINE_ITEM>
<INVOICE_LINE_NUMBER>3</INVOICE_LINE_NUMBER>
<LINE_PAID_VALUE>-10.14</LINE_PAID_VALUE>
<LINE_VALUE>-10.14</LINE_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_JURISDICTION>CA0000000</TAX_JURISDICTION>
</INVOICE_LINE_ITEM>
<INVOICE_LINE_ITEM>
<INVOICE_LINE_NUMBER>4</INVOICE_LINE_NUMBER>
<LINE_PAID_VALUE>-0.61</LINE_PAID_VALUE>
<LINE_VALUE>-0.61</LINE_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_JURISDICTION>CA0000000</TAX_JURISDICTION>
</INVOICE_LINE_ITEM>
<INVOICE_LINE_ITEM>
<INVOICE_LINE_NUMBER>5</INVOICE_LINE_NUMBER>
<LINE_PAID_VALUE>-10.14</LINE_PAID_VALUE>
<LINE_VALUE>-10.14</LINE_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_JURISDICTION>CA0000000</TAX_JURISDICTION>
</INVOICE_LINE_ITEM>
</INVOICE>
<INVOICE>
<DOCUMENT_DATE>20121025</DOCUMENT_DATE>
<DUE_DATE>20121025</DUE_DATE>
<BUYER_INVOICE_REFERENCE>1900000033</BUYER_INVOICE_REFERENCE>
<PAID_VALUE>495.0</PAID_VALUE>
<GROSS_VALUE>500.0</GROSS_VALUE>
<NET_VALUE>495.0</NET_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_VALUE>77.57</TAX_VALUE>
<DISCOUNT_VALUE>5.0</DISCOUNT_VALUE>
<INVOICE_LINE_ITEM>
<INVOICE_LINE_NUMBER>2</INVOICE_LINE_NUMBER>
<LINE_PAID_VALUE>537.34</LINE_PAID_VALUE>
<LINE_VALUE>537.34</LINE_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_JURISDICTION>CA0000000</TAX_JURISDICTION>
</INVOICE_LINE_ITEM>
<INVOICE_LINE_ITEM>
<INVOICE_LINE_NUMBER>3</INVOICE_LINE_NUMBER>
<LINE_PAID_VALUE>-89.56</LINE_PAID_VALUE>
<LINE_VALUE>-89.56</LINE_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_JURISDICTION>CA0000000</TAX_JURISDICTION>
</INVOICE_LINE_ITEM>
<INVOICE_LINE_ITEM>
<INVOICE_LINE_NUMBER>4</INVOICE_LINE_NUMBER>
<LINE_PAID_VALUE>25.35</LINE_PAID_VALUE>
<LINE_VALUE>25.35</LINE_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_JURISDICTION>CA0000000</TAX_JURISDICTION>
</INVOICE_LINE_ITEM>
<INVOICE_LINE_ITEM>
<INVOICE_LINE_NUMBER>5</INVOICE_LINE_NUMBER>
<LINE_PAID_VALUE>1.52</LINE_PAID_VALUE>
<LINE_VALUE>1.52</LINE_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_JURISDICTION>CA0000000</TAX_JURISDICTION>
</INVOICE_LINE_ITEM>
<INVOICE_LINE_ITEM>
<INVOICE_LINE_NUMBER>6</INVOICE_LINE_NUMBER>
<LINE_PAID_VALUE>25.35</LINE_PAID_VALUE>
<LINE_VALUE>25.35</LINE_VALUE>
<TAX_CODE>I1</TAX_CODE>
<TAX_JURISDICTION>CA0000000</TAX_JURISDICTION>
</INVOICE_LINE_ITEM>
</INVOICE>
<INVOICE_CONTROL_TOTAL_PER_PAYMENT>
<NO_OF_INVOICES>2</NO_OF_INVOICES>
<SUM_OF_INVOICES>305.0</SUM_OF_INVOICES>
</INVOICE_CONTROL_TOTAL_PER_PAYMENT>
</PAYMENT>
<PAYMENT_CONTROL_TOTAL_PER_FILE>
<NO_OF_PAYMENTS>1</NO_OF_PAYMENTS>
<SUM_OF_PAYMENTS>305.0</SUM_OF_PAYMENTS>
</PAYMENT_CONTROL_TOTAL_PER_FILE>
</FILE>
</n0:BIP_Payments_MT>
</soap-env:Body>
</soap-env:Envelope>

WebSphere response

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<soapenv:Header>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
<wsa:MessageID>urn:uuid:48DF78CEC0965EFB1D1354846243025</wsa:MessageID>
<wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
<wsa:RelatesTo>uuid:e240133a-b7eb-74f1-a9f2-0019b9f1df97</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>wsa:ActionNotSupported</faultcode>
<faultstring>The [action] cannot be processed at the receiver.</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
----------------------------------------------------------------------

Any comments.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere integration with SAP using Web services