Dear SAPiens,
I am trying to call a RFC-FM via a webservice from outside the SAP system via Business Connector 4.7. I always get a "Access Denied" Error message within the XML answer-envelope.
For testing I use the soapUI. I downloaded the WSDL from the Business Connector Developer and imported it to soapUI.
In soapUI I used the following coding for execution in a testcase:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mob="http://172.16.34.33/MobileDataEntry" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<soapenv:Header/>
<soapenv:Body>
<mob:CustomerOrderCreate soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<DISTR_CHAN xsi:type="xsd:string">01</DISTR_CHAN>
<DIVISION xsi:type="xsd:string">00</DIVISION>
<DOC_TYPE xsi:type="xsd:string">ZMDE</DOC_TYPE>
<PARTN_NUMB xsi:type="xsd:string">0000102642</PARTN_NUMB>
<PARTN_ROLE xsi:type="xsd:string">AG</PARTN_ROLE>
<REQ_DATE_H xsi:type="xsd:string">20080420</REQ_DATE_H>
<SALES_ORG xsi:type="xsd:string">4920</SALES_ORG>
<MATERIAL xsi:type="non:MATERIAL" soapenc:arrayType="non:MATERIALArrayItem[]" xmlns:non="http://www.webMethods.com/noNamespace/"/>
<RETURN xsi:type="non:RETURN" soapenc:arrayType="non:RETURNArrayItem[]" xmlns:non="http://www.webMethods.com/noNamespace/"/>
</mob:CustomerOrderCreate>
</soapenv:Body>
</soapenv:Envelope>
The given answer is:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>[B2BSERV.0088.9134] Exception occurred while processing the body of the message</faultstring>
<faultactor>http://172.16.34.33:5555/soap/rpc</faultactor>
<detail xmlns:webM="http://www.webMethods.com/2001/10/soap/encoding">
<webM:exception>
<webM:className>com.wm.app.b2b.server.AccessException</webM:className>
<webM:message xml:lang="en">[B2BSERV.0084.9004] Access Denied</webM:message>
</webM:exception>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I can call the function module without any problem from the Busines Connector Developer IDE.
I also can call the function without any problems in this way (by passing my credentials manually):
http://172.16.34.33:5555/invoke/MobileDataEntry/CustomerOrderCreate?DISTR_CHAN=01&DIVISION=00&DOC_TYPE=ZMDE&PARTN_NUMB=0000102642&PARTN_ROLE=AG&REQ_DATE_H=20080420&SALES_ORG=4920
Do you have any idea what is going wrong? Why do I get "Access Denied"? What causes this?
Best regards
Torsten